Given this dataset (ok, data that looks like this, but much more of it)
I need to come up with a report that tells me on which day I will run out of my current stock. This seems like it shouldn't be a problem, but I cannot seem to get this one right. For instance Fabric P/N 1C6234-1E_D I will not have enough stock for the Job that is due on 4/17/2016. I have tried various things and none of them have worked, so I am ready to start over. This data is from a view that I created, but I did not include a running total.
Anybody have any suggestions? I am stumped.
Thanks,
Willie
Code:
Fabric P/N JOB_DELIVERY_DATE REMAINING_QTY QTY_ON_HAND
1C3264-1E_D 3/23/2016 4.00 15
1C3264-1E_D 4/2/2016 0.00 15
1C3264-1E_D 4/3/2016 1.00 15
1C3264-1E_D 4/3/2016 1.00 15
1C3264-1E_D 4/5/2016 2.00 15
1C3264-1E_D 4/9/2016 1.00 15
1C3264-1E_D 4/11/2016 2.00 15
1C3264-1E_D 4/13/2016 4.00 15
1C3264-1E_D 4/17/2016 3.00 15
1C3264-1E_D 4/20/2016 4.00 15
1C3264-1E_D 5/11/2016 2.00 15
1C6184-4E_NC 3/23/2016 4.00 13
1C6184-4E_NC 4/3/2016 1.00 13
1C6184-4E_NC 4/13/2016 4.00 13
1C6184-4E_NC 4/17/2016 3.00 13
1C6184-4E_NC 4/20/2016 4.00 13
1C6185-3E_NC 3/23/2016 4.00 14
1C6185-3E_NC 4/3/2016 1.00 14
1C6185-3E_NC 4/13/2016 4.00 14
1C6185-3E_NC 4/17/2016 3.00 14
1C6185-3E_NC 4/20/2016 4.00 14
1C6186-1_NC 4/7/2016 6.00 6
1C6186-1_NC 4/7/2016 0.00 6
1C6186-1_NC 4/29/2016 4.00 6
2E5022-15_NC 4/4/2016 1.00 0
2E5022-15_NC 4/8/2016 2.00 0
2E5022-15_NC 4/13/2016 1.00 0
2E5022-15_NC 4/20/2016 1.00 0
2E5022-17_NC 4/5/2016 1.00 0
2E5022-17_NC 4/6/2016 1.00 0
2E5022-17_NC 4/8/2016 1.00 0
2E5022-17_NC 4/12/2016 1.00 0
2E5022-17_NC 4/20/2016 3.00 0
2E5022-17_NC 4/20/2016 1.00 0
2E5022-17_NC 4/22/2016 1.00 0
2E5022-17_NC 5/6/2016 3.00 0
2E5022-17_NC 5/6/2016 2.00 0
2E5022-17_NC 5/6/2016 1.00 0
2E5022-17_NC 5/6/2016 1.00 0
2E5022-7_B 4/20/2016 1.00 0
2E5022-7_B 4/21/2016 1.00 0
2E5022-7_B 5/6/2016 1.00 0
2E5022-8_A 4/21/2016 1.00 0
2E5022-8_B 5/5/2016 16.00 11
2E5026-3_A 6/30/2016 30.00 0
2E5026-3_B 4/15/2016 32.00 17
2E5026-5_A 4/8/2016 0.00 0
2E5026-5_A 4/20/2016 4.00 0
2E5026-5_A 4/20/2016 2.00 0
I need to come up with a report that tells me on which day I will run out of my current stock. This seems like it shouldn't be a problem, but I cannot seem to get this one right. For instance Fabric P/N 1C6234-1E_D I will not have enough stock for the Job that is due on 4/17/2016. I have tried various things and none of them have worked, so I am ready to start over. This data is from a view that I created, but I did not include a running total.
Anybody have any suggestions? I am stumped.
Thanks,
Willie