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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

it Calculate increase from previous row

Hi, 

 

I am trying to calculate the increase of my "Median of TTR" column over the grade before and show it in a new column:

 

gcabeza_0-1595581222882.png

So for grade 06 it would be: (18.049,42 (G06) - 9824,74 (G05)) / 9824,74 (G05) = 84%. 

 

How could I create a measure like this?

 

Please notice that for some cuts of my data, some grades will be missing, so it might go from grade 05 to 08, for example. In these cases, I won't need to show any increment.

 

Thanks!

2 REPLIES 2
FarhanAhmed
Community Champion
Community Champion

How is your data stored ?

What is the table structure?

What is the criteria of previous row ? is it grade or is it latest record via date ? A comp Grade is unique ?

Sample data of your full table would be nice.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , There is row manipulation

 

Create a rank as a column on the grade in table

 

Rank column = rankx(all(Table),[grade],,asc,dense)

 

Now use rank to have previous. row.

 

This grade= CALCULATE(sum('Table'[TTR]),filter(ALL('Table'[grade]),'Date'[Rank column]=max('Date'[Rank column])))
Last grade= CALCULATE(sum('Table'[TTR]),filter(ALL('Table'[grade]),'Date'[Rank column]=max('Date'[Rank column])-1))

 

or

 

This grade= CALCULATE(sum('Table'[TTR]),filter(ALL('Table'[Rank column]),'Date'[Rank column]=max('Date'[Rank column])))
Last grade= CALCULATE(sum('Table'[TTR]),filter(ALL('Table'[Rank column]),'Date'[Rank column]=max('Date'[Rank column])-1))

 

same as what I did in WOW

 

https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors