Salesforce Certified Tableau Desktop Foundations free question 4 / 10 · Domain 2: Exploring and Analyzing Data
An analyst wants a bar chart of Sales by Sub-Category with horizontal bars. Which arrangement of the fields on the shelves does this?
- Sub-Category on Color and Sales on Size on the Marks card
- Sub-Category on the Rows shelf and Sales on the Columns shelf
- Sub-Category on the Columns shelf and Sales on the Rows shelf
- Sales on the Filters shelf and Sub-Category on the Pages shelf
Show the answer and explanation
Answer: B
Why this is correct
Bar charts compare data across categories. You create one by placing a dimension on the Rows shelf and a measure on the Columns shelf, or the other way round. The orientation follows the axis: the marks are vertical because the axis is vertical. A measure on Columns gives a horizontal axis, so the bars run sideways, and the Sub-Category headers sit on the Rows shelf at the left. Tableau selects the Bar mark type when the view matches one of these two arrangements.
Why the other options are wrong
"Sub-Category on the Columns shelf and Sales on the Rows shelf" … The bars are vertical when the measure axis is vertical, and the axis of a measure on Rows is vertical. This arrangement gives vertical bars.
"Sales on the Filters shelf and Sub-Category on the Pages shelf" … Filters and Pages do not draw bars. A bar chart needs a dimension on one shelf and a measure on the other.
"Sub-Category on Color and Sales on Size on the Marks card" … Color and Size encode marks. A bar chart is made with a dimension on one shelf and a measure on the other.
Key points
Measure on Rows gives vertical bars, measure on Columns gives horizontal bars. The dimension on the other shelf provides the category headers.