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: 
Adrian1
Partner - Contributor II
Partner - Contributor II

Crossed sales

Hi,

I'm trying to know, with a set analysis calculation, the next:

When the user select a Product, show a table with the detail of products that has been solded in the same Order than the product I have been selected, and the number of coincidences (number of orders).

Is it possible to do with set analysis?

Labels (1)
1 Solution

Accepted Solutions
Adrian1
Partner - Contributor II
Partner - Contributor II
Author

with Product as Dimension:

 

count( DISTINCT {1< OrderId=P( {$} OrderId) >} OrderId)

 

View solution in original post

2 Replies
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try with something like this:

sum({<order={'$(=Max(order))'},product=>}1)

Adrian1
Partner - Contributor II
Partner - Contributor II
Author

with Product as Dimension:

 

count( DISTINCT {1< OrderId=P( {$} OrderId) >} OrderId)