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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

IF greater than function returning 0

I am attempting to write the function below, I would like to divide the "Quality Hold" value by "Available to Allocate" value if "Available to Allocate" is greater than zero, if not then " ".  From this example it should calculate 41.4/541=.07652.  

 

In the example below the query results in 0.  Any thoughts?

 

whaleybe_1-1623788238255.png

 

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

I think you want "> 0" not "< 0".

View solution in original post

HashamNiaz
Solution Sage
Solution Sage

Hi @Anonymous !

Please check you have put less than (<) operator in your equation. Once you replace it with (>) your query will be fixed.

 

Regards,

Hasham

View solution in original post

2 REPLIES 2
HashamNiaz
Solution Sage
Solution Sage

Hi @Anonymous !

Please check you have put less than (<) operator in your equation. Once you replace it with (>) your query will be fixed.

 

Regards,

Hasham

AlexisOlson
Super User
Super User

I think you want "> 0" not "< 0".

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.