What is the difference between INDEX and RANK in Tableau?

Hi, What is the difference between INDEX and RANK in Tableau