Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bsas
Post Patron
Post Patron

How to show cumulative data for next month if there is no data with such date in table.

Hi BI community,

 

I have to show cumulative data - sales per month for whole year. I have 2 categories "Won" and "In progress". The problem is that from September I do not have any "won" anount and the same from November for "In Progress".  

 

How I can copy cumulative data from the last month and show it for next month if I haven't amonut of date in next month for different categories?

1 ACCEPTED SOLUTION
bsas
Post Patron
Post Patron

Sorry for waysting your time. Solved by myself.

 

Maybe will be usefull for someone.

 

Won_cumulative = CALCULATE(SUM(Acc_Opp[revenue),
FILTER(FILTER(ALLSELECTED(Acc_Opp),Acc_Opp[Status] = "1.Won"),
Acc_Opp[closedate] <= MAX(Months[EndDate])))

same for another category. 

View solution in original post

1 REPLY 1
bsas
Post Patron
Post Patron

Sorry for waysting your time. Solved by myself.

 

Maybe will be usefull for someone.

 

Won_cumulative = CALCULATE(SUM(Acc_Opp[revenue),
FILTER(FILTER(ALLSELECTED(Acc_Opp),Acc_Opp[Status] = "1.Won"),
Acc_Opp[closedate] <= MAX(Months[EndDate])))

same for another category. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.