Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hej
I have a table
PartNo Date Qty QtyDel Wanted result for Qty12720310-1 2015-01-12 0 20 012720310-1 2015-01-14 -1 0 012720310-1 2015-01-15 0 80 012720310-1 2015-01-16 -100 0 012720310-1 2015-01-19 -20 60 012720310-1 2015-01-20 -40 0 012720310-1 2015-01-21 -40 0 -112720310-1 2015-01-23 -100 0 -100
The column QtyDel are delivered units of one PartNo.
The column Qty are demands of the PartNo.
What I would like to do is to sum all posts of QtyDel (160).
Then starting from the top subtract the Qty
The result should then look like the Wanted result for QtyOn 2015-01-21 there remains -1 of the -40
The 160 units are now subtracted and after that Qty should be the same as before on 2015-01-23 and forward.
Did that make sense?