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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
elguestca1
Advocate I
Advocate I

Value difference by index in rows

Hello,

I am facing this issue that I need to get difference between rows by index number.

Data i have -->

elguestca1_0-1684759577638.png
So row with index 31 should return 4 (338-334), row with 32  index should return 3 (341-338), row with 33 index should return 1 (342-341) and so on and so on. In my data Index is grouped by ak_id. It seems a simple task, but everything i tried i get blank values. 

Maybe anyone has any ideas on how to do this. It doesn't matter it's measure or cc.

Thank you!

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

Screen Capture #1152.png

@Ahmedx superb!! Thank you very much!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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