Calculate State and Country Abbreviations in Tableau

By: Eric Parker

Eric Parker lives in Seattle and has been teaching Tableau and Alteryx since 2014. He's helped thousands of students solve their most pressing problems. If you have a question, feel free to reach out to him directly via email. You can follow him on LinkedIn or sign up for a Tableau Office Hour to work with him directly!

Do you have a data set with US State names and it would be handy to save space in your visualizations by displaying abbreviations instead of full state names? Or maybe you need country abbreviations instead?

It feels like every year or two I run across a need for this and end up writing the same calculation from scratch over and over again. No more! This video shows how to write calculations which convert state and country names to their abbreviations and provides a Tableau Workbook with the calculations you can copy and paste and never have to write them from scratch again!

Related Resources:

Want to keep learning foundational skills in Tableau? Sign up for our weekly newsletter so you never miss new blog posts, videos and events!

How to Build a Reset Filters Button in Tableau

How to Filter Multiple Date Fields at Once in Tableau

0