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: 
Stdar
Contributor
Contributor

How often a secondary product is purchased based off primary product selection Qlik

Hello, 

I have seen a few questions similar to this but nothing exactly what I am looking for....

I have a few hundred lines of receipt data, each receipt has got a unique receipt ID, Date, quantity, product ID, price.

 

I would like to select from a list of product ID to show me what the most popular product bought with my selection, a top 5 or 10 perhaps.

 

anyone provide any direction? 

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Something like:

rank(sum({<ProductName=,OrderID=P(OrderID)>}LineSalesAmount)) < 6

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

Stdar
Contributor
Contributor
Author

thank you for this, one question... LineSalesAmount is that a variable in my data or is that a function?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

LineSalesAmount is a field in my data model.