0
0
Tableaubi_tool~10 mins

Dual-axis maps in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sample data showing cities with their latitude, longitude, sales, and profit values used for creating dual-axis maps in Tableau.

CellValue
A1City
B1Latitude
C1Longitude
D1Sales
E1Profit
A2New York
B240.7128
C2-74.006
D2100000
E220000
A3Los Angeles
B334.0522
C3-118.2437
D385000
E315000
A4Chicago
B441.8781
C4-87.6298
D460000
E412000
Formula Trace
Dual-axis map layers: Layer 1 = Map with city locations (Latitude, Longitude), Layer 2 = Circle marks sized by Sales and colored by Profit
Step 1: Plot points using Latitude and Longitude for each city
Step 2: Create first axis with map background and city points
Step 3: Create second axis with circle marks sized by Sales
Step 4: Color circles by Profit values
Step 5: Synchronize axes and overlay second axis on first
Cell Reference Map
    A          B          C          D          E
1 | City     | Latitude | Longitude | Sales    | Profit   |
2 | New York | 40.7128  | -74.0060 | 100000   | 20000    |
3 | Los Angeles | 34.0522  | -118.2437| 85000    | 15000    |
4 | Chicago  | 41.8781  | -87.6298 | 60000    | 12000    |

References:
- Latitude (B2:B4) and Longitude (C2:C4) for map points
- Sales (D2:D4) for circle sizes
- Profit (E2:E4) for circle colors
This map shows which columns are used for plotting city locations and which columns control circle size and color in the dual-axis map.
Result
    A          B          C          D          E          F
1 | City     | Latitude | Longitude | Sales    | Profit   | Map Output
2 | New York | 40.7128  | -74.0060 | 100000   | 20000    | ●●●●● (large, bright)
3 | Los Angeles | 34.0522  | -118.2437| 85000    | 15000    | ●●● (medium, medium bright)
4 | Chicago  | 41.8781  | -87.6298 | 60000    | 12000    | ●● (small, less bright)

Legend:
- Circle size ~ Sales
- Circle color brightness ~ Profit
The final dual-axis map shows city points with circles sized by sales and colored by profit, layered on the same geographic map.
Sheet Trace Quiz - 3 Questions
Test your understanding
Which columns provide the geographic location for the city points on the map?
ASales and Profit
BLatitude and Longitude
CCity and Sales
DProfit and Latitude
Key Result
Dual-axis maps overlay two map layers sharing the same geographic scale, combining location points with sized and colored marks.