Hi there,
I have historical sales/order data which consist of SKU number, wish delivery date of order, order quantity, delivery date and stock quantity in wish delivery date of order. So, I need to calculate backorder quantity of each SKU in each wish delivery date of orders. Currently I am using VBA macro to calculate backorders in wish delivery dates but I want to use Knime to do that. sample data is attached
I will be appreciated for any help or tip
thanks in advance
Thank you for the explanation! It was very helpful. But I am not sure I understand how you should compute the backorder quantity. For instance, why backorder quantity on row number 40 is 5 if the order was delivered before wish date?
If you have the chance, could you maybe share part of your VBA script?
Hi @ana_ved,
my vba coding is attached.
Although, both row 40 and row 41 and row42 is requested on 05.04.2019 , row 40 and row 41 was delivered before 05.04.2019 and row 42 was still waiting on wish delivery date that is 05.04.2019 and quantity is 5 pcs. Since Delivery date of row 42 is 14.05.2019, backorder in 05.04.2019 for that SKU is 5.
I hope I was able to explain clearly
I am still not 100% sure I understand the use case. However, here is an example workflow.
What it does: first reads the data, computes the time difference between wish delivery date and delivery date (so, if this number is negative, order was delivered before the wish delivery date). Then it does some type casting using the duration to Number and finally it sets a rule engine saying that if order was delivered after wish delivery date, the backorder quantity equals the ordered quantity.