Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
narender123
Specialist
Specialist

Expression in qlikview

Hi Team,

I have to get a result like:

Sales of the persons who bought only product A.

If we have multiple persons who bought products with different categories. So i want only those persons sales who bought only product A but not product B,C, D ---

Thanks,

Narender

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

or

=SUM({<product = {'A'}, person = {"=COUNT(Distinct product)=1"}>}Sales)

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Something like this

=SUM({

     <person = {"=COUNT(DISTINCT product)=1"}>

     *

     <person = {"=COUNT({<product = {'A'}>}DISTINCT person )=1"}>

}Sales)

MK_QSL
MVP
MVP

or

=SUM({<product = {'A'}, person = {"=COUNT(Distinct product)=1"}>}Sales)

narender123
Specialist
Specialist
Author

Thanks for your reply Manish.

Can you please explain your last one expression??

Thanks,

Narender

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Sum the Sales for Product A from people who only bought one product (which by inference is product A)