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?
✗ Incorrect
RIGHT('Tableau', 4) returns the last 4 characters: 'leau'.
Which function checks if a substring exists inside a string in Tableau?
✗ Incorrect
CONTAINS() returns TRUE if the substring is found inside the string.
What will LEFT('Dashboard', 5) return?
✗ Incorrect
LEFT('Dashboard', 5) returns the first 5 characters: 'Dashb'.
If CONTAINS([Name], 'John') is FALSE, what does it mean?
✗ Incorrect
FALSE means the substring 'John' is not found anywhere in [Name].
Which function would you use to get the last 2 characters of a string?
✗ Incorrect
RIGHT(string, 2) returns the last 2 characters of the string.
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.