RANKBY
Ranks values within a column, partitioned by the unique values of a separate column
Last updated
Ranks values within a column, partitioned by the unique values of a separate column
Last updated
RANKBY(column
, partition
, [ascending]
, [rank_type]
)
Ranks the values within a column
when grouped by unique values within a partition column
RANKBY() is a window function, which perfoms like RANK() except partitioned by the values of a separate column
Argument | Description |
| Column to evaluate in ranking |
| Column containing unique values. |
| Optional, defaults to true. Order in which elements should be sorted.
|
| Optional, defaults to "average". Option for how to rank the group of elements that have the same value.
|
Outputs column of values containing rank of each value