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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write this set analysis

Hi ALl,

I have one table:

MemberId, Category

1, A

1, B

2, A

2,B

3,C

I want to use one set analysis in Pivot table to show how many Customers who bought both Category A and Category B?

Can you help me out?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try

=count({<MemberId =p( {<Category ={A}>})*p( {<Category ={B}>}) >} DISTINCT MemberId)

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this,

     Count({<MemberId = p({<Category = {"A"}>}),Category = {"B"}>}Distinct MemberId)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
swuehl
Champion III
Champion III

Try

=count({<MemberId =p( {<Category ={A}>})*p( {<Category ={B}>}) >} DISTINCT MemberId)

VishalWaghole
Specialist II
Specialist II

Hi,

PFA Hope this will work for you..

Thanks

Vishal