Order Fulfillment
Greg_Deckler I have attached a part of the original file. Can you please help applying the same logic with FIFO structures according to the Sales order. So, Sales order number will be in ascending order, i.e example 111 will be fulfilled and then 112 and so on.
Sales order- has the list of orders
Sales order_lines- has item details and Qty of sales order
Bin_locations- All location in warehouse
Bin_items-has all items with respect to location.
- Greg_Deckler5 years ago
Community Champion
OK, learner03 Here is your file back. Always more interesting working with more life-like data sets than I can easily mock-up on my own. I went with my original FIFO measures here because I ran into some issues with my "improved" FIFO due to partial order fulfillment from bins spanning multiple orders. I left the defaults for this on the interesting case of item 15276. In this case if fulfilling orders from the most stocked bins first, the first order is fulfilled by 2 ULDID's, 875738 and 1196659. The next order is small and it can be fulfilled by the remaining inventory in 1196659 so the next order shows the same two bins. The third order exhausts the inventory in 1196659 and so the remainder comes from 1228007.
So, this was the kind of messy display I was trying to avoid with FIFO 2 measures. But, it gets tricky keeping track of partial order fulfillment, where the current order is actually being fulfilled out of versus previous orders. I'm going to mull over this one and see if I can get a solid solution but my first take on this, my FIFO 2 measures in the original PBIX attached to this Quick Measure Gallery post has some issues dealing with it. My original thought was to get the current locations and the previous locations and do an EXCEPT. Except that if they are the same two bins that fulfill the sum of both orders, well then you get BLANK for the second order. So, back to the drawing board on that one! Could probably minimize this situation by fulfilling orders from the smallest bins first but not a real solution. I'm thinking that I can add a column to the virtual table that flags "partial bin fulfillment" and use that to adjust my locations returned on subsequent orders. I'll post an update here if I get it working but it won't be tonight/today.
Your updated PBIX is attached below where I have implemented the measures with some small tweaks required by your data. Overall, I was pretty happy with how it converted to your data actually, just mainly changing table/column names.
- Greg_Deckler5 years ago
Community Champion
learner03 OK, I completely lied. I'm not sure who I thought I was kidding that I was going to be able to sleep tonight until I fixed the partial fulfillment problem. I did just that. Quite simple really, just an extra && filter when grabbing the previous fulfillment bins. OK, same scenario, the "2" versions of the measures present the information much more clearly. Same scenario with item 15276. The first sales order is fulfilled from the entire inventory in bin 875738 and partially the inventory in 1196659. The second sales order comes entirely from the remaining inventory in 1196659. The third sales order exhausts the remaining inventory in 1196659 and then also inventory in 1228007. Thus, the 2 version of the # of bins reads 2, 1, 2 for the sales orders and the 2 version of the ULDID locations only lists the exact bins that the sales order is fulfilled from. Victory.
Updated PBIX is attached with the new and improved "2" versions.
And...good night!
- learner035 years ago
Post Partisan
Hi Greg_Deckler
I tried on my dataset and facing some issue related to where there are multiple items in a Sales order. So in the attached example- sleas order SO00302859 has 4 items to fulfil, but it is giving output as number of Bins as 1. When I looked at which bin it is looking at, so it is just looking at 1 item.
Similar with order number SO00304569, where it is showing 4 Bins but it has many items to fulfil as it should be around 20 Bins.
Can you please assist?
Thanks