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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmac1971
Creator III
Creator III

Count If In Dimension Expression

I want to show a list box showing only customers who have open sales lines, my expression is :

If(Count (Total Order_Number)>0,Customer)

However this wont work, any pointers?

1 Solution

Accepted Solutions
marcus_sommer

You need to wrap your condition within an aggr-function: aggr(count(Order_Number)>0, Customer)

- Marcus

View solution in original post

4 Replies
Chanty4u
MVP
MVP

If(Count (only(Total Order_Number)>0,Customer))

dmac1971
Creator III
Creator III
Author

Sorry doesn't work, empty table.

marcus_sommer

You need to wrap your condition within an aggr-function: aggr(count(Order_Number)>0, Customer)

- Marcus

dmac1971
Creator III
Creator III
Author

That sorted it Marcus, many thanks :

if( aggr(count(Order_Number), Customer)>0,Customer)