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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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