Forum Discussion
Conslidate based upon two unique ids
Hey guys,
So, I am working with some purchasing data and need help fixing/conslidating the data. For each Purchase Order (PO) we will have multiple lines for different items, and each line can have multiple deliveries. The issue is that the data shows the qty ordered as the total for each line and does not split it up even when there are multiple deliveries.
Is there a way in PBI to consolidate the qty ordered based upon the PO # and the Line #?
See example:
Delivery PO Line Product Vendor Qty Ordered Qty Received
1233 1111 1 X ABC 1000 500
1233 1111 1 X ABC 1000 500
1244 1111 2 Y ABC 300 100
1244 1111 2 Y ABC 300 150
1255 1111 2 Y ABC 300 50
Right now, a sum will show that we ordered 2000 of product X and 900 of product Y when I need PO 1111 Line 1 (product X) to show a total qty ordered of 1000 and Line 2 (Product Y) to show a total qty ordered of 300. Note that there are multiple POs for different companies/items and thus averaging will not work when there are mulitple POs/deliveries that have the same item.
I would like to be able to show the total qty ordered from each company compared to the quantity received.
Thanks!
- Anonymous7 years ago
Not sure if this is what you had in mind, but you can group by PO and Line and get the Max of Qty Ordered and the Sum of Rec'd:
5 Replies
- AnonymousNot applicable
Not sure if this is what you had in mind, but you can group by PO and Line and get the Max of Qty Ordered and the Sum of Rec'd:
- AnonymousNot applicable
Hey Nick,
Thanks for that! That is solving the issue I was having, but unfortunately another one has come up. Here's where I stand:
I had to create a separate data table (reference) from the original one, because it wouldn't let me add another column to the original data source and I needed the other data that wasn't included in the grouping. So, I did so and I have it working, but when I create slicers to try and filter the new grouped data I am having some issues.
We have multiple dates listed on the original data (Date they told us it would arrive and the date it actually arrived), and I need it to filter the POs by the date that it arrived. Unfortunately, it seems that when I connect the two data tables, it automatically connects it with the date that they told us it was going to arrive that is in the original data source. Is there a way to change this?
Thanks!
- AnonymousNot applicable
Hey,
I am assuming your table is set up as follows, using PO -> PO as a relationship.
In that case, click on your slicer and ensure that you have Arrival Date in your field box, rather than Scheduled Date.
Please let me know if your setup is different than this.
Alex