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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cross Selling??

Hello Everyone,

I want to make a pivot table with the orderID and specific ProductName plus a column in which i can see which other products the  customers are  buying in combination. For example

OrderIDProductNameProducts ppl also order with cola
1ColaChips


Biscuits
2Colanuggets


Chips
3Colaice cream


Chips


nuggets

i have tried the wildmatch thing for selecting the specific ProductName but how I can get the products in combination the people are buying.

One OrderID contains more than 1 product.

my result should look like this:

ProductNameProductName2Count
ColaChips3
ColaIce Cream 1
Colanuggets2






So that i can see the products which are selling more with Cola as you can see from the table above Chips is top seller.

Regards

1 Reply
swuehl
MVP
MVP

Maybe like attached?

ORDERS:

LOAD * INLINE [

OrderID,    ProductName

1,    Cola   

1,Chips

1,    Biscuits

2,    Cola,

2,    nuggets

2,    Chips

3,    Cola,

3,    ice cream

3,  Cola

3,    Chips

3,    nuggets

];

LOAD OrderID, ProductName as PN2 Resident ORDERS;

Pivot table with dimensions ProductName and PN2 (you can re-label PN2 to ProductName in the chart if you want) and as expression:

=count(Distinct if(ProductName<>PN2, OrderID))

Hope this helps,

Stefan