Video | Tableau | Data prep | Analytics

The Right () and Left () Functions in Tableau

RIGHT and LEFT are great for clean, consistent data - but pair them with a parameter and they suddenly become dynamic.

  • Right-click a field and choose Describe (then Load) to view its metadata and the first 20 or so values
  • RIGHT(string, number) returns characters from the end of a string and LEFT(string, number) from the start
  • Don't wrap an existing string field in quotation marks - Tableau adds quotes only to mark literal text, and adding them to a field name breaks the calculation
  • Hard-coded character counts only work on perfectly consistent data, so this technique has a limited use case on messy data
  • Swap the fixed number for a parameter to let users dynamically set how many characters are isolated

Future-proof your career https://n1d.io

| In this video, I cover two of the most used string functions in Tableau. Right () and Left (). They return the right or left a most number of characters in a string (a piece of text ). You define how many characters.

Suggest videos you’d like to see here: https://shrtm.nu/spWB

0:00 Intro
0:07 Setting up
1:06 The right () function
5:33 The left () function
6:57 Parameter controls
8:12 Outro -
#tableau #salesforce #analytics Share feedback and Suggestions: https://tableautim.canny.io/suggestions -

Join this channel to get access to perks:
https://www.youtube.com/channel/UC7HYxRWmaNlJux-X7rNLZyw/join ----------
(C) 2023 TN-Media LTD. No re-use, unauthorized use, or redistribution, of this video without prior permission.