You are currently viewing How to use Gantt Chart in Power BI?

How to use Gantt Chart in Power BI?

A Gantt chart is a type of bar chart that is commonly used in project management to visualize the schedule of tasks or activities over time.

A Gantt chart in Power BI is a type of visual that can be created using data from a project management or scheduling tool, such as Microsoft Project.

Gantt chart in Power BI with Project Management 1 | Power Platform Geeks

In this post, we will explore Gantt Visual in Power BI capabilities and How to use Gantt Chart in your Power BI report to provide a clear and intuitive way to visualize project schedules and track progress over time.


What’s Gantt chart in Power BI?

As we earlier mentioned, A Gantt chart is a type of bar chart that is commonly used in project management to visualize the schedule of tasks or activities over time.

A Gantt chart in Power BI displays the start and end dates of each task or activity as horizontal bars along a timeline, with each bar representing a different task. The length of the bar corresponds to the duration of the task, and the bars are color-coded to indicate the status of each task (e.g., completed, in progress, not started).

Gantt Visual in Power BI
Gantt Visual in Power BI

Users can also add dependencies between tasks, which are represented by arrows connecting the bars. This allows users to see how changes to one task may impact the overall schedule and help identify potential scheduling conflicts or delays.

How to use Gantt chart in Power BI?

In Power BI Desktop, the Gantt chart visual is NOT listed in the visualization pane by default.

Visuals in Power BI
Default Visuals in Power BI

However, you can import it from AppSource by doing the following:

Import Visual in Power BI

  1. In the Visualization pane, Click on the three-dot “” to add a new visual.
Import and Add Visual from App Source in Power BI Desktop
Import and Add Visual from App Source in Power BI Desktop
  1. In “Power BI visuals“, search for “Gantt” to explore all available visuals in your organization or from AppSource.
  2. As you can see, you will find many Gantt visuals with different features available from Microsoft and other partners sorted by default by “Popularity“.
  3. In our case, we will use the Gantt visual from Microsoft to get support and ensure stability, moreover, it’s a free visual that doesn’t need any fees.
Add Gantt Chart from App Source in Power BI Desktop | Power Platform Geeks
Add Gantt Chart from App Source in Power BI Desktop
  1. Once you click on Gantt visual as shown above, you will get features and details about the visual, click on the “Add” button to add it to your Visualization pane to use it in your report.
Add Gantt Chart in Power BI
Add Gantt Chart in Power BI
  1. Great, a new Gantt visual has been imported successfully.
the visual was successfully imported
  1. And the Gantt chart visual is now listed in the visualization pane.
Add Gantt Chart in Power BI | Power Platform Geeks
Add Gantt Chart in Power BI

Configure Gantt Chart in Power BI

To configure Gantt Chart in Power BI, you have to do the below steps:

  1. Explore Gantt Chart Fields
  2. Prepare Data,
  3. Set Gantt chart Fields,
  4. Set Gantt chart format settings.

Explore Gantt Chart Fields

The Gantt Chart in Power BI has the below fields

  • Legend (can be used for status field)
  • Task* (used for Task or Project name)
  • Parent (if there are dependencies)
  • Start Date* (Task Start Date)
  • End Date* (Task End Date)
  • Duration (can be used instead of the end date)
  • %Complete (the percent of completion for your task or project)
  • Resource (Assigned Resource)

Prepare Data for Gantt Chart Fields

After exploring the Gantt chart fields, your dataset should have the below fields to show your data in Gantt Chart in Power BI

  • Task* (used for Task or Project name)
  • Start Date* (Task Start Date)
  • End Date* (Task End Date) or Duration (can be used instead of the end date)

Other fields will be shown as tool tips or inside the taskbar such as Resource, and %Complete.

In our case, we have added most of the required fields to can present the full capabilities of the Gantt Chart in Power BI

Gantt Chart fields in Power BI

You can download the PBIX file from Github Power BI Samples

Set Gantt chart Fields

Now, the data is ready, and you just need to drag the Gantt visual to your report, to set Gantt chart Fields as below.

Add Gantt Chart in Power BI | Power Platform Geeks
Add Gantt Chart in Power BI

Just drag the fields from the “Data” Pane to the corresponding fields of the Gantt chart in the “Visualization” Pane.

Set Gantt chart format settings

The last step, to get your Gantt chart ready is to configure the format settings as you prefer.

Format Gantt Chart in Power BI
Format Gantt Chart in Power BI
Days off

By default, the days off is disabled, and you can use this section to specify the week start date and the color of Days off in your taskbar.

Days off in Gantt Chart in Power BI
Days off in Gantt Chart in Power BI

Output

Show Days off in Gantt Chart in Power BI
Legend

By default Legend is enabled and shown on the right side, however, you can configure it as you prefer based on the below settings.

Legend in Gantt Chart in Power BI

Output

Show Legend in Gantt Chart in Power BI
Category Label

By default, the category label is enabled and used to customize the Task field width, font size, and color.

category label in Gantt Chart in Power BI

Output

show category label in Gantt Chart in Power BI
Task Completion

By default, Task completion is enabled. however, you have to set the Max Completion to can highlight the actual percentage complete.

Task completion label in Gantt Chart in Power BI

Output

show Task completion label in Gantt Chart in Power BI

Once you finish the formatting part, you the final look and feel for the Gantt chart should look like the one below.

Gantt Visual in Power BI
Gantt Visual in Power BI

You can also download the PBIX file from Github Power BI Samples


Conclusion

In conclusion, a Gantt chart in Power BI is a powerful visual tool for project management and scheduling. It allows users to easily track progress, visualize task dependencies, and identify potential scheduling conflicts or delays. The chart displays task information such as start and end dates, duration, and status using horizontal bars along a timeline. Users can customize the chart with color-coded bars and add dependencies between tasks. Overall, a Gantt chart in Power BI is an essential tool for any project manager or team looking to effectively manage and track their project schedules.

Download

You can download the PBIX file with a real example from Power BI repo on GitHub

See Also

Mohamed El-Qassas

I'm Microsoft MVP, SharePoint StackExchange Moderator, Microsoft QnA Moderator, C# Corner MVP, Microsoft TechNet Wiki Judge, and Senior Technical Consultant with +12 years of experience in SharePoint, Project Server and Power Platform.