This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi
i have the attache table :
i what to have another table that will show me the differences between row 1 to 2 and then another row that show the change between 2 to 3 , 3 to 4 , etc..
thanks
Solved! Go to Solution.
Hi @oren ,
I created a calculated column to implement it. Please modify the formula based on your data model and have a try.
difference =
var a = CALCULATE(SUM('Table'[Sales]),FILTER(ALLEXCEPT('Table','Table'[Item]),'Table'[ID] = EARLIER('Table'[ID])-1))
return
IF(a= BLANK(),BLANK(),'Table'[Sales] - a)
If the ID column in my sample is not same as yours, you could try to create another column using RANKX to implement.
RANKX = RANKX(FILTER('Table','Table'[Item] = EARLIER('Table'[Item])),'Table'[Sales],,ASC,Dense)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Kudos are nice too.
i try this - but it didn't work.
i probably need something also for the columns filter..
Hi @oren ,
I created a calculated column to implement it. Please modify the formula based on your data model and have a try.
difference =
var a = CALCULATE(SUM('Table'[Sales]),FILTER(ALLEXCEPT('Table','Table'[Item]),'Table'[ID] = EARLIER('Table'[ID])-1))
return
IF(a= BLANK(),BLANK(),'Table'[Sales] - a)
If the ID column in my sample is not same as yours, you could try to create another column using RANKX to implement.
RANKX = RANKX(FILTER('Table','Table'[Item] = EARLIER('Table'[Item])),'Table'[Sales],,ASC,Dense)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Kudos are nice too.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 18 |