Assigns a rank to each row within a partition based on the values in the specified column. When there are ties, the same rank is assigned and the next rank is skipped, leaving gaps in the sequence. Category:Documentation Index
Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
Use this file to discover all available pages before exploring further.
window
Syntax:
Integer
Context Filtering: ✗ No
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
column | column | ✓ Yes | The column to rank by |
Validation
- Minimum parameters: 1
- Maximum parameters: 1
Examples
1, 2, 2, 4, 5, 6, ...
Related Functions
- DenseRank - Assigns rank without gaps
- PercentRank - Calculates relative rank as percentage
- RowNumber - Assigns sequential row numbers
- CumeDist - Calculates cumulative distribution
- Ntile - Divides rows into groups