For this Power Query challenge …
Our business challenge here is that we are in the process of working out how to reward customers that buy memberships in multiple business areas across our organization. To perform this analysis, we have been provided a list of transactions that looks like this:
What we've been asked to generate here is a list of all the transactions pertaining to customers who have purchased from multiple business units. In other words, we want this output:
There's a couple of pieces we need to watch for here:
- Susan and Bob are the only people in this list who bought memberships to multiple business units.
- Susan bought multiple Golf Course memberships (one for her and one for her spouse). We need to keep both those transactions - even though they are in the same division - as she also bought a Marina and Fitness Club membership.
- Claire also bought two Golf Course memberships. While she bought multiple products, they are from the same business area, so we want to ignore them.
What are the rules for Power Query challenge #2?
It's pretty simple really. This is a Power Query challenge. That means you can use Power Query in Excel, or Power Query in Power BI. VBA, SQL and Excel formulas results don't count.
I've got a Power Query driven solution all cooked up to return the results above. And now I'm curious to see how you would solve this problem using the same tool.
Ready to give this Power Query challenge a try?
Like we did with our last Power Query challenge, we're going to ask you: Please Do NOT post your answer below. (We don't want to spoil it for anyone who wants to play along.)
Please note: the submission period for the Challenge is now closed. The submissions are being reviewed and will be discussed next week!
You can download the source data for this Power Query challenge here. Have fun!