Divides rows in a partition into a specified number of approximately equal groups, assigning a bucket number to each row. 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: ✓ Yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
num_buckets | integer | ✓ Yes | The number of groups to divide the rows into |
Validation
- Minimum parameters: 1
- Maximum parameters: 1
Examples
Related Functions
- Rank - Assigns rank with gaps
- DenseRank - Assigns rank without gaps
- PercentRank - Calculates relative rank as percentage
- RowNumber - Assigns sequential row numbers
- CumeDist - Calculates cumulative distribution