Bird
Raised Fist0
Tableaubi_tool~10 mins

Why marks control visual encoding in Tableau - Test Your Understanding

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the mark type to a bar in Tableau.

Tableau
worksheet.markType = '[1]'
Drag options to blanks, or click blank then click option'
Abar
Bcircle
Cline
Dtext
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'circle' or 'line' which changes the chart type.
Using 'text' which only shows labels, not bars.
2fill in blank
medium

Complete the code to assign color encoding to the 'Category' field.

Tableau
worksheet.color = '[1]'
Drag options to blanks, or click blank then click option'
ASales
BCategory
CProfit
DRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Using numeric fields like 'Sales' or 'Profit' for color encoding without aggregation.
Choosing 'Region' if the question specifies 'Category'.
3fill in blank
hard

Fix the error in the code to correctly set size encoding to 'Sales'.

Tableau
worksheet.size = '[1]'
Drag options to blanks, or click blank then click option'
A'Sales'
BSales
Csales
D"Sales"
Attempts:
3 left
💡 Hint
Common Mistakes
Passing Sales without quotes causes a reference error.
Using lowercase 'sales' when the field is case-sensitive.
4fill in blank
hard

Fill both blanks to set the mark type to 'circle' and assign 'Profit' to size encoding.

Tableau
worksheet.markType = '[1]'
worksheet.size = '[2]'
Drag options to blanks, or click blank then click option'
Acircle
Bbar
CProfit
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up 'bar' and 'circle' for mark type.
Assigning 'Sales' instead of 'Profit' for size.
5fill in blank
hard

Fill all three blanks to set mark type to 'line', assign 'Region' to color, and 'Sales' to size encoding.

Tableau
worksheet.markType = '[1]'
worksheet.color = '[2]'
worksheet.size = '[3]'
Drag options to blanks, or click blank then click option'
Abar
BRegion
CSales
Dline
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bar' instead of 'line' for mark type.
Swapping 'Region' and 'Sales' in color and size.

Practice

(1/5)
1. In Tableau, why do marks control visual encoding in a chart?
easy
A. Because marks store the raw data values in the database.
B. Because marks define how data points appear using color, size, and shape.
C. Because marks create new data tables for analysis.
D. Because marks automatically generate SQL queries.

Solution

  1. Step 1: Understand the role of marks in Tableau

    Marks represent each data point visually by controlling attributes like color, size, and shape.
  2. Step 2: Differentiate marks from data storage or queries

    Marks do not store data or generate queries; they only control visual appearance.
  3. Final Answer:

    Because marks define how data points appear using color, size, and shape. -> Option B
  4. Quick Check:

    Marks control visual appearance = A [OK]
Hint: Remember: marks = visual look of data points [OK]
Common Mistakes:
  • Confusing marks with data storage
  • Thinking marks generate queries
  • Believing marks create new data tables
2. Which of the following is the correct way to change the color of marks in Tableau?
easy
A. Edit the data table to add a color column.
B. Right-click the data source and select 'Change Color'.
C. Drag a dimension or measure to the Color shelf on the Marks card.
D. Use the Filters shelf to set mark colors.

Solution

  1. Step 1: Identify how to assign color in Tableau

    Colors are assigned by dragging fields to the Color shelf on the Marks card.
  2. Step 2: Eliminate incorrect methods

    Right-clicking data source or editing tables does not change mark colors; Filters control data visibility, not color.
  3. Final Answer:

    Drag a dimension or measure to the Color shelf on the Marks card. -> Option C
  4. Quick Check:

    Color shelf controls mark color = C [OK]
Hint: Use the Color shelf on Marks card to change colors [OK]
Common Mistakes:
  • Trying to change color via data source options
  • Using Filters shelf to set colors
  • Editing data tables instead of marks
3. Given a Tableau scatter plot with Sales on Columns and Profit on Rows, what happens if you drag the Category dimension to the Shape shelf on the Marks card?
medium
A. Each data point changes shape based on its Category value.
B. All data points become the same shape regardless of Category.
C. The plot filters to show only one Category.
D. The size of marks changes based on Category.

Solution

  1. Step 1: Understand the effect of dragging a dimension to Shape shelf

    Dragging Category to Shape assigns different shapes to marks based on Category values.
  2. Step 2: Clarify what does not happen

    It does not filter data or change size; all categories remain visible with distinct shapes.
  3. Final Answer:

    Each data point changes shape based on its Category value. -> Option A
  4. Quick Check:

    Shape shelf assigns shapes by dimension = A [OK]
Hint: Shape shelf changes mark shapes by category [OK]
Common Mistakes:
  • Thinking it filters data
  • Confusing shape with size
  • Assuming all marks become identical
4. You tried to change mark colors by dragging a measure to the Size shelf instead of the Color shelf. What is the likely result?
medium
A. Marks will change size based on the measure, but color stays the same.
B. Marks will change color based on the measure automatically.
C. Tableau will show an error and not allow the change.
D. Marks will disappear from the view.

Solution

  1. Step 1: Understand the function of the Size shelf

    The Size shelf controls the size of marks, not their color.
  2. Step 2: Predict the effect of dragging a measure to Size

    Marks will resize based on the measure values, but color remains unchanged.
  3. Final Answer:

    Marks will change size based on the measure, but color stays the same. -> Option A
  4. Quick Check:

    Size shelf controls size, not color = B [OK]
Hint: Size shelf changes size, not color [OK]
Common Mistakes:
  • Expecting color to change from Size shelf
  • Thinking Tableau shows an error
  • Assuming marks disappear
5. You want to create a Tableau dashboard showing sales performance by region with marks colored by profit and sized by sales volume. Which combination of marks card controls should you use to achieve this?
hard
A. Drag Profit to Filters shelf and Sales Volume to Tooltip shelf.
B. Drag Sales Volume to Color shelf and Profit to Size shelf on the Marks card.
C. Drag Region to Color shelf and Sales Volume to Shape shelf on the Marks card.
D. Drag Profit to Color shelf and Sales Volume to Size shelf on the Marks card.

Solution

  1. Step 1: Assign color based on profit

    Drag the Profit measure to the Color shelf to color marks by profit values.
  2. Step 2: Assign size based on sales volume

    Drag Sales Volume measure to the Size shelf to size marks by sales volume.
  3. Step 3: Verify other options

    Drag Sales Volume to Color shelf and Profit to Size shelf on the Marks card reverses color and size roles; Drag Region to Color shelf and Sales Volume to Shape shelf on the Marks card uses Region for color which is not requested; Drag Profit to Filters shelf and Sales Volume to Tooltip shelf uses Filters and Tooltip incorrectly.
  4. Final Answer:

    Drag Profit to Color shelf and Sales Volume to Size shelf on the Marks card. -> Option D
  5. Quick Check:

    Color = Profit, Size = Sales Volume = D [OK]
Hint: Color for profit, size for sales volume on Marks card [OK]
Common Mistakes:
  • Swapping color and size fields
  • Using dimension instead of measure for color
  • Misusing Filters or Tooltip for visual encoding
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard