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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sai1995
Microsoft Employee
Microsoft Employee

DAX

 My requirement is to create a measure that calculate value on previous value of other measure. 
Below is the example of excel that need to be replicated in power bi:

column b = column a(1)-column a(2)
Column a
-3.110723179 Column b
-0.873789535 2.236933644
1.740692298 2.614481833
-1.41959625 3.160288548

 

3 REPLIES 3
Fowmy
Super User
Super User

@sai1995 

I am not sure if you are trying to perform a recursive calculation here, your example is not clear to me.
Please refer to below article from @Greg_Deckler if it could be of use for you.

 

https://gregdeckler.com/2019/03/06/previous-value-recursion-in-dax/

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

sai1995
Microsoft Employee
Microsoft Employee

Hi Fowmy,

Thank you for your replay

Let me explain the exact issue and need: 

sai1995_2-1608797863045.png

 

This is a sceen shot from excel that need to be replicated in power bi. The first field is also a measure and can't be converted to calculated column, need to create second field (measure) that calculate previous value - current value. From the screen shot: 

Record 1: (blank) - (-3.11) = blank

Record 2: -3.11 - (-0.87) = -2.23

and so on. 

I Tried Earlier function but it works only with columns. 



Hi Fowmy,

Let me explain the exact issue and need: 

sbasant13_0-1608785323536.png

This is a sceen shot from excel that need to be replicated in power bi. The first field is also a measure and can't be converted to calculated column, need to create second field (measure) that calculate previous value - current value. From the screen shot: 

Record 1: (blank) - (-3.11) = blank

Record 2: -3.11 - (-0.87) = -2.23

and so on. 

I Tried Earlier function but it works only with columns. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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