Hello -
I have a data dump where i get information on customer pricing. In some cases (but of course not all) I have tiered pricing where the customer gets a better price if they buy more. I would like to use the base price when not tiered, and then use the lowest price when tiered. I can use an if then to create one column to grab a "Base Price" when there is one, but I have a hard time in Power Query (and excel frankly) grabbing the min from a group in a column. So for example the first product 1234D: I'd look to do something like:
For Product 1234D and Customer 6555, when Break_Price is minimum, use that lowest price in the price column
So overall the logic is
When you have a Base Price, use that
When you have a Tiered Price (Break Price) use the Price where Price is Minimum.
As you can see its complicated by the fact that there are groups of minimum prices, so 1234A would use a totally different minimum price. I could do with an Array in regular Excel formulas but its heavy duty and I'd like to do in Power Query since I can just drop the new price list each month.
Can someone give advice on how to attack the minimum piece in Power Query?
https://www.dropbox.com/s/hle5rp0ctuil3se/Price Exercise.xlsx?dl=0
Thanks
I have a data dump where i get information on customer pricing. In some cases (but of course not all) I have tiered pricing where the customer gets a better price if they buy more. I would like to use the base price when not tiered, and then use the lowest price when tiered. I can use an if then to create one column to grab a "Base Price" when there is one, but I have a hard time in Power Query (and excel frankly) grabbing the min from a group in a column. So for example the first product 1234D: I'd look to do something like:
For Product 1234D and Customer 6555, when Break_Price is minimum, use that lowest price in the price column
So overall the logic is
When you have a Base Price, use that
When you have a Tiered Price (Break Price) use the Price where Price is Minimum.
As you can see its complicated by the fact that there are groups of minimum prices, so 1234A would use a totally different minimum price. I could do with an Array in regular Excel formulas but its heavy duty and I'd like to do in Power Query since I can just drop the new price list each month.
Can someone give advice on how to attack the minimum piece in Power Query?
https://www.dropbox.com/s/hle5rp0ctuil3se/Price Exercise.xlsx?dl=0
Thanks