Bird
Raised Fist0
Tableaubi_tool~10 mins

Filled maps (choropleth) in Tableau - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a filled map by dragging the correct mark type.

Tableau
Drag the '[1]' mark type to the Marks card to create a filled map.
Drag options to blanks, or click blank then click option'
ACircle
BShape
CMap
DFilled Map
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'Circle' or 'Shape' which create point maps, not filled maps.
Selecting 'Map' which is not a mark type option.
2fill in blank
medium

Complete the step to add color to the filled map by dragging the correct field to Color.

Tableau
Drag the '[1]' field to the Color shelf on the Marks card to color the map by data.
Drag options to blanks, or click blank then click option'
ALongitude
BLatitude
CSales
DState
Attempts:
3 left
💡 Hint
Common Mistakes
Dragging geographic fields like Latitude or Longitude to Color, which won't color by data.
Using dimension fields like State which color by category, not intensity.
3fill in blank
hard

Fix the error in the calculation to show percentage of total sales by region.

Tableau
Percentage Sales = SUM([Sales]) / [1]
Drag options to blanks, or click blank then click option'
ATOTAL(SUM([Sales]))
BSUM([Region])
CAVG([Sales])
DCOUNT([Sales])
Attempts:
3 left
💡 Hint
Common Mistakes
Using SUM([Region]) which is invalid because Region is a dimension.
Using AVG or COUNT which do not give total sales.
4fill in blank
hard

Fill both blanks to create a calculated field that shows sales difference from average sales.

Tableau
Sales Difference = (SUM([Sales]) [1] AVG([Sales])) [2] AVG([Sales])
Drag options to blanks, or click blank then click option'
A-
B+
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition or multiplication instead of subtraction and division.
Mixing up the order of operations.
5fill in blank
hard

Fill all three blanks to create a calculated field that flags regions with sales above average.

Tableau
IF SUM([Sales]) [1] AVG([Sales]) THEN '[2]' ELSE '[3]' END
Drag options to blanks, or click blank then click option'
A>
BAbove Average
CBelow Average
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' for the comparison.
Swapping the labels for true and false cases.

Practice

(1/5)
1. What is the main purpose of a filled map (choropleth) in Tableau?
easy
A. To color geographic areas based on data values
B. To display detailed street-level maps
C. To show individual data points as dots
D. To create 3D maps with elevation

Solution

  1. Step 1: Understand filled map concept

    A filled map colors entire geographic areas (like states or countries) based on data values.
  2. Step 2: Compare with other map types

    Unlike dot maps or 3D maps, filled maps focus on coloring regions, not points or elevation.
  3. Final Answer:

    To color geographic areas based on data values -> Option A
  4. Quick Check:

    Filled maps = color areas by data [OK]
Hint: Remember: filled maps color regions, not points or lines [OK]
Common Mistakes:
  • Confusing filled maps with point maps
  • Thinking filled maps show street details
  • Assuming filled maps create 3D effects
2. Which of the following is the correct way to create a filled map in Tableau?
easy
A. Drag a geographic field to Filters and a measure to Size
B. Drag a measure to Rows and a geographic field to Tooltip
C. Drag a geographic field to Rows and a measure to Color on the Marks card
D. Drag a measure to Columns and a geographic field to Detail

Solution

  1. Step 1: Identify how to build filled maps

    In Tableau, dragging a geographic field (like State) to Rows or Columns creates the map base.
  2. Step 2: Add color by measure

    Placing a measure on Color in the Marks card colors the geographic areas based on data values.
  3. Final Answer:

    Drag a geographic field to Rows and a measure to Color on the Marks card -> Option C
  4. Quick Check:

    Geo field + Color measure = filled map [OK]
Hint: Put geography on Rows/Columns and measure on Color [OK]
Common Mistakes:
  • Putting geographic fields in Tooltip instead of Rows/Columns
  • Using Size instead of Color for data values
  • Not dragging any measure to Color
3. Given a filled map showing sales by state, what will happen if you drag the Sales measure to the Color shelf and set the aggregation to SUM?
medium
A. Each state will be colored based on total sales in that state
B. The map will show individual sales transactions as dots
C. The map will display sales as labels on each state
D. The map will become blank because SUM is invalid here

Solution

  1. Step 1: Understand SUM aggregation on measure

    SUM aggregates all sales values per state, giving total sales per state.
  2. Step 2: Effect on filled map coloring

    Coloring by SUM(Sales) colors each state area based on its total sales amount.
  3. Final Answer:

    Each state will be colored based on total sales in that state -> Option A
  4. Quick Check:

    SUM(Sales) colors states by total sales [OK]
Hint: SUM on measure colors areas by total values [OK]
Common Mistakes:
  • Thinking dots appear instead of colored areas
  • Expecting labels instead of colors
  • Assuming SUM aggregation causes errors
4. You created a filled map but the colors do not change when you drag your measure to Color. What is the most likely reason?
medium
A. The measure is not numeric
B. The map type is set to Symbol Map instead of Filled Map
C. You forgot to add the geographic field to Detail or Rows/Columns
D. The geographic field is not recognized correctly

Solution

  1. Step 1: Check map type setting

    If the map type is Symbol Map, colors apply to points, not areas, so filled colors won't appear.
  2. Step 2: Confirm filled map selection

    Switching to Filled Map enables coloring of geographic areas by measure values.
  3. Final Answer:

    The map type is set to Symbol Map instead of Filled Map -> Option B
  4. Quick Check:

    Symbol Map ≠ filled colors; choose Filled Map [OK]
Hint: Check map type: must be Filled Map for area colors [OK]
Common Mistakes:
  • Assuming measure type causes no color change
  • Not verifying map type in Marks card
  • Ignoring geographic field placement
5. You want to create a filled map showing population density by US state, but your data only has total population and land area separately. How should you prepare your data in Tableau to color states by population density?
hard
A. Use total population as Color and filter states by land area
B. Drag total population to Color and land area to Size
C. Create a parameter for land area and use it to filter states
D. Create a calculated field dividing total population by land area, then drag it to Color

Solution

  1. Step 1: Calculate population density

    Create a calculated field: Population Density = Total Population / Land Area.
  2. Step 2: Use calculated field for coloring

    Drag this new field to Color on the Marks card to color states by density.
  3. Final Answer:

    Create a calculated field dividing total population by land area, then drag it to Color -> Option D
  4. Quick Check:

    Calculated field = density, use on Color [OK]
Hint: Calculate density first, then color map by it [OK]
Common Mistakes:
  • Using raw population without area for color
  • Using Size for land area instead of calculation
  • Filtering states instead of calculating density