Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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:
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!
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.
Proud to be a 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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.