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

Intersection within set analysis

Hi All,

I am looking for a help to write a set analysis for a query. Suppose my data looks as below:

data:

Load * Inline

[person,day,sales

a,sun,10

a,mon,20

a,tue,30

b,thu,22

c,mon,20

d,sun,12

d,mon,11];

I require to show person wise sales having sales on 'sun' AND 'mon' both days. Thus the result table should looks as below:

Person

Sales

a30
d22

Regards,

Som

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

or this

Sum({<person = p({<day = {'sun'}>})*p({<day = {'mon'}>}), day = {'sun', 'mon'}>}sales)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be this

Sum({<person = p({<day = {'sun'}>})*p({<day = {'mon'}>})>}sales)

sunny_talwar
MVP
MVP

or this

Sum({<person = p({<day = {'sun'}>})*p({<day = {'mon'}>}), day = {'sun', 'mon'}>}sales)

somenathroy
Creator III
Creator III
Author

Thanks Sunny.