Forum Discussion

Puneetha's avatar
Puneetha
Frequent Visitor
3 years ago

Divide function not working as expected

Hi All,

Needed help here

I was trying to divide  2 measures using the divide function in power bi . But the values in one of the scenario is something like this (0.0,0.0) but the result of it is not zero but  a value which is not excepted as a result.

 

Thanks in Advance.

 

3 Replies

  • Dhairya's avatar
    Dhairya
    Solution Supplier

    Hey Puneetha 
    Please pass 0 or Blank() in 3rd parameter(Alternate Result) of DIVIDE function 
    DIVIDE ( numerator, denominator, Alternate Result )

    Please mark this post as Accept as solution if it helps you!

     

  • Puneetha's avatar
    Puneetha
    Frequent Visitor

    Well ..I found different soultion for the issue as the decimals had some value in it .. I rounded off the column1 ,2 with 2 decimals and later divided them .And it worked .