Configuration
The Compare tool has of two required input and one optional input.1
Add prefix
Add a prefix to your output columns.
2
Select Column(s) to Move
Select the column(s) that contains the values you would like to move vertically in your dataset
3
Lookback
Input the number of rows backward/up or forward/down that you want to fetch data from relative to your current row. Note that to look forward/down you need to input a negative value.
4
Group By (optional)
This is an optional input. You can use it to segregate what you are comparing with into groups. It means you’re moving rows within a group defined by the values of the column(s) you select here.
Example: Getting the previous row inside a group
In this example, we want to get the previous row (lookback = 1) inside a group - our bool_col column.