I have a data set with one line for each product ordered on a sales order. For example, if only one item was ordered on Order #12345, there is one line in the data set. If 10 items were ordered on Order #12346, there are 10 lines in the data set.
I am trying to use Power Query to "roll up" or summarize the orders based on whether or not the order includes my top-seller which I've called "Test 1" in this example. For any order that includes Test 1 as at least one of the order choices, I want to designate that Order # as a "Test 1 order" (regardless of how many other order types are on that order). Similarly, if an order does not have a Test 1 order choice, it should be considered a "non-Test 1 order".
I am ultimately trying to see what is my average order value for order choices that include a Test 1 versus those that do not. I was thinking Group By in PQ would be the solution here but having trouble getting the desired output.
I am trying to use Power Query to "roll up" or summarize the orders based on whether or not the order includes my top-seller which I've called "Test 1" in this example. For any order that includes Test 1 as at least one of the order choices, I want to designate that Order # as a "Test 1 order" (regardless of how many other order types are on that order). Similarly, if an order does not have a Test 1 order choice, it should be considered a "non-Test 1 order".
I am ultimately trying to see what is my average order value for order choices that include a Test 1 versus those that do not. I was thinking Group By in PQ would be the solution here but having trouble getting the desired output.