Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Inventory Allocation workflow

BBaes
5 - Atom

Hello All!  I have a really hard question! I have a list of sales orders, a list of purchase orders, and a list of stock. I am trying to line up what will be consumed for each sales order by contract date of the sales order. Stock must be consumed first. I have been able to sort them by date and deplete the stock, but I cannot figure out how to then fill in the missing gaps with the Purchase Orders. Help! I have just attached the data because the work flow is just a data input and sort so far. I don't know where to start.  I hope this makes sense. 

 

Sales OrderS.O. Part #Contract DateSales Order QtyStockPurchase OrderP.O. QTYPO Part # Purchase Order Date
11415161/5/20232145050121415161/6/2023
21516171/6/20233445050221415161/8/2023
31617181/7/20234345050321415161/10/2023
41819201/7/20232045050421516171/11/2023
52122231/9/20235045050521617181/10/2023
61617181/10/20234345050621617181/12/2023
71617181/15/20234345050741617181/14/2023
     45050811617181/16/2023
     45050921819201/17/2023
     45051011516171/13/2023
     45051122122231/11/2023
     45051232122231/12/2023
         
Result        
         
Sales OrderS.O. Part #Contract DateSales Order QtyStock used Purchase Order UsedPurchase OrderPurchase Order 2Purchase Order 3
11415161/5/2023211450501  
21516171/6/2023330   
31617181/7/2023431450505  
41819201/7/2023200450509  
52122231/9/2023500450511450512 
61617181/10/2023404450505450506450507
71617181/15/2023404450507450508 
1 REPLY 1
BBaes
5 - Atom

Sales Orders 4 and 5 should of had Purchase Orders used as 2 and 5. 

Labels