@4nak1n the new KNIME expression node can do that.
https://docs.knime.com/latest/knime_expressions_guide/index.html
$["column_name", -1]
Value of the column “column_name” from the previous row
Also there is the lag column node and the Column Expressions node can also do this, you have to activate the function though:
In your case you might have to use a loop or refer to the result if the calculation. Here is a discussion that might give some insights
3 Likes