Use the Cumulative tool to create new columns with a cumulative sum, cumulative average, cumulative minimum, cumulative maximum cumulative product and cumulative count. It can be helpful to analyse revenue growth over time, customer retention, cumulative ROI, etc. Typically users add a Sort tool before using the Cumulative tool to make sure their data is in the right order.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
Operation
Select the operation you want to perform. You can choose between the following operations:
- Cumulative Sum (running sum of the values of the column)
- Cumulative Average (running average of the values of the column)
- Cumulative Minimum (lowest running minimum value of the column)
- Cumulative Maximum (highest running maximum value of the column)
- Cumulative Product (running multiplication of the values of the column)
- Cumulative Count (running count of the values of the column)
Reverse
You can choose to reverse the cumulative calculation whereby you start from the bottom of the dataset and work your way up (instead of default - from the top).
Example: Cumulative sum within a group
In this example we want to sum our simple_int column within each group of the bool_col column.