Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |