Salesforce certification · Exam Salesforce-Tableau-Data-Analyst

Salesforce-Tableau-Data-Analyst Mock Exam

Salesforce Tableau Data Analyst

Free Salesforce-Tableau-Data-Analyst questions on Connect To and Transform Data, each with the answer and an explanation.

20 questions · 35 minutes · free, no sign-up

Connect To and Transform Data questions

1–10 of 15 free
Question 1 Choose 1
You have a Tableau workbook that contain three worksheets named Sheet1 Sheet2 and Sheet3.
You create several filters.
From the Data Source page you plan to add data source fillers
When type of filter will appear in the Edit Data Source Filters dialog box?
Show answerHide answer

Correct answer: D A dimension filter on all the sheets

Explanation

Explanation

The Edit Data Source Filters dialog box is designed to manage filters that are applied to the entire data connection before any worksheet processing occurs. These filters are global and affect all worksheets using that data source. When you choose to apply a dimension filter from the Filters shelf to "All Using This Data Source," Tableau promotes this filter to the data source level, and it is subsequently listed in the Edit Data Source Filters dialog box.

Options Analysis

✔️ Correct Option: [D] A dimension filter on all the sheets
When an analyst applies a dimension filter on the Filters shelf of a worksheet and changes its scope to "All Using This Data Source," it is automatically recognized and listed in the Edit Data Source Filters dialog box. This is because a filter applied to all sheets using the same source functions as a data source filter, limiting the underlying data before it reaches any view.

❌ Incorrect Option: [A] A table calculation filter used on Sheet
Table calculation filters operate at the very last step of Tableau's Order of Operations, long after the data has been loaded and the view table has been created. They filter what is displayed based on aggregated results, but they do not filter the underlying data source. Therefore, a table calculation filter would never appear in the Edit Data Source Filters dialog.

❌ Incorrect Option: [B] A top N condition filter on a dimension in Sheet 1 and Sheet2
A Top N filter is a type of Dimension filter applied on the Filters shelf. However, it is fundamentally a worksheet-level filter unless its scope is explicitly set to "All Using This Data Source." Even when applied to a select set of sheets like Sheet 1 and Sheet 2, it remains a global filter, which is a separate scope from a true data source filter that applies to all sheets and is listed in the dedicated dialog.

❌ Incorrect Option: [C] A context filter on a dimension in Sheet3
A Context Filter is executed early in the query pipeline, but it is still a worksheet-level filter (or set of filters) designed to work within the confines of a single worksheet's data table before dimension filters are applied. It is not a global filter that applies to all worksheets equally and therefore does not get listed or managed in the Data Source Filters dialog box.

Reference 🔗
Tableau Help: Filter Data from Your Data Source: The official documentation states that when you create a data source filter, any global filters that use that data source are displayed automatically in the Edit Data Source Filters dialog box.
Question 2 Choose 1
A colleague provides a Data Analyst with access to a folder that has the following files:

Sales.csv
Book1.json
Sales.tds
Export.mdb

Which file can contain information for connecting to an external data source, such as an SQL Server database?
Show answerHide answer

Correct answer: B Sales.tds

Explanation

Explanation

The file extension .tds stands for Tableau Data Source. This is a proprietary Tableau file type designed to save the connection information to data, without saving the actual data itself. A .tds file stores details like the database server name (e.g., SQL Server), port, credentials (or prompt for them), and any customized settings, folders, calculations, or hierarchies applied within Tableau. This file type is specifically used to share and reuse a standardized connection setup.

✅ Correct Option: B. Sales.tds
The .tds (Tableau Data Source) file is an XML file created by Tableau Desktop. Its primary function is to store the full definition of a data connection, including the type of database (e.g., SQL Server), server address, authentication requirements, and any metadata customizations specific to Tableau. It acts as a shortcut or template, allowing an analyst to easily reconnect to the external data source without having to rebuild the connection from scratch.

❌ Incorrect Option: A. Sales.csv
A .csv (Comma Separated Values) file is a plain text file that contains the raw, delimited data itself. It does not contain any connection information to an external, live data source like an SQL Server database. The data within a CSV is already static and local to the file, and it is not designed to maintain a dynamic connection.

❌ Incorrect Option: C. Export.mdb
A .mdb file is a file format used by Microsoft Access Database. While it is a database that contains both data and database objects, it is a local, file-based database. It does not contain the connection instructions for a separate, external SQL Server database, which is typically accessed via an ODBC/JDBC driver and a .tds or similar connection file.

❌ Incorrect Option: D. Book1.json
A .json (JavaScript Object Notation) file is a standard text-based format for transmitting and storing data, often used by web applications. Similar to a CSV, a JSON file contains the raw data itself, structured in key-value pairs. It does not contain the necessary connection instructions, drivers, or metadata to establish a live connection to an external SQL Server database.

📚 Reference
You can find the official documentation for Tableau file types:
Tableau Help: Tableau File Types and Folders
Question 3
You are developing a data source in Tableau Prep.
You have two tables named Orders and Employees.
The Orders table was created in 2019 and contains the following columns.

The Employees table contains all the employee information for the various sales teams in the sales department and contains the following columns

You want to prepare the data so that you can analyze sales trends over time for every sales team. Which three actions should you perform in order? (Place the three correct options in order. Use the arrows to move Options to Answer Area. Use Answer Area arrows to re-order the options.)

Show answerHide answer

Explanation



Explanation:

To successfully combine the Orders and Employees tables using a horizontal join in Tableau Prep Builder, the matching keys from both sources must share the exact same data type signature.

Action 1 (Fixing the Data Type Mismatch):Looking at the source tables, the ID column in the Orders table is currently stored as a text string (indicated by the Abc icon in image_c08ba9.png), whereas Employee ID in the Employees table is stored as an integer (indicated by the # icon in image_c08bae.png). Attempting to join a string field directly to an integer field will cause an error or result in zero matched records. Therefore, you must add a Clean step first to cast the ID field into a Whole number.

Action 2 (Renaming for Alignment): In the same Clean step, renaming the ID column to match the target field name (Employee ID) ensures data clarity and allows Tableau Prep to automatically recognize and pair the join keys.

Action 3 (Executing the Join): With data types aligned, dragging the Orders flow branch and dropping it on top of the Employees block to select Join creates the relational link needed to bring Sales Team information into the orders stream.

Why Other Options Are Incorrect:

Creating a Union: A Union appends data vertically (stacking rows). Because these tables represent entirely different entity attributes (transactional orders vs. staff directories), a union is fundamentally incorrect.

Filtering out null rows:
While filtering nulls can be useful for cleanup, it does not address the fundamental structural data type mismatch preventing the table join from running.

References:

Tableau Prep Documentation (Join Data): "To join tables, the fields that make up the join clause must have the same data type. If the data types are different, you must convert them in a Clean step before joining."
Question 4 Choose 1
A Data Analyst would like to receive the draft results of a colleague's Tableau Prep flow to start work on a dashboard before it has been published.
What should the analyst do to accomplish this?
Show answerHide answer

Correct answer: D Have the colleague output the results of the flow to a .hyper file. On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the .hyper file on the local file system.

Explanation

Explanation

To access the results of a Tableau Prep flow before it's published or shared via Tableau Server/Cloud, the most direct and efficient method is for the colleague to output the data to a local file. Tableau Prep's standard output format is the .hyper file, which is optimized for Tableau Desktop connections. The analyst can then take this file, typically shared over a network or local drive, and connect to it directly as a data source within Tableau Desktop to begin building the dashboard.

Options Analysis

🟢 Correct Option: [D] Have the colleague output the results of the flow to a .hyper file. On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the .hyper file on the local file system.
This is the standard and correct workflow for sharing unpublished Prep results. The colleague sets the flow's Output step to save the cleaned data as a .hyper file (a highly optimized file format for Tableau). The analyst then receives this file and uses the Connect to Data page in Tableau Desktop, selecting To a File and then choosing the .hyper file. This action creates a live connection to the prepared data, allowing dashboard development to start immediately.

❌ Incorrect Option: [A] On the Tableau Desktop Connect page, under To a File, choose "More ...", and browse for the colleague's .tf file on the local file system.
The .tfl or .tflx file extension is for the Tableau Prep Flow logic itself, not the data output. Tableau Desktop is designed to connect to data sources (like .hyper files, databases, or spreadsheets), not to the flow definition file. Connecting to a .tfl file would be incorrect and would not provide the analyst with the prepared data to build a dashboard.

❌ Incorrect Option: [B] Have the colleague output the results of the flow to a .hyper file. Create a new workbook in Tableau Cloud, choose Files on the Connect to Data page, and upload the .hyper file from the computer.
While this method will work, it's less direct than using Tableau Desktop for an analyst who wants to start work on a dashboard immediately on their local machine. More importantly, this process introduces an unnecessary step of uploading to Tableau Cloud. The question implies a local data exchange to "start work," making the local connection via Tableau Desktop (Option D) the most appropriate and common first step.

❌ Incorrect Option: [C] Open Tableau Desktop and make a connection to Tableau Prep, then choose the colleague's flow that the analyst wants to connect to.
There is no direct, native connector in Tableau Desktop labeled "Connect to Tableau Prep." Tableau Desktop connects to the output of a flow (a .hyper file or a published data source), not to the running flow application itself. The flow must be run first, and its output saved or published for Tableau Desktop to be able to access the results.

Reference 🔗
Tableau Help: Save and Share Your Work
Question 5 Choose 2
You connect to a database server by using Tableau Prep. The database server has a data role named Role1. You have the following field in the data. You need to apply the Role1 data role to the Material field.

Which two actions should you perform? Choose two.
Show answerHide answer

Correct answer: B, C For the data type of the Material field, select Custom, and then select Role1.From the More actions menu of Materials, select Group Values, and then select Spelling.

Explanation

Explanation

Applying a data role in Tableau Prep involves two key steps: first assigning the predefined role to the field, and then cleaning any invalid values that don't conform to the role's standards. Data roles help maintain data quality by ensuring field values match expected patterns or predefined lists.

✅ Correct Options

B. For the data type of the Material field, select Custom, and then select Role1.
This action assigns the predefined Role1 from your database server to the Material field. Tableau Prep will then validate all field values against Role1's standards and flag any non-conforming values for cleanup.

C. From the More actions menu of Materials, select Group Values, and then select Spelling.
After applying Role1, this action cleans invalid values by using fuzzy matching to identify and group similar spellings. This automatically fixes common data entry errors and standardizes values to match Role1's requirements.

❌ Incorrect Options

A. From the More actions menu of Materials, select Valid in the Show values section. ❌
This action merely filters the view to display only values that currently pass Role1 validation, effectively hiding problematic entries from view. While useful for temporary analysis, this approach doesn't actually clean or fix invalid values - it simply conceals them, leaving underlying data quality issues unresolved.

D. From the More actions menu of Materials, filter the selected values. ❌
Filtering permanently removes selected values from your dataset rather than correcting or standardizing them according to Role1 standards. This approach results in data loss and doesn't leverage the intelligent cleaning capabilities of data roles, making it an inappropriate solution for applying and enforcing Role1 validation.

📝 Summary
The correct approach involves first assigning Role1 through the data type menu to activate validation, then using spelling-based grouping to intelligently clean invalid values. Filtering or hiding invalid values avoids rather than solves the underlying data quality issues.

📚 Reference
Tableau Help: Create and Use Data Roles - Official documentation on implementing predefined data roles for automated field validation and data standardization processes.
Question 6 Choose 1
You have a dashboard that contains a parameter named Start Date.
You need to create an extract from a Microsoft Excel file. The extract must be filtered based on Start Date.
What should you do?
Show answerHide answer

Correct answer: A Create a data source based on the Excel worksheet and create a calculated field based on Start Date. Add the calculated field to the extract filter.

Explanation

Explanation

A Tableau Data Extract (a .hyper file) is a static snapshot of data. To filter this extract using a dynamic value like a parameter, you must define the filter criteria using a calculated field. This calculated field creates a boolean condition (e.g., [Date] >= [Start Date]). Adding this calculation to the Extract Filter and setting it to True permanently locks the extract to the records that satisfy the condition based on the parameter's value at the time of extraction.

✅ Correct Option: A (Create a data source based on the Excel worksheet and create a calculated field based on Start Date. Add the calculated field to the extract filter.)
The first step is establishing the connection to the Excel file to create a data source. A calculated field, such as [Order Date] >= [Start Date], is necessary to compare the data field against the parameter value. This calculated field is then applied in the Extract Filter dialog box, selected to filter for the True condition, ensuring only the qualifying records are included in the extract file.

❌ Incorrect Option: B (Create a custom SQL query to define the data source and create a calculated field based on Start Date. Add the calculated field to the extract filter.)
Microsoft Excel files, which are flat files, do not typically support the use of Custom SQL queries to define the data source connection in Tableau. Custom SQL is a feature generally reserved for connections to relational databases (e.g., SQL Server, PostgreSQL) where a query language is required to define the data input.

❌ Incorrect Option: C (Create a custom SQL query that references Start Date in the WHERE clause.)
This approach fails for two reasons: Custom SQL is not applicable to Excel data sources, and Tableau parameters cannot be directly referenced by name within the text of a Custom SQL query for filtering in this context. This method is only valid for some database connections via a Data Source Filter, but not for an Excel extract.

❌ Incorrect Option: D (Create a data source based on the Excel worksheet and create a calculated field based on Start Date. From the Data pane, add the calculated field to the data source filter)
While using a Data Source Filter (as opposed to an Extract Filter) achieves the exact same result (the filter is applied before the extract is saved), the most precise control for defining the contents of the extract file is specifically through the Extract Filter configuration dialog, which is the mechanism referenced in Option A.

🔗 Reference
Extract Your Data - Tableau Help
Question 7 Choose 1
A colleague provides you with access to a folder that contains the following files:

• Sates.csv
• Bookl.twb
• Sates.hyper
• Export.mdb

Which He contains an extract?
Show answerHide answer

Correct answer: C Sales.hyper

Explanation

Explanation

A Tableau extract is a highly compressed, optimized snapshot of data stored locally on your machine. This local copy, which uses Tableau's proprietary high-performance engine, improves visualization speed, reduces the load on the original database, and allows for offline work. Since Tableau version 10.5, the modern file extension for a data extract is .hyper (replacing the older .tde extension).

✅ Correct Option: C. Sales.hyper
The .hyper extension specifically denotes a Tableau Data Extract file. This file type contains the actual data from the source, compressed and stored in a columnar format that is highly optimized for fast querying within Tableau. It functions as an independent, local copy of the data, which is the definition of an extract.

❌ Incorrect Option: A. Export.mdb
The .mdb extension is associated with a Microsoft Access Database file. While Tableau can connect to this file type to access data, the .mdb file itself is the original data source, not a Tableau-created or optimized data extract. It is a proprietary database format separate from Tableau's extract technology.

❌ Incorrect Option: B. Book1.twb
The .twb (Tableau Workbook) extension contains the design and logic of your visualization, such as worksheets, dashboards, and connection information. Crucially, a standard .twb file does not contain the actual underlying data. It requires live access to the original data source (like the .csv or a database).

❌ Incorrect Option: D. Sales.csv
A .csv (Comma Separated Values) file is a plain-text file containing raw data, which serves as a simple data source. Tableau can connect to this file type, but the file itself is the original source of data, not a compressed, optimized Tableau extract file.

🌐 Reference
Tableau File Types and Folders
Question 8 Choose 1
You want to connect a Tableau workbook to a dataset in a Microsoft Excel spreadsheet.

What should you do from Tableau Desktop?
Show answerHide answer

Correct answer: A From the Data menu select New Data Source

Explanation

Explanation

Connecting a Tableau workbook to an Excel spreadsheet requires establishing a live or extract connection to the file so Tableau can read its sheets, named ranges, or tables. This is always initiated through the dedicated connection workflow in Tableau Desktop, not by opening or importing the workbook itself. Only one menu option starts this process correctly.

Correct Option:

✅ A. From the Data menu select New Data Source
This is the official and only way to add a brand-new Excel file (or any other data source) to your workbook. Choosing Data → New Data Source opens the Connect pane, where you select “Microsoft Excel,” browse to your .xlsx or .xls file, and Tableau instantly previews sheets and connections. You can then join multiple sheets, create relationships, or build extracts.

Incorrect Options:

❌ B. From the Data menu select Replace Data Source
→ Replace Data Source is strictly for swapping an existing connection with another data source that has identical structure (same field names and data types). It cannot be used to introduce a completely new Excel file and will be grayed out if no data source exists yet.

❌ C. From the File menu select Import Workbook
→ There is no “Import Workbook” command in Tableau Desktop. The File menu offers Open, Save, Export as .twbx, etc., but none of these options establish a data connection to an external Excel file.

❌ D. From the File menu select New
→ File → New creates an empty workbook with no data sources attached. While you can add data afterward, this step alone does not connect to Excel—it only clears the current workspace and starts a blank canvas.

Reference:
Tableau Official Help – Connect to Excel: Excel
New vs Replace Data Source (official distinction): Blend Your Data
Question 9
You have the following two datasets:

• A Microsoft Excel worksheet that has two columns named Employee Name and Department

• A Microsoft SQL Server table that has three columns named Employee Name. Pay Grade and Team Size.

You want to use Tableau Prep to join the two datasets. Which three actions should you perform in order? (Place the three correct options in order.)
Show answerHide answer

Explanation

Explanation

To combine data from different sources in Tableau Prep, you must first bring them into the same flow canvas. Once both datasets are present, you can connect them using a Join step. The final and most critical action is to define how they are joined by selecting the specific type of join and the common field that links the records correctly.

✅ Correct Steps & Order

Add both the Excel file and the SQL Server table to the Flow.
This is the foundational first step. You must import your data sources into the Tableau Prep Builder canvas before you can perform any operations on them. You will use the "Connections" pane to add both the Microsoft Excel worksheet and the SQL Server table as input steps to your flow.

Join the two datasets using a join clause.
After both data sources are in the flow, you connect them by dragging one dataset onto the other and selecting 'Join' from the menu that appears. This action creates a new Join step in your flow, which is represented by a Venn diagram icon, and opens the join configuration panel.

Select the join type and the join fields.
This is the configuration step where you define the logic of the join. You must select the type of join (e.g., Inner, Left, Right, Full Outer) based on which records you want to keep. Crucially, you must specify the join clause by selecting the common field from each dataset—in this case, 'Employee Name' from the Excel sheet and 'Employee Name' from the SQL Server table.

📝 Summary
The process is sequential: first add data, then connect it via a join operation, and finally configure the join's logic by defining its type and the key linking field.

📚 Reference
Combine Your Data in Tableau Prep - Tableau Help
Question 10 Choose 1
You have the following dataset.

When you use the dataset in a worksheet, you want Sales to appear automatically as shown in the following table.

What should you do?
Show answerHide answer

Correct answer: C Change the default number format of the Sales told

Explanation

Explanation

To ensure the Sales field consistently appears with the currency symbol and is abbreviated with 'K' for thousands (e.g., $44K), you must modify the default properties of the measure. This is done by changing the default number format of the field, which allows you to apply custom formatting rules like currency, decimal places, and scaling (like dividing by 1,000 for 'K') globally across the workbook.

✅ Correct Option: C

Change the default number format of the Sales field.
This is the standard and recommended Tableau best practice. By right-clicking the Sales field in the Data Pane and navigating to Default Properties > Number Format, you can select Currency (Custom). Within the custom format options, you can set the currency symbol, zero decimal places, and crucially, apply custom formatting codes (like $,#K or similar depending on the Tableau version) to show the value in thousands with the 'K' suffix. This method ensures the underlying data type remains a Number, preserving its analytical capability.

❌ Incorrect Options

A. Change the data type of the Sales field to String.
Changing the data type to String (Text) is incorrect because it prevents the Sales field from being used in any numerical aggregations (like SUM, AVG, MAX) or continuous axes. While you can display text, you lose the ability to perform vital analytical functions, which is the core purpose of a measure like Sales.

B. Create a calculated field that uses a formula of 'S' * str(Round(([Sales],2)) + 'k'.
This formula is syntactically incorrect in Tableau. You cannot use the multiplication operator (*) to combine the string 'S' with the result of the STR() function. Even if fixed to concatenate, creating a new calculated field for basic display formatting is inefficient. It results in a new string field, losing numerical properties, and unnecessarily complicates the data pane.

D. Create a calculated field that uses a formula of 'S' + str(([Sales]/1000)).
This formula creates a new string calculated field by dividing sales by 1,000 and concatenating it with the string 'S'. This approach, while resulting in a display similar to the requirement, is inefficient and inappropriate. It produces a string field that cannot be used for numeric analysis and forces the creation of a new field when a simple format change on the existing field is the correct solution.

📖 Reference
Tableau Official Documentation: Formatting Numbers
Source: Tableau Help: Custom Number Formats (Search for "Tableau default number format" on the official Tableau website)

Note: Official Tableau documentation guides users to use the Default Properties menu to set the display format for fields globally, allowing for advanced custom number formats to handle scaling like 'K' for thousands.
Full mock exam

Sit the Salesforce-Tableau-Data-Analyst exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Tableau-Data-Analyst exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Tableau-Data-Analyst mock exam
  • 60questions per mock
  • 105 mintime limit
  • 212questions in the bank
  • Newmock on every attempt