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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.