Forum Discussion
SSS
8 years agoHelper I
Difference between two rows
Hi, I need help in order to solve a problem trying to calculate the differences between two rows in Power BI. My tables look like: Date Orders Index 01/01/2017 85...
- 8 years ago
Hi SSS
Using DAX you can add this calculated column to get desired results
= VAR NextIndex = Table1[Index] + 1 RETURN Table1[Orders] - CALCULATE ( VALUES ( Table1[Orders] ), FILTER ( ALL ( Table1 ), Table1[Index] = NextIndex ) )
Ashish_Mathur
6 years agoSuper User
tomislav_mi
6 years agoHelper II
Thank you Ashish_Mathur !
Works amazing!
Thank you so much.
All the best from Croatia!
Tomislav
- Ashish_Mathur6 years agoSuper User
You are welcome.