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
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
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