I am writing a calculated column of the form
Column = IF( ISBLANK(ComplexExpression),0, ComplexExpression)
Does PowerBi recompute ComplexExpression twice?
I am writing a calculated column of the form
Column = IF( ISBLANK(ComplexExpression),0, ComplexExpression)
Does PowerBi recompute ComplexExpression twice?
Copyright © 2021 Jogjafile Inc.
It seems the expression is not computed twice, if the conditional is evaluated to
Trueonly the true branch expression will be evaluated.You can test it by doing two nested
IFs.In the above expression, the outer
IFconditional is evaluated and if it is true, the result is 2 (4/2), so the false branch expression is not evaluated since it produces a#ERRORbecause it evaluates to1/"A"which is undetermined.Let me know if this helps.