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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Seabastein
Frequent Visitor

Cumulative sum on measure

Hello,

 

I need your help because I am struggling with a cumulative sum that isn't linked to a date.

 

I have a visual that looks like this:

Seabastein_0-1651655844978.png

And I want to achieve what I wrote in the column 1.

For example, the formula for the % of the total is this:

Seabastein_1-1651656056633.png

I have seen some formulas containing the dates as a way to sort, but the dates are linked with individual sales. So I don't know how to pull this off.
Thanks in advance
Sebastien

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Seabastein ,

 

You can use sales as index to calculate cumulative sum. Please refer this:

 

cumulative sum = 

 

VAR _s =
    SUMMARIZE (
        ALLSELECTED ( data ),
        [customer name],
        "_sales", SUM ( data[sales] ),
        "%", [ % of total]
    )
RETURN
    SUMX ( FILTER ( _s, [_sales] <= SUM ( data[sales] ) ), [%] )

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Seabastein ,

 

You can use sales as index to calculate cumulative sum. Please refer this:

 

cumulative sum = 

 

VAR _s =
    SUMMARIZE (
        ALLSELECTED ( data ),
        [customer name],
        "_sales", SUM ( data[sales] ),
        "%", [ % of total]
    )
RETURN
    SUMX ( FILTER ( _s, [_sales] <= SUM ( data[sales] ) ), [%] )

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

CNENFRNL
Community Champion
Community Champion

Your case is an simplified variant of Pareto analysis. There are countless examples on the forum or on the internet.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors