How to Create a Map in Tableau

Tableau Maps are handy to visualize the geographical data. In this section, we show how to Create a Map in Tableau with an example. For this demo, we are going to use the SQL Server Data Source.

A first approach to Create a Map in Tableau

Double-click on any Geographic filed such as City, Postcode, Country, or State will automatically create a Map in Tableau. In this example, we will double-click on the State Province Name dimension. The Tableau had added the Latitude value to Row shelf, Longitude value to Column shelf, and State province Name to Details field present in Marks Shelf.

Refer to the Connecting to SQL Server and SQL for this Tableau report.

How to Create a Map in Tableau 2

The second approach to Create a Map in Tableau

Drag and drop any Geographic field such as City, Country, Postcode, or State on the Details field will automatically create a Map in Tableau. Here, we will drag the State Province Name dimension to Details field present in Marks Shelf

Drag Geographic field like State or Postal code

Now you can see the auto-generated one.

How to Create a Map in Tableau 4

You can also add the geographical hierarchy, as well. We have added the Stateprovince hierarchy (province Name, City) to the details card.

add the geographical hierarchy

The third approach to Create a Map

Please drag and drop any Geographic filed to Column, or Row shelf and selecting the Map from Show Me window will automatically creates for you. Let’s drag the State Province Name dimension to Columns Shelf and selecting the dotted one present in Show Me card.

How to Create a Map in Tableau 6

That will automatically create the United States data points

How to Create a Map in Tableau 7

Let us add Sales Amount Measure to Colors field in the Marks Shelf. It will add color to each state based on the Sales Amount that occurred.

How to Create a Map in Tableau 8