Good day all,
First time posting a question here. We are in the middle of migrating from Sage ERP 300 to Sage X3 and we are looking at migrating the price lists to the new format.
Price List.xlsx (19.8 KB)
I have attached an excel file with the format of both systems. Sage 300 has a lot of information using the numerous fields on a single line in a table, whereas X3 needs one line per rule.
The rules are as follows for Sage 300
โข The fields: CURRENCY, PRICELIST, ITEMNO, DESC, UOM are self-explanatory
โข The base price for the unit of measure defined in the UOM field is in the DBASEPRICE field.
โข The rest of the fields define volume pricing information for items based on the volumes purchased in the PRICEQTY[X] fields and the price in the respective AMOUNTLVL[X] field.
โข As an example, if a customer purchases 1-29 boxes of Vanilla Ice Cream Bars, the price will be the base price of $30. If they purchase 30 โ 149 boxes of the same product, they will purchase it at $29.50 per box. If they purchase 150 โ 599 boxes, it will be $29 per box. This will continue until the customer purchases anything higher than 6000 boxes, which will be $27.50 per box. The Chocolate Ice cream bar works similarly except that the price level caps off at $30.50 per box for any quantity over 600 boxes. Since the Chocolate Chip Ice Cream Bar does not have any quantity and price level information, the base price of $35 per box will be used no matter what quantity is purchased.
I hope that the 2 tables clearly depict this. The problem is that I am not sure how to approach this problem using power query. I know that I need to unpivot all columns except the CURRENCY, PRICELIST, ITEMNO, DESC, UOM columns.
Can anyone please share a solution and an explanation of the solution to this problem? I will be extremely grateful for any assistance.
Thanks in advance.