0
0
Tableaubi_tool~5 mins

Geographic roles assignment in Tableau - Step-by-Step Guide

Choose your learning style9 modes available
Introduction
Assigning geographic roles in Tableau helps the software understand your location data. This lets Tableau create maps automatically and show your data in the right places in the world.
When you have a list of city names and want to see them on a map.
When your data has country codes but Tableau does not recognize them as locations.
When you want to create a map but Tableau treats your location data as text.
When you need to fix incorrect map points caused by missing geographic roles.
When you want to add a new geographic field that Tableau does not assign automatically.
Steps
Step 1: Open your Tableau workbook
- Data pane
You see all your data fields listed on the left side
Step 2: Right-click the field that contains location data
- Data pane
A menu appears with options related to the field
Step 3: Select 'Geographic Role' from the menu
- Field context menu
A list of geographic roles appears for you to choose
Step 4: Click the correct geographic role that matches your data (e.g., Country/Region, State/Province, City)
- Geographic Role submenu
The field is assigned the geographic role and Tableau recognizes it as location data
Step 5: Drag the geographic field to the Rows or Columns shelf or to the Marks card
- Worksheet view
Tableau creates a map visualization showing your data points on the map
Before vs After
Before
Field 'Location' is treated as text with no map icon; dragging it to view shows a text table
After
Field 'Location' has a globe icon indicating geographic role; dragging it to view creates a map with points at correct locations
Settings Reference
Geographic Role
📍 Right-click field in Data pane > Geographic Role
Defines how Tableau interprets the field as a geographic location for mapping
Default: None
Common Mistakes
Assigning the wrong geographic role to a field, like setting city names as country
Tableau will place data points incorrectly on the map or fail to map them
Check your data carefully and assign the geographic role that matches the data type exactly
Not assigning any geographic role to location fields
Tableau treats the data as text and cannot create maps automatically
Always assign a geographic role to any field that contains location data you want to map
Summary
Assigning geographic roles tells Tableau how to read your location data.
This enables automatic map creation with accurate points.
Always match the geographic role to your data type to avoid mapping errors.