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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ErickReiis
Helper I
Helper I

Accumulated by adding value from previous years

Hello everyone, everything good?

I have a table where I need to perform a sum of information from the previous year with the current year to generate a kind of accumulated to perform a rate calculation.

The table I have is the one in the following example:

ErickReiis_0-1689689927254.png

 

 

And the calculation I need to perform would be something that would generate a table as a result in the following sense:

ErickReiis_1-1689689927286.png

 

 

Add the information for 2017 + 2018 to the 2018 result,

for 2019, it would be the sum of 2017 + 2018 + 2019

And so on.

Could you help me with the formula?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @ErickReiis 

 

You can try the following methods.

Measure = CALCULATE ( SUM ( 'Table'[Value] ),
    FILTER ( ALL ( 'Table' ),
        [Type] = SELECTEDVALUE ( 'Table'[Type] )
            && [Year] <= SELECTEDVALUE ( 'Table'[Year] )
    )
)

vzhangti_0-1689837848377.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @ErickReiis 

 

You can try the following methods.

Measure = CALCULATE ( SUM ( 'Table'[Value] ),
    FILTER ( ALL ( 'Table' ),
        [Type] = SELECTEDVALUE ( 'Table'[Type] )
            && [Year] <= SELECTEDVALUE ( 'Table'[Year] )
    )
)

vzhangti_0-1689837848377.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

miTutorials
Super User
Super User

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.

Top Solution Authors