Video | Tableau | Data prep | Data visualisation

The Find, Findnth & Len functions in Tableau

FIND, FINDNTH and LEN look simple on their own, but stack them together and you can pull apart almost any messy string.

  • FIND returns the position of a piece of text within a string, while FINDNTH lets you target a specific occurrence (e.g. the second hyphen)
  • Wrap aggregated string results with MIN, MAX or AVG, and use ATTR to avoid the 'can't mix aggregate and non-aggregate' error
  • You can replace the static number in RIGHT or LEFT with a calculation, so the position adapts to each record
  • LEN returns the length of any text, which you can subtract from a found position to count characters from the right
  • Hold Command (Ctrl on Windows) and scroll to zoom the calculation editor, and double-click a function to wrap it around highlighted text

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

| My Courses on Linkedin Learning: https://www.linkedin.com/learning/instructors/tim-ngwena #tableau #salesforce #analytics
In this video, I touch on three key string functions. The FIND function returns the start of the substring within the string. FINDNTH returns the position of the nth occurrence of substring within the specified string, where n is defined by the occurrence argument. LEN returns the length of the string.

0:00 Intro
0:19 Setting Up
1:23 Find () string function
7:08 Findnth () string function
9:33 LEN () string function 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.