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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.