Price = Individual Orders at the item level by Company
Shipping Cost = Individual and Groups of Sales Orders at the charge type level
I created an Order Groups Table using the Shipping Cost.
This is based off a text field (and my really data may even have 3 or 4 orders in this field), so joining the tables, only allows me to link on the individual orders, thus loosing view of the grouped orders.
Does anyone know of a way to summarize the combined orders, so I can properly join the data?
For instance row 2 in the Shipping Costs tab has ORD00001 and ORD00009. The cost is $44.55.
I want to be able to link it to the Price tab by looking up both orders and summarizing them.
I’m a little confused with the formulas you created and the reasoning behind adding the underscores to the order numbers. Further, I don’t know how to get the combined values to appear in the groups. The example you sent back shows all blanks when two orders are on one shipment.
Well, you are looking at your own figures…
I didn’t load the data to the model, just set everything up in PQ. So you still had to do a little work…
As for the underscores, you order ids aren’t fixed length so looking for the string ORD00001 will get you everything from ORD00001 up to ORD0000199 (this might be due to the fact that this is a sample, only you know for sure).
When loaded to the model and a few simple measures, it look like this.
Thank you for going the extra steps to help me understand the logic behind the solution.
I believe that my actual data does have a standard length. You have been very helpful.
No structured content on this specific topic (yet)…
eDNA is working hard to provide more content, you might have noticed that they have been releasing a new course every month this year and plan to continue that throughout 2021. Among them will be a Power Query course (quite soon I believe) and future courses on PQ are also planned…
.
But using the Search option - you might find some intresting/ related posts within the forum.