find the companion products / cross check

datiduke

New Member
Joined
Sep 17, 2015
Messages
13
Hi,
I have the task to identify the best companion product for each product. Its an Add-On Sale analysis. I've got the main product "gumboots" and would like to know, what are the most sold products with the gumboots. (e.g. socks, rainjacket, ... ).

What I have is a regular sales transaction with product, invoice#, date, etc.

I can think of an outcome something like:

500 gumboot sales: and thereof are
100 sales with red socks
70 sales with blue socks
20 sales with rainjacket model hurricane

Got two million rows of data, but don't know how I can make the cross link between the main product (gumboot) to the total other products sold on the same invoices.

Anyone an idea?

Cheers,
Andy
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Something like this?


Excel 2010
AB
1ProductSales
2A7
3B4
4C8
5A1
6A1
7G1
8H0
9A2
10H4
11B3
12G0
13A9
14B9
15C5
16A9
17H5
18G1
19B2
20G7
21B9
22B1
23B7
24
25Most SoldB
Sheet25 (2)
Cell Formulas
RangeFormula
B25{=INDEX($A$2:$A$23,MATCH(TRUE,SUMIF($A$2:$A$23,$A$2:$A$23,$B$2:$B$24)=MAX(SUMIF($A$2:$A$23,$A$2:$A$23,$B$2:$B$24)),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
(the 24 should be a 23 even though it still works)

Oh sorry, didn't see that this was a BI question
 
Last edited:
Upvote 0
The principle is the same in SQL for instance (a subquery with sum, top, or max), I'll see if I can find a reference to DAX
 
Upvote 0
yes, I use PowerPivot and would need a working DAX formula. I don't mind having two or more tables and link between them if that gets the task done.

Andy
 
Upvote 0
how'd you get the Excel table in??? :)

The result I am after is the total sales of each product:
Product: Transactions:
Main Product 5000
Companion P1 900
Companion P2 500
Companion P3 200
...

I want to know all of them, not just the most sold product.

Don't know how you wanna do it with sum and max... I'll try anything.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top