Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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,
The expected result is:
Month | Backlog Accum |
Jan | 971 |
Feb | 13521 |
Mar | 32427 |
Apr | 57218 |
May | 88228 |
Jun | 129586 |
Jul | 178116 |
Aug | 232791 |
Sep | 287954 |
The measure I'm using is:
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.
Solved! Go to Solution.
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])))
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])))
@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
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.
Any advice on how to solve this will be very much appreciated.
Thank you!