Forum Discussion
Anonymous
9 years agoNot applicable
Quick Measure - Running Total Sorting issue
I am trying to create a Pareto Chart which shows the running Total of Spend in percentge as Line. The Columns are sorted by Total Spend for each category (MM, PPP, SS etc) in Desc order ...
- 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 ) ) )
Anonymous
5 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.
Ashish_Mathur
5 years agoSuper User
Hi,
Yes, there is a way to solve for that. Share some data and also the expected result.