Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Difference between two rows

Hi Team, 

i have this function to calculate difference between rows:

 

QF Trade Ups2 =
VAR myindex=
selectedvalue('QF Core Pricing'[Fare Index - Text])
return
[MIN AIF QF]
-CALCULATE([MIN AIF QF],FILTER(ALL('QF Core Pricing'),VALUE('QF Core Pricing'[Fare Index - Text])=value(myindex)-1)
)

 

which leads to something weird:

 

Any idea why

 

 

12 Replies