Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Why when Numerator is blank does Divide not return the Alternate result?

I thought the key purpose of Divide was to protect against numerator errors and zero division. 

 

On my current report I have blanks (BLANK()) as my Numerator and when this is the case Divide returns BLANK() instead of returning my alternate result 0, why?

 

DivBlank:=DIVIDE(BLANK(), 10 ,0)

#RETURNS BLANK()

 

Is there a way to fix it without putting conditionals in the numerator and denominator to error check for blanks?

 

This is my current solution, but wish it wasn't.

=IF(AND(ISBLANK([MyTrue]),[MyFalse]>0),0,DIVIDE([MyTrue],[myTrue]+[MyFalse],0))
  • Hi Anonymous

     

    You may add +0 in your formula to avoid using IF condition. Measure =

    DIVIDE([MyTrue]+0,[myTrue]+[MyFalse])

    For example:

    Regards,

    Cherie

4 Replies