The Compare tool can be used to move cell values up or down in your dataset. It helps you look at the previous or subsequent rows relative to your current row. You can think of it as looking back (up in the dataset) or forward (down in the dataset) to see what happened before or later in your dataset. It is typically used after sorting by a column (oftentimes a date column).Documentation Index
Fetch the complete documentation index at: https://docs.less.tech/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
The Compare tool has of two required input and one optional input.Select Column(s) to Move
Select the column(s) that contains the values you would like to move vertically in your dataset
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.
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.