Adding new column based on another

Hi @zoe_knime,

I had a look at your data and it’s not quite clear what exact logic you want to apply.

Though, I believe this approach will suffice:

  1. Loop per record
  1. Use Lag column to shift the data
    Note: Sadly his node dos not support a negative value but I’ve got a fallback. Maybe you vote for this feature request?

Here is the possible solution:

Best
Mike

2 Likes