Description:
Currently from what I have seen, the Expressions node can only reference the INPUT table value of a column that it is replacing the value of, although it can reference the output value from previous expressions, for other columns being created on the current row.
I’d like to see it enhanced so that it may also be able to reference a previous OUTPUT value for the same column that the expression is appending/replacing.
e.g. If I have a column $COST, I’d like to be able to create a $RUNNING_TOTAL column containing the cumulative sum of the current row’s $COST plus previous row’s $RUNNING_TOTAL, such that my expression would be the equivalent of :
$COST + OutputTable($["RUNNING_TOTAL",-1])
I did spot that in the new Expressions Row Filter, there is a panel on the left “Output Table” but I cannot determine its purpose:
I am hopeful that this is perhaps a clue that access to “Output Table” might be forthcoming in a future Expressions node? Such a modification would make cumulative calculations straightforward, and is a feature that is much sought after, espcially by those who have “seen the light” in moving to KNIME from Alter…native products..
