Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ebrambilla
Contributor III
Contributor III

Cross Selling Problem

Hello, I'm almost new in Qlik world... this is a Cross Selling problem.

Let's say we have the following table, with a monthly based Invoices table; the invoice detail is at ProductGroup.

The table contains data from current year (2013) and previous year (2012).

CUSTOMER YEARMONTH PRODUCTGROUP INVOICED
AAA201206APPLE100
AAA201209APPLE100
AAA201303APPLE100
AAA201304KIWI120
AAA201307APPLE130
AAA201308ORANGE100
BBB201201APPLE50
BBB201203ORANGE40
BBB201209PEACH60
BBB201303APPLE20
BBB201305KIWI70
BBB201306PEACH90

I need to build a Cross Selling table, where each Customer is measured with two indicators, GROUP_IN and GROUP_OUT in Current Year, respect to the Previous Year.

GROUP_IN is the number of New Product groups invoiced in the Current Year (Number of Product Groups introduced for Customer in the current year).

GROUP_OUT is the number of "lost" Product groups in the Current Year (Number of Product Groups invoiced last year, lost in the current year)

So, the CROSSELLING table would be:

CUSTOMERGROUP_INGROUP_OUT
AAA20
BBB11

Any indications will be appreciated!

Thanks,

Emilio.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand
ebrambilla
Contributor III
Contributor III
Author

Thanks Mr. Wassenaar!