Forum Discussion
lyderic
3 years agoRegular Visitor
Power Query Editor: custom column based on another table
Hi, I have two tables with the fields as follow: TransactionTbl: Material, transaction date, quantity, cost, plant, supplier. SupplierTbl: MaterialNbr, Preferred supplier, plant code, contract s...
- 3 years ago
I found a solution. In the SupplierTbl, I can add rows for dates between start and end dates.
(following instructions I found here: https://natechamberlain.com/2018/08/08/how-to-add-rows-for-dates-between-start-and-end-dates-in-power-bi-date-range-data/)
That way, I can merge by matching MaterialNbr, Plant code, and Date.
Syk
3 years agoResident Rockstar
Can you remove the test supplier? Or was this just an example to illustrate the issue?
lyderic
3 years agoRegular Visitor
I found a solution. In the SupplierTbl, I can add rows for dates between start and end dates.
(following instructions I found here: https://natechamberlain.com/2018/08/08/how-to-add-rows-for-dates-between-start-and-end-dates-in-power-bi-date-range-data/)
That way, I can merge by matching MaterialNbr, Plant code, and Date.