Forum Discussion
Sign dependency between IF Dax
Hi Power_BI_new ,
The if function works like this:
if ( Condition = TRUE, Result, AlternativeResult )
--> "if condition is true, return Resultl, else return AlternativResult"
In your case, I'd suggest this one here:
New =
IF ('Table'[Step] = "Ouverture", CALCULATE([T (n-1) cumul], 'repository'[category] = "1 - Net ", 'Table'[Code]= "IFRS new"),
IF ('Table'[Step] <> "", -CALCULATE([T cumul], 'repository'[category] = "2 - Total", 'Table[Code] = "new"),
CALCULATE([T cumul], 'repository'[category] = "3 - Cash Flows", 'Table'[Code] = "IFRS new") ) )
Does this work?
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Thanks for your answer but it doesn't work. I can't change the sign of the 3rd IF, I tried to put an ABS() but my number remains negative as if I hadn't put anything.