Forum Discussion
Anonymous
6 years agoNot applicable
Cumulative Total Issue
Hello, When I want to make cumulative total for my table that you can see below, my formula returns wrong cumulative total for each distributor row. Can you help me to solve this issue ? (What I ...
- 6 years ago
Anonymous
Try:
RANKX % Sum ratio = RANKX(ALL(table[DistName]); [Sum Ratio]; ;DESC)Followed by:
Cumulative % Sum Ratio = SUMX(TOPN([RANKX % Sum ratio]; ALL(table[DistName]); [Sum Ratio]); [Sum Ratio])And to get rid of the total:
Cumulative without total in matrix = IF(ISINSCOPE(table[DistName]); [Cumulative % Sum Ratio]; BLANK())
Tahreem24
6 years agoSuper User
Hi Anonymous ,
Please give a try to below DAX Measure:
Cumulative Sum=
CALCULATE ( SUM ( 'Table'[Sum Ratio] ), FILTER ( ALL ( 'Table' ), 'Table'[DateColumn] <= MAX ( 'Table'[DateColumn] ) ) )
Please give Kudos this effort and mark it as a solution if it helps!!!
Anonymous
6 years agoNot applicable
Dear Tahreem24 ,
Unfortunately formula you type does not work. You can see the result below :
Apart from that, why do I need to use date formula ?
Best Regards.
- amitchandak6 years agoSuper User
You are using calendar date, I think you should use DistName
- Anonymous6 years agoNot applicable
- amitchandak6 years agoSuper User
If possible please share a sample pbix file after removing sensitive information.
Thanks
- Tahreem246 years agoSuper User
Anonymous ,
Date field is used to check the prevoius date so accordingly it will add up your Sum Ratio value.
- Anonymous6 years agoNot applicable
But I do not want to see cumulative total based on date, I just want to see it based on from large to small in distributor level.