Forum Discussion
elenita62
9 years agoFrequent Visitor
Excel Formula to PowerBI
Hi, I am new here... I have this formula in Excel +P12/N12-1, and now I am trying to use it en PowerBI desktop and it doesn't work. My calculated formula in PowerBI is> Base = DIVIDE(sum([R...
- Anonymous9 years ago
I may be mixing up blank/zero parsing... Try
Base = IF( ISBLANK(SUM([R14-15])), BLANK(), DIVIDE( SUM([R15-16]), SUM([R14-15]), 0 ) - 1 )
Anonymous
9 years agoNot applicable
All those rows that show -100% have blank values in R14-15 and R15-16, so DIVIDE returns zero. Zero minus one is negative one. Negative one is negative one hundred percent. So those results are correct for the formula you wanted to replicate. That's what your excel formula would return given the same data. If you'd like those rows to return 0 instead of -1, you could do something like
Base = IF( SUM([R14-15]) = 0, 0, DIVIDE( SUM([R15-16]), SUM([R14-15]), 0 ) - 1 )
elenita62
9 years agoFrequent Visitor
The same result that Base = DIVIDE(sum([R15-16]),sum([R14-15]),0) - 1
- Anonymous9 years agoNot applicable
I may be mixing up blank/zero parsing... Try
Base = IF( ISBLANK(SUM([R14-15])), BLANK(), DIVIDE( SUM([R15-16]), SUM([R14-15]), 0 ) - 1 )
- elenita629 years agoFrequent Visitor
Thank you soo much!!! It worked fine!