Forum Discussion

mkoontz's avatar
mkoontz
Frequent Visitor
5 years ago
Solved

Odd results for DIVIDE function in report

I have a simple measure (Actual Mult) where I am just dividing two other measures using the DIVIDE function. Every now and then, our users report odd results coming through on the report from this DI...
  • DataInsights's avatar
    5 years ago

    mkoontz,

     

    Try this measure. You can use various methods of identifying unusable denominators (e.g., ">-1 and <1").

     

    Actual Mult New =
    VAR vDenominator = [Actual Direct Labor (Multiplier)]
    VAR vResult =
        IF (
            ROUND ( vDenominator, 0 ) = 0,
            0,
            DIVIDE ( [Revenue Actual Total (Multiplier) Agg], vDenominator )
        )
    RETURN
        vResult