RANKX – DAX Guide

RANKX: Returns the rank of an expression evaluated in the current context in the list of values for the expression evaluated for each row in the specified table.
https://dax.guide/rankx/