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

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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