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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jo5hua22
Helper I
Helper I

Calculate cumulative backlog with Measure

Hi Users

 

I have a use case similar to https://community.powerbi.com/t5/Desktop/Calculate-a-cumulative-year-to-year/m-p/501393

 

But I would like to perform this use case in a Measure variable. Can you please help me out? I am facing an issue wherein if I drill down, the cumulative data per month is not available. Only in the year view, I can see the cumulative data but not in the month view.

 

The owner of the previous use case is not active so, if someone has any idea please help me out?

1 ACCEPTED SOLUTION
Jo5hua22
Helper I
Helper I

I solved it by myself

 

You need to add a if condition on the date

 

Example:

If(selectedvalue(date[date])),

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

View solution in original post

3 REPLIES 3
Jo5hua22
Helper I
Helper I

I solved it by myself

 

You need to add a if condition on the date

 

Example:

If(selectedvalue(date[date])),

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

amitchandak
Super User
Super User

@Jo5hua22 , for year wise cumulative use

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

 

foroverall

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all(date),date[date] <=max(date[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi

It is not working. I am getting some random values when I do it. Expectation is when i drill down to month view, then it should show the cumulative backlog per month- sort of like this post

 

https://community.powerbi.com/t5/Desktop/help-with-drill-through-with-cumulative-total/m-p/740267

 

But the solution in this post is also not working for me

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors