Power Query Challenge #2

I'm at the Microsoft Business Application Summit this week, so I thought I'd post another Power Query challenge, especially since our last one was so successful.

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:

image

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:

image

There's a couple of pieces we need to watch for here:

  1. Susan and Bob are the only people in this list who bought memberships to multiple business units.
  2. 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.
  3. 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.  Winking smile

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!  Smile