Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
fredericvillemi
Creator III
Creator III

Complicated scenario with customers and products

Hello,

I have a quite complicated scenario with customer and products.

I have a table with the customer data and customer id.

I have a table with customer id and all the products bought by this customer.

If I select a specific product, it will filter a number of customers.

I would like to know all the other products these customers have bought.

How could I get these information ? With a set analysis ? Which one ?

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Set analysis could indeed help you here, something along this:

=Concat(DISTINCT {<CustomerID= p() , Product = >} Product, ', ')

View solution in original post

4 Replies
swuehl
MVP
MVP

Set analysis could indeed help you here, something along this:

=Concat(DISTINCT {<CustomerID= p() , Product = >} Product, ', ')

fredericvillemi
Creator III
Creator III
Author

Excellent, but now, is it possible to remove the selected Product from this list ?

thanks

swuehl
MVP
MVP

Maybe by using the e() function:

=Concat(DISTINCT {<CustomerID= p() , Product = e() >} Product, ', ')

fredericvillemi
Creator III
Creator III
Author

Great, thank you, it works perfectly