Rank the values per clients to know which day had the highest, second highest, etc.

Parameters:
See dedicated page for more information.
RankByPartition is a scripted action. Embedded code is accessible and customizable through this tab.
See dedicated page for more information.
The rankByPartition action is used to compute rankings of rows within partitions (groups) of your dataset based on the values in a selected column. It assigns ranks either in standard mode (which can include gaps when duplicates occur) or dense mode (no gaps between ranks). This action is especially useful when you need to analyze the relative ordering of rows within each group or category — such as ranking sales by region, scores by class, or product values by category.
It supports two ranking modes:
The input dataset must be sorted first — first by the partition column, and then by the rank-by column — before using this action.

idxPartitionBy, then by idxRankBy.isDense will switch between ranking modes.rankColName.
The Sort action must sort the table as follows:


If the input is not sorted correctly, you will receive the following error:
An error occurred while running initialization of the script 'rankByPartition'
Input table must be sorted on (1) partition and (2) RankBy columns
To fix this, insert a Sort action before rankByPartition, and configure it to sort on:
The rankByPartition action enables efficient per-group ranking of rows with flexibility in tie handling (dense or standard). Ensure proper sorting of the dataset for successful execution. This is a powerful tool for comparative and hierarchical data analysis across logical groups.
