Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Advanced Product Comparisons

Hey All,

I have a question about some advanced product correlations I'm trying to work out.  The end result I want is to see a list of product crossed with products to show how well correlated sales for one product are to another product.

Here is an example to help show what I want to see:

Table 1: List of Invoices (Raw Data):

CustomerInvoiceProductQuantity
AR01P-11
BR02P-13
AR03P-34
CR04P-41
BR05P-23
AR06P-12
DR07P-310
CR08P-23
AR09P-21
BR10P-42

Table 2: Summary table to help show final calculations:

CustomerP-1P-2P-3P-4Totals
A31408
B33028
C03014
D0010010
Totals6714330

Table 3: The final data I want to see.

ProductRelatedCorrelation
P-1P-2100.0%
P-1P-350.0%
P-1P-4100.0%
P-2P-166.7%
P-2P-333.3%
P-2P-466.7%
P-3P-150.0%
P-3P-250.0%
P-3P-40.0%
P-4P-150.0%
P-4P-2100.0%
P-4P-30.0%

As we can see every customer who purchased P-1 also purchased P-2 (customers A and B) which gives us 100% correlation.  On the flip side, only 2/3 customers who purchased P-2 also purchased P-1 (customers A and B bought both, customer C only bought P-2) giving us a correlation of 66%.

Given the raw data in table 1, how could I show table 3 in a QlikView document.  I've attached a document with Tables 1 and 2 already generated to help.

0 Replies