RANKX is a DAX function that returns the rank of an expression evaluated in the current context within a list of values for that expression.
Syntax
RANKX(
Table,
Expression,
Value,
Order,
Ties
)
Argument | Properties | Description |
---|---|---|
Table | A table expression. | |
Expression | An expression that will be evaluated for row of the table. | |
Value | Optional | An expression that will be evaluated in the current context. If omitted, the Expression argument will be used. |
Order | Optional | The order to be applied. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending. |
Ties | Optional | Function behavior in the event of ties. Skip – ranks that correspond to elements in ties will be skipped; Dense – all elements in a tie are counted as one. |