Also, if you just want to rank you can use the rank function over a measure.
Then just add it to your view, with the dimension you are looking to rank.
I hope this helps. If it does please mark the answer as correct so other users can find it.
If you have any question do not hesitate on asking.
First welcome to Tableau and the forum
Check out the link on how to get the most out of the forum Getting Started in the Forums and the free training video course
that will take you from getting started to advanced calculation Tableau Training: View Training Courses
There are a number of ranking functions - I usually use
to get the complete rank and they filter it - it has the advantage in that it can be used within other calculations
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.