Forum Discussion
Cumulative sum without date field
- 9 years ago
Hi prices35,
To calculate the cumulative total for the "Every Chargeback" column, you can create a measure like below:
Cumulative Every Chargeback = CALCULATE(SUM('Date Chrgback'[Every Chargeback]),FILTER(ALL('Date Chrgback'),'Date Chrgback'[CHGBACK DAY OF MONTH]<=MAX('Date Chrgback'[CHGBACK DAY OF MONTH])))
Best Regards,
Qiuyun Yu
Thanks for this very helpful post. Did you manage to figure this out? I'm looking for exactly the same solution e.g. managed to do the cumulative sum for all data but if I filter on the data (e.g. on the cost centre), it doesn't calculate the cumulative appropriately.
I've figured it out :)!!!
Add VALUES at the end...
Cumulative = CALCULATE(
SUM('Sheet2 (2)'[Actual]),
FILTER(ALL('Sheet2 (2)'),'Sheet2 (2)'[Period]<=MAX('Sheet2 (2)'[Period])), VALUES('Sheet2 (2)'[Cost Centre]))