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: 
joeybird
Creator III
Creator III

expression to exclude customers

Hi

each customer has a Customer ID.

I have a stacked bar chart with a written expression to count the number of orders from each department

e.g Catering, Homeware, Children.

however I want to count the customer ID's that have ordered from Children, and other departments.... on the bar chart I want to exclude the customerIDs that have only ever ordered from Children department

please help

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe like

Count({<CustomerID -= {"=ONLY(Department)='Children' "}>} DISTINCT CustomerID)

Note the minus sign before the equal sign,

View solution in original post

3 Replies
Chanty4u
MVP
MVP

swuehl
Champion III
Champion III

Maybe like

Count({<CustomerID -= {"=ONLY(Department)='Children' "}>} DISTINCT CustomerID)

Note the minus sign before the equal sign,

joeybird
Creator III
Creator III
Author

brill thank you x