I am working with a dataset in KNIME that includes delivery notes (DNs), GCAS, and quantities to top up. Multiple DNs use the same pool of gcas and I need the output of which DN will have what gcas and how much is the top up QTY. After the QTY is used, then we need to remove the gcas for top up for the next DN#.
Below is the sample data, appreciate on how to approach this problems:
Do you mind preparing an example of the desired output data?
I read through your explanation a couple of times and am not 100% clear on what you want to achieve - providing the desired output will help your potential helper to give you a solution quicker
The current logic would be base on the “Required volume top up”, For example, DN 1111111112 require 1103.874, the gcas A would require 36 (36*6 = 1123.2) to top up and left 4 for the next DN top.
yes correct, I wanted to find the QTY to fullfill up to volume top up and move the remain on the sku to 2nd #, the list of sku is the same a,b,c,d,e,f,g,h
ok here is my stab at this - have to admit I am still not 100% clear if this is really your full requirement - i.e. checking if there is something remaining on first GCAS and if so move that to same GCAS in next order.
There were some scenarios where there was nothing left in which case I kept the existing QTY.
I also noticed that somehow the table in your example seems to have changed in terms of values vs. what was included in your first post…