Tableau Maps are handy for visualizing geographical data. In this section, we show how to Create a Map in Tableau with an example. For this demo, we will use the SQL Server Data Source.
A first approach to Creating a Map in Tableau
Double-click on any Geographic field 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 desktop added the Latitude value to the Row shelf, the Longitude value to the Column shelf, and State province Name to the Details field in Marks Shelf.
The second approach to Creating 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. Here, we will drag the State Province Name dimension to the Details field present in Marks Shelf.
Now you can see the auto-generated one.
You can also add the geographical hierarchy, as well. For example, we have added the Stateprovince hierarchy (province Name, City) to the details card.
The third approach
Please drag and drop any Geographic filed to the Column or Row shelf, and selecting the Map from the Tableau Show Me window will automatically create for you. Let’s drag the State Province Name dimension to Columns Shelf and choose the dotted one present in the Show Me card.
That will automatically create the United States data points
Let us add Sales Amount Measure to the Colors field in the Marks Shelf. It will add color to each state in a Tableau Map based on the sales amount.