Tableau Tips: Adding Ordinal Number Suffix
top of page

Tableau Tips: Adding Ordinal Number Suffix

Adding ordinal number suffix in Tableau

Ordinal numbers tell us the position of an item in a list, such as 1st, 2nd , 3rd , 4th etc. In this article, we will demonstrate how adding ordinal numbers can help us tell meaningful data stories with Tableau.

A simple use case of adding ordinal number suffix could be as follows;

sample view of expected outcome

Using Orders table of the Superstores data set pre-packaged with Tableau app, lets demonstrate a simple example on using ordinal number suffixes.

Build viz structure

  • Drag dimension field City to the rows shelf.

  • Drag measure field Sales to the columns shelf.

  • Sort City descending by Sales.

bar chart

Creating a calculated field to rank Sales along the City.

tableau calculated field

Creating a calculated field to condition how Ranking will be evaluated.

tableau calculated field

Build the story

Drag both the calculated fields created above (Ranking & Ordinal number suffix) to the tooltip shelf.

Order the tooltip as shown below;

customizing the tooltips

Executing this adds now a better story in the viz through the tooltip.

This is how the viz looks.

resulting final view

I hope this article was helpful to you. To receive more of the Tableau tips and tricks, kindly join our mailing list by subscribing below.

Thank you for reading.

Original.png

We Support You Deliver Business-Focused Solutions That Enable Data-Driven Decision Making.

  • Tableau profile
  • YouTube
  • White LinkedIn Icon
  • Facebook
  • X

QUICK LINKS

CONTACT US

+254 738 307 495

East Gate Mall, Donholm

3rd Floor Suite No. 3i

Nairobi, Kenya

Join our mailing list

bottom of page