The Tableau Gantt Chart is to display the duration of an activity or an event visually. In this article, we will show you how to create a Gantt Chart with an example.
Create a Gantt Chart in Tableau Example
There are multiple ways of creating a Gantt Chart in Tableau. For this demo, we are going to use the Data Source that we created in our previous article.
To create a Tableau Gantt Chart First, Drag and Drop the Country Name, and Color fields from Dimensions Region to Rows Shelf.
Next, Drag and Drop the Order Date from Dimensions Region to Columns Shelf.
Let me change this Text Label to this. To do so, Please expand the Show Me window and select the Tableau Gantt Chart from it
Once you choose it from Show Me window, Gantt chart from start date and end date will be displayed in data pane as shown in the below screenshot.
Let me change the Order date value from Year to Week Number present in each year to see the detailed information
Now you can see that it is displaying Weeks information
Next, we have to specify the Tableau Gantt chart size. So, Drag and Drop the Order Quantity from Measures region to Size shelf present in Marks card.
Now you can see the Gantt Bar (I mean, Proper one)
Create a Gantt Chart in Tableau Example 2
Drag and drop the Country Name, Color fields from Dimensions to Rows Shelf, and Order Date in Dimensions section to Columns Shelf. Next, Let me alter the Order date value from Year to Week Number present each year to see the detailed information
It will automatically generate a Tableau Gantt Chart for you.
If this is not the case then, Please change the Marks type from Automatic to Gantt Bar mark.
Next, let me add Color Dimension to Color Card and Order Quantity to Size shelf.
Generally, we use the Count Function for Order Quantity. So let me change the Default Sum to Count. To do so, click the down arrow of SUM(Order Quantity) to open a drop-down menu. Here, Select Measure (Sum) and then Select Count
By highlighting specific block will show you the information about that block
This time we will add Table Calculation that will calculate the Order Quantity Difference. To add, please click on the Order Quantity and select the Quick Table Calculation option and then select the Difference as shown below
And you can see the result of this.
Hover Over a Tableau Gantt chart block to see the information.