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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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