Sankey Chart in Tableau

While working as a data analyst for a retail office supply company, I was analyzing how profit was generated from each region for different categories. For this, I have to create a data visualization through which we can understand which categories are the most profitable within each region and figure out if any area is generating losses for specific categories.

For this data visualization, I created a Sankey chart, displaying the source as region and the target as Product Category. In this, the width of the flow between each Region and Category represents the total profit generated.

In this Tableau tutorial, we will explain the Sankey chart in Tableau and the steps for creating one.

What is a Sankey Chart in Tableau?

In Tableau, a Sankey chart displays the flow of data between multiple categories, showing how values move from one stage to another. It’s useful for representing “before and after” states or relationships between different categories. The width of the flow lines in the chart represents the magnitude of the flow, with wider lines representing larger quantities.

Check out: Tableau Gauge Chart

Create a Sankey Chart in Tableau

In this Tableau Sankey chart, we are using the Superstore data of Tableau. After setting up the connection with the data source, follow the steps below.

  1. In Tableau, to create a Sankey chart, we have an extension in the Marks section. To use this, you need to download this extension first.

Click on the Marks section dropdown and click the Add Extension button.

Add Sankey Chart in Tableau
  1. In the extension, you will see the Sankey chart at the top of the list. Here, click on the Download icon to get the Sankey chart in your Tableau.
Create a Sankey Chart in Tableau
  1. In the Marks section, select the chart type as Sankey.
Tableau Sankey bar Chart
  1. Unlike other charts in Tableau, we don’t need to add any columns or rows in the Sankey chart.

To visualize the values, we will add the Category and Region fields to the Level card in the Sankey chart mark type.

Create a Custom Sankey Chart in Tableau

As we can see in the chart above, the data flow between two dimensions displays the supply of specific product categories in each region.

Check out: Tableau Dual Axis Chart

  1. To show the profit generated from various product categories in each region, add the Profit to the Link card in the Sankey marks section.

Now, we can see a line connecting Region to Category, also displaying the sales profit generated for the product category in a specific region.

For example, when I hover the data line connecting the East region with the product category furniture, it will show the generated sales profit.

Here, the thicker line shows the most, and the thinner lines show the least profit.