Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi PBI users,
I have a question about using multiple dax formulas. I am actually wanted to use a divide function but some values in my denominator has no values so I get a answer as infinity. In order to get rid of infinity I used this below formula from DAX documentation
Profit Margin = IF( OR( ISBLANK([Sales]), [Sales] == 0 ), BLANK(), [Profit] / [Sales] ) , but the formula shows input errors
Solved! Go to Solution.
@Anonymous,
The Divide function has 3 parameters:
DIVIDE(<numerator>, <denominator> [,<alternateresult>])
The last parameter is used to take care of any errors.
Please review this link for more details:
https://learn.microsoft.com/en-us/dax/divide-function-dax
This should resolve your "infinity" issues.
@Anonymous,
The Divide function has 3 parameters:
DIVIDE(<numerator>, <denominator> [,<alternateresult>])
The last parameter is used to take care of any errors.
Please review this link for more details:
https://learn.microsoft.com/en-us/dax/divide-function-dax
This should resolve your "infinity" issues.
Hello @Anonymous
Have you tried using the DIVIDE function? DIVIDE(<numerator>, <denominator> [,<alternateresult>])
It handles errors in the following way : The DIVIDE function was designed to automatically handle division by zero cases. If an alternate result is not passed in, and the denominator is zero or BLANK, the function returns BLANK. When an alternate result is passed in, it's returned instead of BLANK.
Source : https://learn.microsoft.com/en-us/dax/best-practices/dax-divide-function-operator
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |