Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
loganathan
Contributor III
Contributor III

How to get customer list who bought both the item

Hi all,

Need a help on below.

Sample date:

loganathan_0-1667941613805.png

from the above i wanted to create a table with the details as whoever bought both apple and oranges. expecting the table as a result.

loganathan_1-1667941811778.png

any inputs please

TIA

 

 

Labels (1)
2 Replies
rubenmarin

Hi, you can just do a couple of inner join with both conditions:

InitialTable:
LOAD sno, name...
;

Inner Join LOAD name Resident InitialTable where item='apple';
Inner Join LOAD name Resident InitialTable where item='orange';

 Add the necessary fields to create the expected table.

MarcoWedel

 

Concat({$<name=p({$<item={'apple'}>})*p({$<item={'orange'}>})>} item,' and ')

 

MarcoWedel_0-1668029100965.png