String Functions in Tableau

Monday of week three started at pace: 3.5 hours deep-diving into calculations and functions in Tableau; a proper wake-up call after the weekend.

For this session, I focused on string functions, which are fundamental for cleaning and preparing data within Tableau. These functions allow you to reshape and standardise text fields, making datasets far more usable for analysis.

Below, I’ve broken down 8 key string functions from the session, using Tableau’s Sample Superstore dataset to keep the examples simple and practical:

  1. CONTAINS

Calculation:

Output:

  1. ENDSWITH

Calculation:

Output:

  1. FIND

Calculation:

Output:

  1. FINDNTH

Calculation:

Output:

  1. LEFT/RIGHT

Calculation:

Output:

  1. LOWER

Calculation:

Output:

  1. PROPER

Calculation:

Output:

  1. MID

Calculation:

Output:

Key takeaway:
String functions are a core part of data preparation in Tableau. Small transformations can significantly improve data quality and make analysis more reliable further down the line.

Author:
George Rycroft
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab