Forum Discussion
Cumulative Sum Measure Not Working Properly
- 4 years ago
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!