Salesforce certification · Exam Salesforce-Tableau-Data-Analyst

Salesforce-Tableau-Data-Analyst Mock Exam Page 3

Salesforce Tableau Data Analyst

Free Salesforce-Tableau-Data-Analyst questions on Explore and Analyze Data, each with the answer and an explanation.

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

Explore and Analyze Data questions

21–23 of 23 free
Question 21 Choose 1
You have the following Map.

You need the map to appear as shown in the following visualization.

What should you do?
Show answerHide answer

Correct answer: D Change the mark type to Density.

Explanation

Explanation

The visualization shown, which typically presents areas with a high concentration of data points as a smooth, darker color gradient, is achieved by setting the mark type to Density. This mark type is specifically designed for visualizing many overlapping data points on a map (or other chart types) where individual marks are less important than the overall pattern of concentration.

✅ Correct Option: D (Change the mark type to Density.)
Density mark type is specifically used in Tableau to analyze data distribution patterns where many data points cluster in geographic areas. Instead of drawing individual circles (the default Automatic or Circle mark), Tableau calculates the density of points and uses a color gradient to show concentration. This feature effectively visualizes the geographic heat map or "hot spots" that are often required when analyzing spatial data, which matches the required visualization.

❌ Incorrect Option: A (Drag Location to Size on the Marks card.)
Location (which is usually a geographic role like Latitude/Longitude, State, or City) is already used to place the points on the map. Dragging it to the Size card would likely result in an error or an unintuitive size encoding, as location fields are typically categorical or positional, not quantitative measures used for sizing.

❌ Incorrect Option: B (Change the opacity to 75%.)
Changing the opacity affects the transparency of the marks (e.g., circles) but keeps them as discrete marks. While it can help reduce clutter, it does not transform the visualization into a smooth, heat-map-like density view, which requires a specific density calculation engine.

❌ Incorrect Option: C (Drag Population to Size on the Marks card.)
Dragging a measure like Population to the Size card would result in a Proportional Symbol Map, where the size of each individual mark (e.g., circle) is scaled by its population value. This creates discrete, sized bubbles, not the continuous, overlapping, smooth-gradient visualization characteristic of a density map.

❌ Incorrect Option: E (Change the mark type to Map.)
Map is not a mark type option in Tableau Desktop. The available mark types include Automatic, Bar, Line, Circle, Square, Shape, Text, Polygon, and Density. The base visualization is already a map that uses geographic fields; you change the way marks are rendered, not the map itself.

🔗 Reference
Build with Density Marks (Heatmap)
Question 22 Choose 1
Which function should a Data Analyst use to average sales at a less-granular level of detail than is in the view?
Show answerHide answer

Correct answer: D EXCLUDE

Explanation

Explanation:

This question tests the understanding of Level of Detail (LOD) expressions, which are used to compute values at dimensions that are not present in the view. The key requirement is to calculate an average at a level less granular (i.e., more summarized) than what is currently shown in the visualization.

Correct Option:

✔️ D. EXCLUDE:
The EXCLUDE LOD expression is used specifically to remove a dimension from the view's level of detail for a calculation. If your view contains a highly granular breakdown (e.g., Sales by [Product] and [Month]), using { EXCLUDE [Month] : AVG([Sales]) } would calculate the average sales per product across all months. This creates a result that is less granular than the view, which is precisely what the question requires.

Incorrect Options

❌ A. RUNNING_AVG:
This is a table calculation function that computes a moving average along the table based on the current view's level of detail. It does not change the underlying granularity of the calculation; it only performs a computation across the rows that are already present.

❌ B. INCLUDE:
The INCLUDE LOD expression does the opposite of what is needed. It makes a calculation more granular than the view by adding a dimension that isn't currently in the visualization. This would increase, not decrease, the granularity.

❌ C. AVG:
The basic AVG function is an aggregation that respects the granularity of the view. It will simply average the data at the level of detail already present in the worksheet and will not create a less granular result on its own.

Summary:
To compute a value at a broader, more summarized level than the current view, you must use an LOD expression that removes dimensions. EXCLUDE is the correct function for this purpose, while INCLUDE adds granularity, and AVG alone respects the view's current detail.

Reference:
Based on the official Tableau documentation on Level of Detail Expressions, which defines EXCLUDE as an LOD expression that "removes dimensions from the view's level of detail."
Question 23 Choose 1
In a dataset, you have a string field named Name that contains unnecessary semicolons.
Which function should you use to remove the semicolons from the Name field?
Show answerHide answer

Correct answer: C REPLACE

Explanation

Explanation:

The task requires cleaning a string field by removing specific unwanted characters (semicolons) that may appear anywhere within the text values. The REPLACE function is specifically designed for targeted character substitution within strings, making it the ideal solution for this data cleaning scenario.

Why This is Correct

✔️ C. REPLACE:
This function systematically searches through each string value for a specified target substring (the semicolon ;) and replaces every occurrence with a replacement string (an empty string ""). By executing REPLACE([Name], ";", ""), you effectively scan the entire field and remove all semicolons while preserving all other characters in their original positions, achieving clean text without the unwanted punctuation.

Why Others Are Incorrect

❌ A. TRIM:
This function is limited to removing only leading and trailing characters (spaces by default, or other specified characters) from the start and end of a string. It has no capability to detect or remove characters like semicolons that appear anywhere within the middle of the text content, making it insufficient for this cleaning requirement.

❌ B. CONTAINS:
This is strictly a Boolean function that returns only TRUE or FALSE if a string contains a specified substring. While it can identify records with semicolons, it performs no data modification and cannot remove or alter any characters, serving only for conditional testing rather than data transformation.

❌ D. SPLIT:
This function divides a string into multiple segments based on a specified delimiter (like a semicolon) and returns the parts as separate fields or array elements. Rather than cleaning the original field, it creates additional data fragments and doesn't actually remove semicolons from the source data, complicating the data structure instead of simplifying it.

📚 Summary:
To systematically remove unwanted characters embedded within string values, the REPLACE function is specifically designed to locate and substitute targeted character sequences. TRIM only affects string endpoints, CONTAINS merely tests conditions, and SPLIT creates additional data fragments rather than cleaning the original field.

Reference:
Based on the official Tableau documentation for string functions, which specifies REPLACE for "replacing all occurrences of a substring with a new substring" within text values.

That's the last free question in Explore and Analyze Data

You've seen the free 30% (23 of 77 questions). Full access unlocks every question and full-length Salesforce-Tableau-Data-Analyst mock exams (60 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
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