I am currently limited with the use of version 4.0.1 so I cannot use the existing Add Auto Increment by bruno29a.
Is there any easy way to implement a similar solution (like in column 2 w/c is hardcoded currently)? Will the Math Formula node suffice? Since I will just be incrementing by 1 and use the last value from the previous row.
Hello @jchresp
Mi first comment is the data type. I guess this is a fast draft representing your challenge; lets assume your column is a numeric format instead displayed string; otherwise you would need to use String to Number node to convert it to Integer
You can use ‘GroupBy’ in your first table aiming to get the max value in $column2$ and send it to a variable. Then use this variable in your ‘Math Formula’ (integer check box) to update the values in 2nd table’s $column2$.
Two alternative options to those presented by @gonhaddock to calculate an incremental value based on previous row values are the nodes -Lag Column- node (the simplest) and -Moving Aggregation- node (the most powerful):