Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Customer on only one categorie

Hi,

How to count customers who buy a product A and not product B with set analysis ?

count({<Product={"ProductA"}>} CUSTOMERS) = ?

thanks!

2 Replies
Not applicable
Author

sorry I want to say, Customer who buy only Product A and never Product B

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

=Count( {<Product={‘ProductA’}, CUSTOMERS= E({1<Product={‘ProductB’}>})>} CUSTOMERS)

From qlikview help file

sum( {$<Customer = E({1<Product={‘Shoe’}>})>} Sales )
returns the sales for current selection, but only those customers that never bought the product ‘Shoe’. The element function E( ) here returns the list of excluded customers; those that are excluded by the selection ‘Shoe’ in the field Product.

Hope this helps you.

Regards,

Jagan.