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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

using more than 4 dax formulas in PBI

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 

tryone = if(OR(ISBLANK(['Intl AOP SSA'[2022 AOP]]),['Intl AOP SSA'[2022 AOP]] == 0),BLANK(), [Total Netsales]/['Intl AOP SSA'[2022 AOP]]))))). could anyone give me suggestion?
1 ACCEPTED SOLUTION
rsbin
Super User
Super User

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

 

View solution in original post

2 REPLIES 2
rsbin
Super User
Super User

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

 

AnastasiaS
Resolver I
Resolver I

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors