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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cumulative Sum without date column

I have a table like this below. Age, Type and Qty are column from file and Cumm Sum is the required column using DAX.

 

hegdecisco86_0-1601409491916.png

I want Cumm Sum column which will have cumulative sum. Please help me to write DAX to get Cumm Sum column from above example. Thanks in advance,

Rajesh S Hegde

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

take a look at the following solution:

29-09-_2020_22-27-42.png

 

Running Total = 
CALCULATE(
    SUM('Table'[Qty]),
    FILTER(
        ALLEXCEPT('Table','Table'[Type]),
        MAX('Table'[Age (in M)]) >= 'Table'[Age (in M)]
    )
)

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

take a look at the following solution:

29-09-_2020_22-27-42.png

 

Running Total = 
CALCULATE(
    SUM('Table'[Qty]),
    FILTER(
        ALLEXCEPT('Table','Table'[Type]),
        MAX('Table'[Age (in M)]) >= 'Table'[Age (in M)]
    )
)

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Anonymous
Not applicable

Hi @FrankAT ,

 

This is working as expected. Thanks a lot for quick response.

 

Regards,

Rajesh S Hegde

PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

What criterium establishes the cumulative values? Is it the Qty? Is it the "Age" column? If so, from max to min or viceversa?

In other words, what establishes the order for the cumulative values?

 

PS: it would be very helpful if you included the data in a table of actual values (not an image) so we can simply copy and paste to work on...





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.






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors