Salesforce Certified Tableau Data Analyst free question 1 / 10 · Domain 1: Connect To and Transform Data
A .csv file from a vendor opens in Tableau Desktop with every column collapsed into one, double quotation marks still wrapped around the values, and accented letters showing up as garbage characters. The real delimiter is a semicolon. Which step fixes how Tableau reads the file?
- Turn on Use Data Interpreter so Tableau detects the separator and the character encoding automatically
- Run Custom Split on the single column at each semicolon, then choose the character set from the data type icon
- Switch the connection to Extract and set the separator, text qualifier, and character set in the Extract Data dialog box
- Open Text file properties and set the column separator, the text qualifier, and the character set
Show the answer and explanation
Answer: D
Why this is correct
For a text file connection, you click the table drop-down arrow on the canvas and select Text file properties. There you choose the character that separates the columns (from a list, or Other for a custom character), the text qualifier that encloses values, a character set that describes the file encoding, and the locale used to parse the file, which sets the decimal and thousands separators. Separator, quotes, and encoding all describe how the file should be read, so the fix belongs in the connection options rather than in work done on columns after they are loaded. The same drop-down also lets you say whether the first row contains column names, which is selected by default.
Why the other options are wrong
"Turn on Use Data Interpreter so Tableau detects the separator and the character encoding automatically" … Data Interpreter finds and removes formatting meant for human readers, such as titles, notes, and empty cells, and it detects sub-tables. It does not re-detect the separator or the character encoding of a delimited file.
"Run Custom Split on the single column at each semicolon, then choose the character set from the data type icon" … Custom Split creates a calculated field from a string field that is already loaded, so it cannot remove the quotation marks or repair the encoding. The data type icon changes the data type and the geographic role, not the character set.
"Switch the connection to Extract and set the separator, text qualifier, and character set in the Extract Data dialog box" … The Extract Data dialog box covers data storage, filters, aggregation, number of rows, and incremental refresh. It has no setting for a file's separator, text qualifier, or character set.
Key point
Reading a text file correctly is a connection-level setting. If you combine several text files, keep only the files that belong together in one directory so an unrelated file is not picked up by mistake. Very large text files also query slowly, which hurts performance as a data source.