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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LeonL
New Member

Calculation Previous Row

Hi all,

 

I am looking for a solution to make a calculation with a value from the previous row in a Table Visualisation in PowerBI.

 

Example: 

  • On the 2nd line it should calculate (60.178 - 59.667) / 28,45
  • On the 3rd line (60.779 - 60.178) / 32,53
  • and so on.

 

Even if the Table Visualisation will be filtered and sorted, the previous row needs to be the previous row in relation to the values in the Table .

2019-10-08_10h25_44.png

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

Refer

https://community.powerbi.com/t5/Desktop/get-value-from-Previous-row/td-p/441336

https://community.powerbi.com/t5/Desktop/How-to-refer-to-the-previous-row/td-p/529060

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
MattAllington
Community Champion
Community Champion

Refering to previous rows in Power BI is particularly tricky, for lots of reasons. I suggest you try to bring the relevant record from the previous row forward into the same row. I created a video some time ago showing how to do this. https://youtu.be/xN2IRXQ2CvI



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.