Recently, we were analysing the order timeline of product shipment. We wanted to know how long it took for orders to be shipped after they were placed in different shipping modes.
As a solution for this, we used the Gantt bar chart, in which we can show the duration of hours between the order and the shipping for selected orders.
In this blog, I will explain what a Gantt chart is in Tableau and how we can use it in scenarios such as displaying a timeline of each order’s shipping duration on the chart.
What is a Gantt Chart in Tableau?
In Tableau, a Gantt chart is used to represent the duration of activities or tasks over a timeline. The duration can be between hours, days, weeks, months, and years.
In the Gantt chart, each task is represented by a horizontal bar, where the position of the bar shows when the task starts, and the length of the bar shows how long it lasts.
Create a Gantt Chart in Tableau
In Tableau, there are two ways we can create a Gantt chart: one is manually by selecting dimensions and creating a calculated field. The other method is using the built-in Gantt bar from the list in the Show Me tab.
Create a Gantt Chart Manually in Tableau
In this example, I will use the Superstore data to show the average time duration to ship the order in each shipping mode.
Connect the Tableau desktop with Superstore data and follow the steps below.
- Drag the Ship mode to the Rows, and Order Date to the Columns.

- Click on the Order date and select Measure > Minimum.

- Here, the Order date and shipping date are in date format. To calculate the hours between these dates, we need to create a calculation field.
Click on the Analysis tab and select a calculative field. Enter the label for the field and enter the formula below.
DATEDIFF('hour',[Order Date],[Ship Date])
- In the Marks section, change the format to Gantt and drag the calculative field to the Size card in the Marks section.

- In the time duration, we have to show the average of hours for that click on the calculative field in the Size and select Measure Sum > Average.

Check out: Waterfall Chart in Tableau
- To show the average of hours on the bars, drag the calculative field to the Label card in the Marks section and set its Measure to Average.

Now we can see the average duration of hours it takes to ship the order in different shipping modes.

This is how we can use the Gantt bar chart in Tableau to display the duration between two time fields.
Create a Gantt Chart Using Built-in Charts in Tableau
In Tableau, we also have a built-in option to create a Gantt Chart. Using this method, we only need to select the Dimension and Measures and click the Gantt Chart option.
It will auto-place the fields and display the data in the Gantt chart format.
In this example, we will create a Gantt bar chart to track how many days each order took to ship, showing the duration between the Order date and shipping date.
- Create a calculated field to calculate the days between the shipping date and the order date. Click on the Analysis tab and select Create Calculative Field.
Enter the below formula and click OK.
DATEDIFF('day', [Order Date], [Ship Date])
Check out: Divergent Stacked Bar Chart in Tableau
- Now, drag the Order Date to the Columns and Order ID to the Rows.

- The Order ID contains a large number of records. When we add it to columns, it shows the warning. In the warning window, click Filter and then add.

- In this, I have filtered out the order records of the year 2025. For this, click on the Wildcard tab and enter the value US-2025 ( initial of order ID), then select Contains and click OK to apply the filter.

- Now, we will have the filtered records for the year 2025. Here, we can adjust the timeline range using the slider on the left side.

- By default, the Order Date will be in the Year format, but here we need the data in days. For that, click on the Order date and select the option Exact date.

Check out: Stacked Bar Chart in Tableau
- Drag the calculated field Shipping Time to the Size card, and to show the duration in days, drag the calculated field to the Label card.

- After this, click on the Show Me tab and select the Gantt chart.
Now, you will see the number of days it took from the order date to ship the specific product.

This way, we can use the built-in Gantt chart from the Show Me tab to display the data metrics in a Gantt chart.
By following the above two methods, we can effectively use Gantt charts in Tableau to visualize the time duration between events such as order placement and shipment.
Creating a Gantt chart for scenarios like the example above helps to analyze delivery delays, improve the shipment process, and provide better customer service.
You may like to read:
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.