RowNumber

Number the rows in the table using the input column. Begins with 1.

Syntax

RowNumber(column, direction)

Function arguments:

column
(optional) The column used to order the table. The input column can be numbers, dates or text.
direction
(optional) The direction to sort the input column. Default is to sort ascending.

๐Ÿ“˜

Each row is numbered according to the input columnโ€™s ordering, without taking into account duplicate values. For example, if the input includes โ€œAnneโ€, โ€œJaneโ€, โ€œJaneโ€ and โ€œPariโ€, the values would be ranked 1, 2, 3 and 4.

Example

RowNumber([Population by State], "asc")

This assigns the smallest population 1, the second smallest 2 and so on with each population being assigned the next number in the sequence even when the values are identical.

RowNumber([COUNTY - Count])