We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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 want is to see %18,7 1.row - % 32,1 2.row - 39,1 3.row etc.)
My cumulative total formula :
Solved! Go to Solution.
@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())
Proud to be a Super User!
Paul on Linkedin.
@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())
Proud to be a Super User!
Paul on Linkedin.
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!!!
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.
@Anonymous ,
Date field is used to check the prevoius date so accordingly it will add up your Sum Ratio value.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |