Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not 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 want is to see %18,7 1.row - % 32,1 2.row - 39,1 3.row etc.)

 

image.png

 

My cumulative total formula :

image.png

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@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())

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

@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())

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Tahreem24
Super User
Super 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!!!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not 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.

 

image.pngimage.png

@Anonymous ,

 

Date field is used to check the prevoius date so accordingly it will add up your Sum Ratio value.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 

 

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.

You are using calendar date, I think you should use DistName

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Dear @amitchandak ,

 

When I use distname column in seller, output is below :

 

image.pngimage.png

 If possible please share a sample pbix file after removing sensitive information.
Thanks

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.