Let’s pretend I sell treatments for various conditions. I have lots of data on what customers purchased in the past year. I sell multiple products to help treat each condition. And the more products you use, the better your results. But some customers will only purchase one or two of my products for a given disease. I’d like to quickly identify customers who did not purchase the full suite so I can market the rest of the relevant products to them. I don’t want to waste effort marketing products for conditions they don’t need to treat.
Here are some fake data on what people purchased:
Customer | Product |
---|---|
Joe | p1 |
Joe | p2 |
Joe | p3 |
Joe | p6 |
Bob | p4 |
Bob | p5 |
Bob | p7 |
And here are the products used to treat various conditions:
Condition | Product |
---|---|
malingering | p1 |
malingering | p2 |
malingering | p3 |
malingering | p4 |
itchy teeth | p5 |
itchy teeth | p6 |
halitosis | p7 |
halitosis | p8 |
I’d like some sort of output that shows me that Joe skipped p4 and p5, and that Bob skipped p1, p2, p3, p6, and p8. I don’t care that Joe sought no product for halitosis, because those data would overwhelm everything else.
I feel like solutions might either involve an array FILTER if I can figure out how to generate the correct arrays, or a merge in power query that gives me useful nulls. But I’m stumped.
Any ideas?