In our company, I was working on a project tracking dashboard, and I got a requirement to display the timelines of different tasks. The sales team wanted to see when each task starts and ends so that they can track their progress.
For such data visualizations in Tableau, it is better to use the Tableau Gannt chart. It helps visualize tasks with their start and end dates along a timeline. By plotting tasks as bars that extend from their start dates to their end dates, we can see the project schedule and overall progress in a single chart.
In this Tableau tutorial, I will explain how to create a Tableau Gantt chart with start date and end date to view the duration of tasks.
Create a Tableau Gantt Chart With Start and End Date
To create a Tableau Gantt bar chart with start and end dates, I will use two datasets for different examples. In the first data set, we have the task name, start date, and end date. In the second example, we will use the Tableau superstore dataset to show the start and end dates in a Gantt chart.
Gantt Chart With Custom Task Data to Show Start Date & End Date)
In this dataset, we have three header columns: task, start date, and end date, as shown in the image below.

You can also use the same sample data to create a Gantt chart with start and end dates. After creating the XLSX file, connect it to Tableau and follow the steps below to create the Gantt chart.
- First, create a calculation field to get the duration of days between the start time and end time. Enter the calculated field label as “duration” and use the formula below.
DATEDIFF('day', [Start Date], [End Date])- Now, drag Task to Rows, and Start Date to Columns.

- By default, the start date field will display the date in the Year format. Click on the Start date in the Columns and select Exact date.

- In the Marks section, select the change the type from Automatic to Gantt chart.

- To show the duration of days between start and end on the bars, drag the Duration to the Size card in the Marks section.

- To show the dates (start date and end date) on both sides of the bar, we will use the dual-axis chart. To do this, duplicate the start date in the Columns, then click on the duplicate date and select ‘Dual Axis’.

- In the first axis of start date, drag the Start date field to the Label. For alignment, select Label -> Alignment -> Left.

- To display the end date on the other end, drag the end date to the Label card of the second axis, and then select Label -> Alignment -> Right for alignment.

- For better visualization, we can also add a task to the Color card in the All Marks section.

With this, we can see the start date and end date at the ends of bars in the Gantt chart. As we hover on the bars, it will display the task name and duration along with the start date and end date.
Gantt Chart With Superstore Data to Show Order Date & Ship Date
In this example, we will use the Tableau Superstore dataset. In this, we will take the Order date and the ship date as the start and end dates. The Gantt chart will show the order and ship date at the ends of the bars.
Connect the Tableau with the Superstore dataset and follow the steps below to create a Gantt chart.
- Drag the order ID to the Rows. With this, we will get the orders for which we want to track the order date and ship date. To filter records, click Order ID, then select Edit Filter, select the desired records, and click OK.

- Now, add the Order date to the columns, and by default, it will be in year format. Click on the Order date in columns and change the format to Exact date.

- After this, change the chart type to Gantt in the Marks section.
- To show the duration of days between the start date and the end date, create a formula field “Duration” using the formula below.
DATEDIFF('day', [Order Date], [Ship Date])- Drag the calculated field to the Size card. This will show the length of bars according to the duration of days.

- To display both start and end dates, we need to create a dual-axis chart. For this, duplicate the order date in the Columns and select Dual Axis.
- Drag the Order date to the Label card of the first axis and change the format to Exact date. Then, click on “Label” and select “alignment” as “left“.

- Now, drag the Ship date to the Label card of the second axis. Then, click on “Label” and select “alignment” as “right“.

Now, we can see the Order date on the left and the Ship date on the right side of each bar in the Gantt chart. As we hover over the bar, we can also view the order ID and duration, along with the start and end dates.
Conclusion
In this Tableau tutorial, we have learned how to create a Gantt chart in Tableau using both start and end dates. For this Gantt chart view, we have provided two examples: one with a simple task dataset and another using the Superstore data, which includes order and ship dates.
We also learned how to calculate task duration, use the dual-axis, and display start and end dates on either side of the bars. With this Gantt chart, you can track timelines and visualize overall project progress.
You may also like to read:
- Tableau Combination Chart
- Create Slope Chart in Tableau
- Diverging Bar Chart in Tableau
- Control Chart in Tableau
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.