Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Puneetha
Frequent Visitor

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 3
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 .

Puneetha
Frequent Visitor

Hi @Dhairya 

Thank you for quick response .But it still does not resolve my problem.

Sample.png

Dhairya
Solution Supplier
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!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.