Forum Discussion
KiranGupta15
5 years agoFrequent Visitor
Need Delta as a column
Item Sore Rank Delta Item1 100 1 5 Item1 100 1 5 Item1 95 2 15 Item1 80 3 20 Item1 100 1 5 Item1 60 4 10 Item1 50 5 0 Item1 50 5 0 Item2 100 ...
- Anonymous5 years ago
Hi KiranGupta15 ,
You could use earlier() function, check the measure below.
Column = var a = CALCULATE(AVERAGE('Table'[Sore]),FILTER(ALLEXCEPT('Table','Table'[Item]),'Table'[Rank]=EARLIER('Table'[Rank])+1)) return IF(ISBLANK(a),0,'Table'[Sore]-a)Best Regards,
Jay
HotChilli
5 years agoCommunity Champion
If you want a column, you could start with this,
on each row , filter the table to get the score (you have to use an aggregate so min,or max or average should work) of the same item where the rank is +1.
Also, I think almost all the Item2 Delta in the table provided are incorrect.