Forum Discussion
Quick Measure - Running Total Sorting issue
- 9 years ago
Anonymous
Hi, Try with this Code: (Assuming that the Graph was sorted by Spend)
Spend running total = VAR spend = CALCULATE ( SUM ( Table2[Spend] ) ) RETURN CALCULATE ( SUM ( Table2[Spend] ), FILTER ( ALL ( Table2[Category] ), CALCULATE ( SUM ( Table2[Spend] ) >= spend ) ) )
Hi Anonymous
Does this measure get close to what you need?
Sumof Line Amount running total in Category =
CALCULATE(
SUM('Spend'[Line Amount]),
FILTER(
ALL('Spend'),
'Spend'[Category]<=MAX('Spend'[Category])
)
)- Anonymous9 years agoNot applicable
Hi v-haibl-msft & Phil_Seamark
Thank you for the resposes!
1) Sorting on the line will not working, because its a Pareto Chart, that should Columns sorted by Top Spend. The Line should have Running total for each Bar.
2) Phil, I tried your Formula, its giving similar output. Here is the output:
Ideally, the output shoudl look like this:
- Vvelarde9 years agoCommunity Champion
Anonymous
Hi, Try with this Code: (Assuming that the Graph was sorted by Spend)
Spend running total = VAR spend = CALCULATE ( SUM ( Table2[Spend] ) ) RETURN CALCULATE ( SUM ( Table2[Spend] ), FILTER ( ALL ( Table2[Category] ), CALCULATE ( SUM ( Table2[Spend] ) >= spend ) ) )- Anonymous5 years agoNot applicable
Hi, if the spend for some of the categories is exactly the same (the column spend has duplicate values), then this formula is not useful as it shows the same Running Total for the duplicate values. Do you have any suggestion how to treat this issue? Thanks.