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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


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


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.