Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi guys,
I have been facing the Infinity issue when I have to divide by 0. This is the scenario, I have two columns one Original Qty and another one Updated Qty. I need to divide these two columns to get a percentage.
Right now I have the following expression:
=1 - Value.Divide (Number.Abs (Updated Qty), (Original Qty))
With this expression I am getting the infinity error message when the Original qty is 0. At least thats what I think the issue is.
Have you guys met this issue with the divide function before?
Thank you in advance,
Solved! Go to Solution.
Hi @Ikezaki
To solve this issue with pq you can use an if statement like :
Dax dive function knows to deal with zeroes automatically
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @Ikezaki
To solve this issue with pq you can use an if statement like :
Dax dive function knows to deal with zeroes automatically
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @Ritaf1983 thank you for you reply.
I was testing the solution but for some reason I cant use it, please see the print below:
Am I doing something wrong?
What is the error message?
Try this formula on my sample and share the link to the pbix...
Found the reason, I had the IF capitalize. Thats a dumb error
Thank you
I cant Press OK. You can see the red line or the red square on the box, meaning the syntax its not correct or not accepted?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 60 | |
| 45 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 102 | |
| 39 | |
| 29 | |
| 29 |