Book1 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | SALES | COMBOS | ||||||||||||
2 | DATE | SOCKS | PANTS | SHOES | SHIRTS | WATCHES | 1PRODUCT | 2PRODUCTS | 3PRODUCTS | 4PRODUCTS | 5PRODUCTS | |||
3 | 2/12/2019 | 1 | 1 | SOCKS | ||||||||||
4 | 2/13/2019 | 1 | 1 | 1 | PANTS | WATCHES | ||||||||
5 | 2/14/2019 | 1 | 1 | SHIRTS | WATCHES | PANTS | ||||||||
6 | 2/15/2019 | 1 | WATCHES | PANTS | SHIRTS | SOCKS | ||||||||
7 | 2/16/2019 | 1 | 1 | SHIRTS | SHOES | SOCKS | PANTS | |||||||
8 | 2/17/2019 | 1 | 1 | WATCHES | ||||||||||
9 | 2/18/2019 | SHOES | PANTS | |||||||||||
10 | 2/19/2019 | 1 | 1 | 1 | SHIRTS | SHOES | SOCKS | PANTS | WATCHES | |||||
11 | 2/20/2019 | WATCHES | ||||||||||||
12 | 2/21/2019 | 1 | PANTS | SHIRTS | SOCKS | |||||||||
Sheet1 |
I have a SALES table with a products marked as a true/false (true marked as '1') showing if a specific product was sold on a specific date.
I have a COMBOS table with a wide range of combinations of products. It ranges from 1 product up to 5 different products, in any order.
I need to compare each combination row to the sales table and get a list of matched dates for each combination.
For example- I need a list of every time the PANTS and WATCHES combination was sold together, regardless if anything else was sold on the same date or not. SO- the resulting list would include:
2/12/2019
2/17/2019
2/19/2019 *- Notice there was also shoes sold on this date, but that doesn't matter, I still need it included in the list since PANTS and WATCHES were still sold together on this day.
I've been using power query to do this since the dataset is large. Can someone tell me how to manipulate the data so I can either pivot or merge and get the resulting lists of dates?
Thank you!