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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SalemWafiHttech
New Member

How to add cumulative values Column based on another column values

Imagine if I have the following tabe:

Date                              WorkPercentage
_____________________________________________________
April,1                                       30

May,1                                        29

June,1                                        31

July, 1                                        10
_____________________________________________________

And I want to add an aggregatied column called CumulativeWorkPercenage that sum the AmountOfDoneWorkPercentage row by row and the table will be look like:

 

Date                              WorkPercentage             CumulativeWorkPercenage
________________________________________________________________________________
April,1                                       30                                            30

May,1                                        29                                            59

June,1                                        31                                            90

July, 1                                        10                                            100
_________________________________________________________________________________

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @SalemWafiHttech,

 

Based on your requirement, you could create a measure with the formula below to achieve that.

 

Measure =
CALCULATE (
    SUM ( 'Table1'[WorkPercentage] ),
    FILTER ( ALL ( 'Table1' ), 'Table1'[Date] <= MAX ( 'Table1'[Date] ) )
)

Here is the output,

 

output.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @SalemWafiHttech,

 

Based on your requirement, you could create a measure with the formula below to achieve that.

 

Measure =
CALCULATE (
    SUM ( 'Table1'[WorkPercentage] ),
    FILTER ( ALL ( 'Table1' ), 'Table1'[Date] <= MAX ( 'Table1'[Date] ) )
)

Here is the output,

 

output.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.