RANK.EQ Function (DAX)
Returns the ranking of a number in a list of numbers.
columnName cannot refer to any column created using these functions: ADDCOLUMNS, ROW or SUMMARIZE.I
If value is not in columnName or value is a blank, then RANK.EQ returns a blank value.
Duplicate values of value receive the same rank value; the next rank value assigned will be the rank value plus the number of duplicate values. For example if five (5) values are tied with a rank of 11 then the next value will receive a rank of 16 (11 + 5).
The following example creates a calculated column that ranks the values in SalesAmount_USD, from the InternetSales_USD table, against all numbers in the same column.
The following example ranks a subset of values against a given sample. Assume that you have a table of local students with their performance in a specific national test and, also, you have the entire set of scores in that national test. The following calculated column will give you the national ranking for each of the local students.