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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
JorgeGuajardoH
New Member

Cumulative Sum Measure Not Working Properly

Hello,

 

I'm fairly new using power BI, and I need to create a table with a cumulative sum of cases left open for each day/week/month/year

 

I created masures from my table to substract created  from closed but when I use the recommended dax measure for cumulative sum, it is not providing the expected values, 

JorgeGuajardoH_0-1631055358588.png

The expected result is:

MonthBacklog Accum
Jan971
Feb13521
Mar32427
Apr57218
May88228
Jun129586
Jul178116
Aug232791
Sep287954

 

The measure I'm using is: 

 

Backlog - Acumm - =
calculate('2021 (2)'[Backlog Month],
filter(ALLSELECTED('2021 (2)'),
'2021 (2)'[Created Short Date] <= MAX('2021 (2)'[Created Short Date])))

 

I've been following a lot of post related to this topic but I can figure it out how to get it to work as expected, any guidance/help is very much appreciated.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

This is caused by current row content. A month corresponds to multiple dates, which is the cause of the issue.

Try to create a year month column as a condition to create a measure.

Measure = CALCULATE(SUM('Table'[Backlog]),FILTER(ALLSELECTED('Table'),'Table'[sort_month]<=MAX('Table'[sort_month])))

Vlianlmsft_0-1631258431044.png

 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

This is caused by current row content. A month corresponds to multiple dates, which is the cause of the issue.

Try to create a year month column as a condition to create a measure.

Measure = CALCULATE(SUM('Table'[Backlog]),FILTER(ALLSELECTED('Table'),'Table'[sort_month]<=MAX('Table'[sort_month])))

Vlianlmsft_0-1631258431044.png

 

amitchandak
Super User
Super User

@JorgeGuajardoH , Your number are not matching with what you shared in screenshot.

 

but try like

 

Backlog - Acumm - =
calculate([Created cases] - [BL Closed],
filter(ALLSELECTED('2021 (2)'),
'2021 (2)'[Created Short Date] <= MAX('2021 (2)'[Created Short Date])))

 

 

Month should be coming from table 2021 (2)  and should be month of Created Short 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

Thank you Amitchandak,

 

You're rigth, numbers did not match on the table above, I followed your advice and it got closer, however it is still not returning the expected value.

 

Please see below, expected value is as on the table in the left, measure is returning the value of the screenshot in the rigth.

 

JorgeGuajardoH_0-1631105839301.png

 

Any advice on how to solve this will be very much appreciated.

 

Thank you!

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.