Forum Discussion
Variation shows -100% for blank cells
- 9 years ago
You'll need to us IF logic to return a blank when there is a blank. By subtracting 1, you're giving it a value.
IF (SUMX( Variables,Variables[Volume C9 Act (CY)] ) <> 0, SUMX(Variables,Variables[Volume C9 Act (CY)])/SUMX(Variables,Variables[Volume C9 Act (LY)])-1, BLANK())
I would also use DIVIDE instead of the tranditional A/B
Hope this helps
David
- 9 years ago
Hi! Thanks for your help! I improved the formula and now it's working perfectly. This is how it ended:
Var C9L vs LY = IF(DIVIDE(SUMX(Variables,Variables[Volume C9 Act (CY)]),SUMX(Variables,Variables[Volume C9 Act (LY)])) <> BLANK(),(DIVIDE(SUMX(Variables,Variables[Volume C9 Act (CY)]),SUMX(Variables,Variables[Volume C9 Act (LY)]))-1),BLANK())
Thanks again!
Diego
You'll need to us IF logic to return a blank when there is a blank. By subtracting 1, you're giving it a value.
IF (SUMX( Variables,Variables[Volume C9 Act (CY)] ) <> 0, SUMX(Variables,Variables[Volume C9 Act (CY)])/SUMX(Variables,Variables[Volume C9 Act (LY)])-1, BLANK())
I would also use DIVIDE instead of the tranditional A/B
Hope this helps
David
Hi! Thanks for your help! I improved the formula and now it's working perfectly. This is how it ended:
Var C9L vs LY = IF(DIVIDE(SUMX(Variables,Variables[Volume C9 Act (CY)]),SUMX(Variables,Variables[Volume C9 Act (LY)])) <> BLANK(),(DIVIDE(SUMX(Variables,Variables[Volume C9 Act (CY)]),SUMX(Variables,Variables[Volume C9 Act (LY)]))-1),BLANK())
Thanks again!
Diego