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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.