Quick Tutorial | Ranking
The rank formula function determines the ordered numerical ranking of an element across a set. The function takes two parameters, a value or expression for the current object being evaluated, and a list of values for the set. For example:
rank(7,[3,4,18,7,2])
will yield 2, as 7 is the second largest value in the set.