Forum Discussion
raionpbi
7 years agoFrequent Visitor
Running Total on non ordered values
Hi, I need a help with following scenario: I need to present cumulative value by category and category must be ordered asc by value. When calculating it using Value Cumulative = calculate(sum(Sa...
- 7 years ago
hi,@raionpbi
After my research, you can use this formula as below:
Measure = CALCULATE(SUM(Sales[value]),FILTER(ALL(Sales),[rank]<=MAXX(Sales,[rank])))
Result:
here is pbix, please try it.
https://www.dropbox.com/s/y78z2mozfxof0hz/Running%20Total%20on%20non%20ordered%20values.pbix?dl=0
Best Regards,
Lin
v-lili6-msft
7 years agoCommunity Support
hi,@raionpbi
After my research, you can use this formula as below:
Measure = CALCULATE(SUM(Sales[value]),FILTER(ALL(Sales),[rank]<=MAXX(Sales,[rank])))
Result:
here is pbix, please try it.
https://www.dropbox.com/s/y78z2mozfxof0hz/Running%20Total%20on%20non%20ordered%20values.pbix?dl=0
Best Regards,
Lin
raionpbi
7 years agoFrequent Visitor
Thanks a lot!