I have been trying to solve this but hitting a wall.
I have order data that has order date as well as SKU's produced each week in columns as dates.
I want to find out the order fulfillment date i.e. if the Qty needed was 20 and the production in 2nd week (5/23/2022) was 18 and 6/6/2022 was 45 then qty 18 was fulfilled from 5/23/2022 and remaining 2 from 6/6/2022. Therefore, 6/6/2022 is the fulfillment date. Also, the remaining inventory is total production on all dates - qty needed.
Note - Different orders can have similar SKUs
See attached
Thanks!