Hexaware Technologies interview question

Explain how to use RANK function. Different modes of operation in power bi