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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
ATO23
Frequent Visitor

Get the value of previous row in a table and do an accumulated row by row

Hello to everyone,

 

This is my first post in this forum.

I'm struggeling a bit with a formula to get the previous row value and get an accumulated row by row. I don't have any dates in my file.

 

Please see an example in excel on below of what I would need to get.

 

ATO23_0-1621433392631.png

 

Many thanks in advance for your support.

 

Kind regards!

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @ATO23 

Please check the below picture and the sample pbix file's link down below.

 

Picture3.png

 

Accumulate Measure =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Type] <= MAX ( 'Table'[Type] ) )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

3 REPLIES 3
ATO23
Frequent Visitor

Hey, many thanks! that works perfectly!

 

 

FrankAT
Community Champion
Community Champion

Hi @ATO23 ,

you can do it like this:

 

19-05-_2021_16-17-02.png

Running Total = 
CALCULATE(SUM('Table'[Value]), FILTER(ALL('Table'), MIN('Table'[Value]) >= 'Table'[Value]))

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Jihwan_Kim
Super User
Super User

Hi, @ATO23 

Please check the below picture and the sample pbix file's link down below.

 

Picture3.png

 

Accumulate Measure =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Type] <= MAX ( 'Table'[Type] ) )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.