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
carmenchong
New Member

New column calculation - Infinity

I added a new column and created a formula to convert my sales figures to functional currency. All similar data could be calculated normally but some comparable data are showing infinity. They have the same condition with no other differences. 

 

Thank you in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@carmenchong , can you share calculation.

 

Also, use divide to avoid divide by 0

 

Divide([Col1],[Col2])

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @carmenchong 

 

As amitchandak  said, the divide function can be used.
The reason why infinity is shown is that there are some values that are 0. 0 divided by a number is infinity. You can use the divide function to avoid infinity because the function can get 0 when it encounters a value of 0. Or you can make a conditional judgment, for example a/b, if a is 0 then get 0, otherwise a/b.

 

 

Hope this helps.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@carmenchong , can you share calculation.

 

Also, use divide to avoid divide by 0

 

Divide([Col1],[Col2])

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.