Complete the code to extract the first 3 characters from the field 'ProductName'.
LEFT([ProductName], [1])The LEFT function extracts characters from the start of a string. Using 3 extracts the first three characters.
Complete the code to extract the last 4 characters from the field 'OrderID'.
RIGHT([OrderID], [1])The RIGHT function extracts characters from the end of a string. Using 4 extracts the last four characters.
Fix the error in the code to check if 'CustomerName' contains the substring 'Smith'.
CONTAINS([CustomerName], [1])In Tableau, string literals must be enclosed in double quotes. So "Smith" is correct.
Fill both blanks to extract the first 2 characters from 'Category' and check if it contains 'El'.
CONTAINS(LEFT([Category], [1]), [2])
LEFT with 2 extracts first two characters. CONTAINS needs the substring "El" in quotes.
Fill both blanks to check if the last 3 characters of 'Region' contain 'USA'.
CONTAINS(RIGHT([Region], [1]), [2])
RIGHT with 3 extracts last three characters. CONTAINS needs the substring "USA" in quotes.