Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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