---
schema_version: "1"
id: 322ae745e516c9646b9c4c2a8512eecef1ad9a5119c193af9c4a5212ce466a59
title: Create Maps that Show a Path Over Time in Tableau
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/pro/desktop/maps_howto_flow.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/en-gb/maps_howto_flow.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 6575023df3028a9cb5a93bd4b89f6adca7e2c5333ae6843b980b0c584865cdf0
description: Create flow (path) maps that show movement over time, such as a storm path.
---
[Skip to main content](#main-content)

# Create Maps that Show a Path Over Time in Tableau

You can create maps in Tableau Desktop that show a path over time, as in to the example below. These types of maps are called flow maps, or path maps.

Flow maps are great for when you want to show where something went over time, such as the path of a storm.

This topic illustrates how to create a flow map using an example. Follow the example below to learn how to set up your data source, and build the view for a flow map.

![flow map Tableau](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps1.png)

## Your data source

**Note**: Starting in Tableau version 10.4, you can connect to spatial files that contain linear geometries. If you have spatial data with linear geometries, you may not need to perform the steps below. To learn how to create a map using spatial data with linear geometries, see [Create Tableau Maps from Spatial Files](https://help.tableau.com/v0.0/pro/desktop/en-gb/maps_shapefiles.htm)

To create a flow map, your data source should include the following types of information:

- Latitude and longitude coordinates for each data point in a path
- A column to define the order to connect the points (this can be date information, or manually applied numbers, such as 1, 2, 3, 4, 5)
- A unique ID for each path
- Enough data points to shape each path into a line

For example, the following table is a snippet of the Storm data source, which is included in the [Create Flow Maps in Tableau Example Workbook](https://public.tableau.com/profile/tableau.docs.team#!/vizhome/CreateFlowMapsinTableauExampleWorkbook/StormMapSheet) on Tableau Public. It contains data on the paths of storms, and has columns for **Latitude** and **Longitude**, **Date**, and **Storm Name**. In this example, the Date column is used as an order to connect the data points, and the Storm Name column is used as a unique ID for each path.

Though only a few data points for the storm PAKHAR are shown in this example, the actual data source has enough entries to provide a detailed path for every storm recorded in 2012.

Note that the table also includes two optional columns: Basin and Wind Speed. These fields can be used to quickly filter and add visual detail to the view. You'll see how in the section, [Build the map view](#Build).

<table style="width: 100%;mc-table-style: url('Resources/TableStyles/Basic-Border-Light.css');" class="TableStyle-Basic-Border" cellspacing="0"><colgroup><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"></colgroup><tbody><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>Storm Name</b></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>Date</b></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>Latitude</b></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>Longitude</b></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>Basin</b></td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><b>Wind Speed (kt)</b></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3/26/12 12:00:00</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">9.5000</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">115.700</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">0</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3/26/12 06:00:00</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">9.5000</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">115.400</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">0</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3/26/12 12:00:00</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">9.5000</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">115.100</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">0</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3/26/12 18:00:00</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">9.4000</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">114.800</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">0</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3/27/12 12:00:00</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">9.4000</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">114.500</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">0</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">PAKHAR</td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">3/27/12 06:00:00</td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">9.4000</td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">114.300</td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">West Pacific</td><td class="TableStyle-Basic-Border-BodyA-Column1-Body1">35</td></tr></tbody></table>

## Basic map building blocks:

<table style="margin-left: 0;margin-right: auto; background-color: #ebebeb"><colgroup><col><col></colgroup><tbody><tr><td><b>Columns shelf</b>:</td><td><i>Longitude</i> (continuous measure, longitude geographic role assigned)</td></tr><tr><td><b>Rows shelf</b>:</td><td><i>Latitude</i> (continuous measure, latitude geographic role assigned)</td></tr><tr><td><b>Detail</b>:</td><td><i>Dimension</i> (unique ID for each path)</td></tr><tr><td><b>Path</b>:</td><td><i>Date field</i> or <i>order field</i> to define order to connect the data points</td></tr><tr><td><b>Mark type</b>:</td><td><i>Line</i></td></tr></tbody></table>

## Build the map view

To follow along with this example, download the [Create Flow Maps in Tableau Example Workbook](https://public.tableau.com/profile/tableau.docs.team#!/vizhome/CreateFlowMapsinTableauExampleWorkbook/StormMapSheet) from Tableau Public, and open it in Tableau Desktop.

1. Open a new worksheet.
2. In the **Data** pane, under Measures, double-click **Latitude** and **Longitude**.
    
    The Latitude and Longitude fields are added to the Columns and Rows shelves, and a map view with one data point is created.
3. From Dimensions, drag **Storm Name** to Detail on the Marks card.
    
    The map view updates with a data point for every storm in the data source. In the next steps, you will narrow the storms down to only those that occurred in the western Pacific Ocean in 2012.
4. From Dimensions, drag **Date** to the Filters shelf.
5. In the Filter Field \[Date\] dialog box that appears, select Years, and then click Next.
6. In the Filter \[Year of Date\] dialog box that appears, click 2012, and then click OK.
    
    The map view updates to show only the storms that occurred in 2012.
7. From Dimensions, drag Basin to the Filters shelf.
8. In the Filter Field \[Basin\] dialog box that appears, select **West Pacific**, and then click OK.
    
    The map view updates to show only storms that occurred in the western part of the Pacific Ocean.
    
    ![A map with blue circles distributed across the western Pacific Ocean representing storm locations.](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps2.png)
9. On the Marks card, click the mark-type drop-down and select Line.
    
    ![dropdown menu in the Marks card expanded to show various chart type options, with line chart selected.](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps3.png)
    
    A Path button appears on the Marks card, and the map view updates with a line connecting every data point.
    
    ![A map of storm paths across East Asia in 2012.](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps4.png)
10. From Dimensions, drag **Date** to Path on the Marks card.
    
    The line disappears. This is because the Date field is set to discrete years. Since the date field in the Storm data source includes day, month, year, and time, this is not the correct level of detail for this field.
11. On the Marks card, right-click the **YEAR(Date)** field and select Exact Date.
    
    Now the map view updates with a data point for every recorded date and time. You can now see the individual paths of each storm.
    
    ![A map of storm paths across East Asia in 2012.](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps5.png)
12. From Measures, drag **Wind Speed** to Size on the Marks card.
    
    The map view updates to show the varying wind speeds along each storm path.
13. On the Marks card, right-click the **SUM(Wind Speed)** field and select Measure \> Average.
14. From Dimensions, drag **Storm Name** to Colour on the Marks card.
    
    Each storm path is assigned a colour and the flow map is now complete.

You can now see the paths for every recorded storm that occurred in the West Pacific basin in 2012. You can also see at what point in their path their wind speeds were strongest.

![A map of storm paths across East Asia in 2012.](/tableau/next/en-gb/pro/desktop/en-gb/Img/flow_maps6.png)

## See also:

[Mapping Concepts in Tableau](https://help.tableau.com/v0.0/pro/desktop/en-gb/maps_build.htm)

[Create Maps that Show Paths Between Origins and Destinations in Tableau](https://help.tableau.com/v0.0/pro/desktop/en-gb/maps_howto_origin_destination.htm)

Tableau Community post: [Origin-Destination Maps (or Flow Maps)](https://community.tableau.com/people/sarah.battersby.0/blog/2018/01/12/origin-destination-maps-or-flow-maps)