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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
105TT
Regular Visitor

Cumulative totals based on descending order of Count

Hi, I am able to get cumulative total on sorting order of Category using below formula, but i want to calculate Cumulative total based on descending sorting order of Count. How can I do this? Thanks in advance!

 

Cumulative = CALCULATE(SUM(Table[Count]), FILTER(ALL(Table), Table[Category]<= MAX(Table[Category])))

 

CateogyCountCumulative
A2727
B431
C132
D234
E135
F439
G140
2 REPLIES 2
aditya0125
Resolver I
Resolver I

Reverse Cumulative Count = calculate(total count), filter(allselected(dates), dates[date]>=Min(dates[date])))
try this one.

amitchandak
Super User
Super User

@105TT , Use window function , refer my example

//Min Feb-2023 release

Cumm Based on net = CALCULATE([Net], Window(1,ABS,0,REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_net", [Net]),ORDERBY([_net],DESC)))


Cumm Based on Brand = CALCULATE([Net], Window(1,ABS,0,REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_net", [Net]),ORDERBY('Item'[Brand],asc)))

Check Cumm

 

Power BI Window: Pareto Analysis Again, 80% of sales, Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.