Video | Tableau | Data visualisation | Analytics

The Rank function in Tableau & all its variants

Find out how to use the Rank function and all its variants.

  • The standard RANK function counts descending by default and inserts a gap after duplicate values, so tied items share a rank and the next number skips ahead.
  • RANK_DENSE assigns identical ranks to ties but inserts no gaps, giving a continuous count down the table.
  • RANK_MODIFIED also ties duplicates but places the gap before the next group, pushing the running rank ahead.
  • RANK_PERCENTILE returns a 0-to-1 spread rather than a position, useful for encoding where a value sits in the data, for instance as a colour.
  • You can write a rank calculation directly in a pill, then hold command/control and drag it to the Measure Values shelf to turn it into a reusable calculated field, and you don't need the bracketed [asc]/[desc] placeholders from the documentation.

In this video, I cover how the Rank function works in tableau along with its 4 variants, Rank Modified, Rank Dense, Rank Percentile and rank Unique.

  • 0:00 Intro
  • 0:20 Setting up a table to show you rank
  • 2:36 How to use the rank function.
  • 8:05 Rank Dense explained
  • 10:56 Rank Modified explained
  • 13:36 Rank Percentile explained
  • 15:29 rank Unique explained
  • 17:39 Outro