0
0
Tableaubi_tool~5 mins

String functions (LEFT, RIGHT, CONTAINS) in Tableau - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the LEFT(string, number) function do in Tableau?
It returns the first number of characters from the start (left side) of the string.
Click to reveal answer
beginner
How does the RIGHT(string, number) function work in Tableau?
It returns the last number of characters from the end (right side) of the string.
Click to reveal answer
beginner
What is the purpose of the CONTAINS(string, substring) function in Tableau?
It checks if the substring exists anywhere inside the string. It returns TRUE if found, otherwise FALSE.
Click to reveal answer
beginner
Write a Tableau formula to get the first 3 characters of a field called [ProductCode].
LEFT([ProductCode], 3)
Click to reveal answer
beginner
How can you check if the word 'Sale' appears in a field called [Description] in Tableau?
Use CONTAINS([Description], 'Sale') which returns TRUE if 'Sale' is found anywhere in [Description].
Click to reveal answer
What does RIGHT('Tableau', 4) return?
A'leau'
B'u'
C'eau'
D'blau'
Which function checks if a substring exists inside a string in Tableau?
ACONTAINS()
BRIGHT()
CLEFT()
DFIND()
What will LEFT('Dashboard', 5) return?
A'board'
B'boarda'
C'Dashb'
D'Dash'
If CONTAINS([Name], 'John') is FALSE, what does it mean?
A'John' is at the start of [Name]
B[Name] is empty
C'John' is at the end of [Name]
D'John' is not found anywhere in [Name]
Which function would you use to get the last 2 characters of a string?
ALEFT(string, 2)
BRIGHT(string, 2)
CCONTAINS(string, 2)
DMID(string, 2)
Explain how LEFT, RIGHT, and CONTAINS functions work in Tableau with simple examples.
Think about cutting a piece from the start or end of a word, and searching for a word inside a sentence.
You got /4 concepts.
    Describe a real-life scenario where you might use the CONTAINS function in a Tableau report.
    Imagine you want to find all sales that mention 'discount' in their notes.
    You got /4 concepts.