Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
kryan
Contributor II
Contributor II

Count if <=

Want to count all costs that are below -5000. Any easy ways to do this? The function below did not work.

if(cost<=-5000,count(cost))

1 Solution

Accepted Solutions
JuanGerardo
Partner - Specialist
Partner - Specialist

Hi @kryan, I recommend to avoid IF() function when possible. Try using set analysis instead (and it will have much better performance):

Count({<cost = {"<=-5000"}>} cost)

JG

View solution in original post

1 Reply
JuanGerardo
Partner - Specialist
Partner - Specialist

Hi @kryan, I recommend to avoid IF() function when possible. Try using set analysis instead (and it will have much better performance):

Count({<cost = {"<=-5000"}>} cost)

JG