Skip to main content
HomeTutorialsPower BI

Power BI Gantt Chart: A Complete How-To

Learn how to create, customize, and interpret Gantt charts in Power BI to track project timelines and tasks. Follow our detailed instructions and look at real examples.
Sep 30, 2024  · 9 min read

At times, projects can become large, making managing them complex. In Power BI, one helpful way to track and manage many tasks at the same time is the Power BI Gantt chart. In addition to aligning team members, these charts have been known to be good motivational tools by showing progress and milestones.

In this article, I will show you how to build a Gantt chart using custom visuals in Power BI. You will also learn how to customize and interpret a Power BI Gantt chart. If you are new to Power BI, check out our Power BI Fundamentals skill track to learn everything you need to know about one of the most (if not the most) popular business intelligence tools available.

What is a Gantt Chart in Power BI?

A Gantt chart is a bar chart where each project task is represented by a horizontal bar. The start and end of this bar represent the task timeline. It also shows the relationship between bars and prerequisites before starting a particular task. A Gantt chart is made up of the following components:

  • Tasks: These are activities regarding a project that team members are expected to complete within a specific timeline.
  • Timelines: This is the timeframe assigned to a particular task and can also define the overall project timeline. 
  • Dependencies: These are the prerequisite tasks to be completed before starting a new one.
  • Progress: This is a measure of the time spent on a task.

Now, let’s go into how to create your own Power BI Gantt chart, which should make all these concepts clear. 

How to Create a Gantt Chart in Power BI

The first step is to make sure you have installed Power BI Desktop. Also, download the project data we will use in this article.

Importing the Gantt chart custom visual

A Gantt chart is not among Power BI built-in visuals, which means it’s a custom visual that you need to download. You do this by going to the Visualizations pane, on the ellipsis(...), and clicking on Get more visuals.

Note: to download custom visuals, you need a Power BI license. If you don’t have one, open a Microsoft Fabric account for a free Power BI license. We also have a blog post, What is Microsoft Fabric? If you want to do some research first. 

Download a Power BI Gantt chart

Downloading a Power BI Gantt chart. Image by Author

After the window opens, go to the search bar and type “Gantt” to get a list of various Gantt chart visuals, and select the one by Microsoft Corporation, then click the Add button.

The Power BI Gantt chart window

Adding the Gantt chart to Power BI. Image by Author.



Setting up your data for a Gantt chart

The next important step to creating the Gantt chart visual is to structure your dataset based on the Gantt chart components discussed earlier. You need to ensure that your dataset has the necessary columns, such as:

  • Task name
  • Start date
  • Duration
  • Dependencies

Go to the Get Data icon under the Home tab on Power BI Desktop and click Text/CSV to import the project data. 

Power BI Gantt chart project dataset overview

Seeing the project dataset preview. Image by Author.


If your dataset does not have the necessary chart columns, you can click the Transform Data button to apply the necessary transformations. On the preview window, click Load to load the data into Power BI.

Creating the Gantt chart

Click on the Gantt chart icon on the Visualizations pane to apply an empty visual to the Power BI canvas. Select the empty visual and drag each field of your dataset to its respective Gantt chart field.

Note that you have to move the Dependencies field to the Power BI Gantt chart visual Resource field. Also, you can’t add Duration and End Date to a Gantt chart visual simultaneously. Instead, you choose Start Date with either Duration or End Date.

Power BI Gantt chart visual fields

Power BI Gantt chart visual fields. Image by Author.

Become a Power BI Data Analyst

Master the world's most popular business intelligence tool.

Start Learning for Free

Customizing a Gantt Chart in Power BI

Power BI gives you options to customize your Gantt chart visual, from changing the colors to axis labels and adding milestones to the Gantt chart visual. 

Changing colors and labels

You can change the colors of the bars to any color of your choice. To do that, select the Power BI Gantt chart visual on the canvas and go to the Format visual tab on the Visualizations pane. Then, select your preferred color under the Task Settings dropdown.

Changing the task column color in our Power BI Gantt chart

Changing the task column color in our Power BI Gantt chart. Image by Author.

Below the Task Settings dropdown is the Data Labels dropdown, where you can format the labels of the Gantt chat visual.

Format the data labels in our Power BI Gantt chart

Formatting the Power BI Gantt chart data labels. Image by Author.

Adding milestones

Milestones are used to mark significant events during a project lifecycle. You can add milestones in a Power BI Gantt chart visual by dragging any dataset field representing project milestones into the Gantt chart visual.

Power BI Gantt chart with milestonesAdding milestones to the Power BI Gantt chart. Image by Author.

Interpreting Gantt Charts in Power BI

Let's now move on to how to interpret a Gantt chart visual so you can make the most out of it in your work.

Visualizing task progress

A taskbar represents each project task timeline, and a dark color on a taskbar measures a task completion rate. Tasks already completed will have completely dark colors, while those still in progress will have shades of dark and light. 

The x-axis represents the project tasks, while the y-axis is the project timeline. The Power BI tooltip lets you get detailed information about a task by hovering over the taskbar. This provides detailed information about a project task, such as the task name, start date, end date, progress, and the resources needed.

Power BI Gantt chart and tooltip task progress

Use the tooltip to visualize task progress. Image by Author.

Identifying critical paths and dependencies

If you have added dependencies to your Gantt chart visual in Power BI, you should see the dependency next to each taskbar. The dependency is what you need to finish before moving on to the next task.

Power BI Gantt chart with dependencies included

Seeing dependencies on our Power BI Gantt chart. Image by Author.

Power BI Gantt Chart Troubleshooting

While trying to create a Gantt chart in Power BI, you may face some challenges due to not having the necessary Gantt chart columns or missing values in your dataset, or the Power BI Gantt visual not displaying correctly. 

Missing data fields

Before importing a dataset into Power BI, you can see a preview and see if the columns in the dataset are the necessary Gantt chart columns. You can click on the Transform button of the Power Query to open the datasets and see if there are any missing values or errors in the column formatting. These issues, if they exist, you can fix directly in the Power Query editor.

Visual not displaying properly

If you have created a Power BI Gantt Chart visual and you notice that after filling in all the fields, the visual is not displaying, the first thing you need to do is check if you have selected the proper fields from the dataset columns into the Gantt chart visual fields. 

If you notice no problem with the fields, check your date columns and ensure they are in the proper format. Also, check the columns containing numeric values and ensure they are formatted as numbers, not strings. If you are using a dataset from a database, ensure your data model is specified correctly so that it can render. A final action is to reset and rebuild the visual. Starting afresh can help you identify where the problem is.

Conclusion

In this article, you have learned how to create and customize a Gantt Chart in Power BI and the steps to take when having issues creating one. The Format visual tab under the visualization pane offers many more customization options, which you can explore to make sure you have a beautiful Gantt chart that effectively explains and tracks your entire project, whatever it is.

To learn more about Power BI, check out the following DataCamp courses, skill tracks, and career tracks:

Also, to enhance your data visualization and storytelling skills, check out the following blogs, tutorials, and code-alongs:

Master Power BI From Scratch

No experience required—learn to work with data via Power BI.

Photo of Adejumo Ridwan Suleiman
Author
Adejumo Ridwan Suleiman
LinkedIn

Experienced data science instructor and Biostatistician with expertise in Python, R, and machine learning.

Power BI Gantt Chart FAQs

What is a Gantt chart?

A Gantt chart is a type of bar chart that represents the timeline for tasks in a project.

What are the main components of a Gantt chart?

A Gantt chart comprises four main components: tasks, timeline, dependencies, and progress.

How can I create a Gantt chart visual in Power BI? I can’t find it among the Power BI visuals.

The Gantt chart visual in Power BI is not among the built-in visuals in Power BI. It is available as a custom visual, so you need to download the Power BI Gantt chart visual to use it.

How are Gantt charts helpful?

Gantt charts help project managers track a project's progress regardless of the number of tasks or members. They also foster collaboration between team members by ensuring everyone knows their role.

How do I set up the data correctly for a Power BI Gantt chart?

Ensure that your data has the necessary Gantt chart columns, no missing values, and your date columns are appropriately formatted.

Topics

Learn PowerBI with DataCamp

Course

Introduction to Power BI

4 hr
416.1K
Master the Power BI basics and learn to use the data visualization software to build impactful reports.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

tutorial

Power BI Tutorial for Beginners

Learn the basics of Power BI and how to create a basic report with this step-by-step tutorial.
DataCamp Team's photo

DataCamp Team

16 min

tutorial

Power BI Matrix: A Comprehensive Guide

Enhance your data analysis skills by learning how to customize a Power BI matrix.
Joleen Bothma's photo

Joleen Bothma

10 min

tutorial

Power BI Dashboard Tutorial

Learn how to create a dashboard in Power BI in this step-by-step tutorial, from loading your dataset to sharing your completed dashboard with your team.
Kafaru Simileoluwa's photo

Kafaru Simileoluwa

14 min

tutorial

Power BI Hierarchies: A Comprehensive Guide

Learn how to create, edit, delete, and implement hierarchies in Power BI.
Joleen Bothma's photo

Joleen Bothma

11 min

tutorial

How to Create a Waterfall Chart in Tableau

Enhance your data analysis skills and learn how to build and customize a waterfall chart in Tableau
Eugenia Anello's photo

Eugenia Anello

8 min

code-along

Getting Started with Data Visualization in Power BI

In this training webinar, you'll learn how to create a variety of plots in Power BI, then customize them and arrange them into a dashboard.
Nick Switzer's photo

Nick Switzer

See MoreSee More