PREV
Returns a new column, where each value represents a value that is n rows earlier in the source column.
Parameters
-
sourceColumn
– The name of an existing column. -
numRows
– A value that represents n rows earlier in the source column. For example, ifnumRows
is 3, thenPREV
uses the third-previoussourceColumn
value as the newtargetColumn
value. -
targetColumn
– A name for the newly created column.
Example
{ "Action": { "Operation": "PREV", "Parameters": { "numRows": "1", "sourceColumn": "age", "targetColumn": "age_PREV" } } }