Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm attempting to append/merge two tables to one. Reason is one table has Purchase Order Number, Line Number and Due Date but does not have Receipt Rate. Other table has Purchase Order, Line Number and Receipt Date.
Plan is to create measure for 'days late, or early' so that i can show on time delivery of my suppliers. The common thread between these two tables is the PO number and line number but they have to match.
When i try to append, it merges the data as one table - full load, then the other table has headers with a lot of null values where i expected to see them align on the PO number and line number. How can i get these 2 tables to play nice?
Solved! Go to Solution.
Please concat po number and line item, then do a lookup to bring the receipt date to purchase table, or you can merge the tables in PQ as well.
Let me know if this works.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
Follow me on LinkedIn
Hi @NaveenGandhi and @Ashish_Mathur . Any help on the above is much appreciated!
PO Number | Line Item Number | Due Date |
ABC123 | 1 | 7/25/2024 |
ABC123 | 2 | 7/30/2024 |
ABC123 | 3 | 8/15/2024 |
PO Number | Line Item Number | Part Number | Receipt Date | ||
ABC123 | 1 | JAC1 | 7/24/2024 | ||
ABC123 | 2 | JAC23 | 7/31/2023 | ||
ABC123 | 3 | JAC42 | |||
PO Number | Line Item Number | Part Number | Due Date | Receipt Date | Days Early or Late |
ABC123 | 1 | JAC1 | 7/25/2024 | 7/24/2024 | -1 |
ABC123 | 2 | JAC23 | 7/30/2023 | 7/31/2023 | 1 |
ABC123 | 3 | JAC42 | 8/15/2023 | 337 |
Hi,
Write these calculated column formulas in the Receipts table
Due date = LOOKUPVALUE('Purchase orders'[Due Date],'Purchase orders'[PO Number],Receipts[PO Number],'Purchase orders'[Line Item Number],Receipts[Line Item Number])
Column = 1*(Receipts[Receipt Date]-Receipts[Due date])
Hope this helps.
Please concat po number and line item, then do a lookup to bring the receipt date to purchase table, or you can merge the tables in PQ as well.
Let me know if this works.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
Follow me on LinkedIn
Thanks, the concatenate worked great. I have not thought of that. I will research how to do a lookup between the 2 tables which now have PO & Line # concatenated as ABC123,1.
Hi,
If you want to solve it using a calculated column in DAX, then you can use the LOOKUPVALUE() function. To receive more help, share some data to work with and show the expected result. Share data in a format that can be pasted in an MS Excel file.
Hi @Gr8apmech
Please share sample data and screenshot to understand the problem better.
Regards,
NG
User | Count |
---|---|
116 | |
73 | |
62 | |
49 | |
47 |
User | Count |
---|---|
173 | |
123 | |
60 | |
59 | |
57 |