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
Maz_0102
Helper I
Helper I

Cumulative Sum function

Hello fellow friends

 

I want to do a cumulative on stages column and do a chart similar in the screenshot below

 

can someone please show how I can do this on a dax

 

I would really appreciate please

 

 

Maz_0102_0-1699881844079.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Maz_0102 ,

 

Please try code as below to create a measure.

Cumulative Count = 
CALCULATE(COUNT('Table'[Site]),FILTER(ALL('Table'),'Table'[Stages]<=MAX('Table'[Stages])))

Result is as below.

vrzhoumsft_0-1700126400520.png

 

Best Regards,
Rico Zhou

 

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
Anonymous
Not applicable

Hi @Maz_0102 ,

 

Please try code as below to create a measure.

Cumulative Count = 
CALCULATE(COUNT('Table'[Site]),FILTER(ALL('Table'),'Table'[Stages]<=MAX('Table'[Stages])))

Result is as below.

vrzhoumsft_0-1700126400520.png

 

Best Regards,
Rico Zhou

 

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

Anonymous
Not applicable

Create a forth column in the table, CountValue, and it has the # (1,2,3) from the Stage column - Stage 1 = 1, Stage 2 = 2, Stage 3 = 3. Then, create a DAX measure to SUM the new column rather than a count.

Stage Cummulative = SUM('TableName'[CountValue])

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.