RANK.EQ DAX Function (Statistical)

Returns the rank of a number in a column of numbers. If more than one value has the same rank, the top rank of that set of values is returned.

Syntax

RANK.EQ ( <Value>, <ColumnName> [, <Order>] )
Parameter Attributes Description
Value

The value to be ranked.

ColumnName

A column in which the value will be ranked.

Order Optional

The order to be applied. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending. If omitted, the default is descending.

Return values

Scalar A single integer value.

A number indicating the rank of Value among the numbers in ColumnName.

Remarks

The following RANK.EQ calls:

RANK.EQ ( <value>, table[column] )

RANK.EQ ( <value>, table[column], <order> )

correspond to the following RANKX calls:

RANKX (
    VALUES ( table[column] ),
    table[column],
    <value>
)

RANKX (
    VALUES ( table[column] ),
    table[column],
    <value>,
    <order>
)

The <value> placeholder is a DAX expression executed in the filter context where RANK.EQ is evaluated.
The <order> placeholder is the optional order argument, which is descending by default.

Related functions

Other related functions are:

Last update: Oct 15, 2019   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Kenneth Barber

MSDN documentation: https://docs.microsoft.com/en-us/dax/rank-eq-function-dax

DAX Conventions
Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Deprecated

This parameter is deprecated and its use is not recommended.

Contribute

Want to improve the content of RANK.EQ? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.