Lag Column - based on two or more conditions

I would have to have a closer look at your example but this could be a job for an SQL window function. You could explore this thread:

The KNIME implementation of H2 database does not support that yet (@Iris - window functions would really improved the local H2 implementation. So maybe there is a chance for an update).

1 Like