Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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