Blog Post

Educator Developer Blog
4 MIN READ

Building a Gantt Chart using Power BI

Shadrack_Kiprotich's avatar
Shadrack_Kiprotich
Brass Contributor
Aug 30, 2022

Introduction: What is a Gantt chart?

This is a chart that is mostly used in project management visually representing projection timelines for the project and the tasks. This is a tool that clearly outlines tasks and to which teams they have been assigned to. This helps you to manage the whole project in an efficient manner by taking note of the projection timeline. You get to keep everyone on the same page from product managers, program managers, business analyst, developers etc.

The main advantage of working with a Gantt Chart is that you get to plan, schedule, and execute your projects on just one chart. The other cool thing is you can track the progress by what has been completed, what is going on and upcoming tasks.

 

Step 1: Using your excel table Gantt chart data You first need to format your excel datasheet into a table. To format as a table select the datasheet> on the home tab click on format as table. Once you have done so save the file (You can access the excel file I used for the demo here ๐Ÿ˜ƒ)

 

 

Step 2: Launch Power BI Desktop. If you already have Power BI desktop installed, open it. If not, download it from the official site. Power BI's landing page has 4 panes; Visualizations, Fields, Filters and working space where you will visualize the data.

 

 

 

 

By default, you get these visualizations, so to access more visuals you need a license to them.

 

Sign in with your office account (school or work account) to Power BI. If you donโ€™t have one donโ€™t worry about that, here is how to create a developers account  

Once we are signed in let's import our Gantt chart visual.

 

Step 3: Import Gantt Chart visual to Power BI - On the visualizations pane click on the three dots (ellipsis) and select get more visuals.

 

 

 

 Search Gantt chart, then click Add.

 

 

This success dialog box is displayed once the visual is successfully added. All good to go

But first let's discuss the properties of a Gantt chart since this will come handy for the next steps and will really help you match the properties you have on the excel sheet with the properties in Gantt.

 

  1. Legend- this displays which category the project is,
  2. Task- this basically describes the project work to be done in a specified period of time
  3. Parent- this takes a summary of the child tasks that you have in your project
  4. Start Date- this describes the starting date of the project you are working on
  5. End Date- this describes the end date of the project you are working on
  6. Duration- timeframe for working on a particular project i.e., 3 months, 6 months etc.
  7. % Completion- the amount of task that has been completed in terms of percentage
  8. Resource - This is what you use in the project. For instance, you have developer resource, program manager resource, Business analyst resource etc.
  9. Tooltips - Text boxes that are displayed when a timeline or data grids are hovered over
  10. Milestones - this refers to the important or specific pointers in your project that describe the improvements or backlogs in a project

 

These properties basically define the timelines, start date, etc. of the whole project,

 

Step 4: Lets import our data 

On the Home tab and click on get data> choose Excel as your data source. Import the excel sheet you have stored locally.

 

Select the table you had formatted to load your data into Power BI. Once you select the table you will see a preview of the data. Select load once you have ascertained the data is in the correct format. In case you would like to alter the format of the data, click Transform Data which will open the Power BI Query Editor on a separate window for you to modify your data before loading it into the Power BI project.

 

 

We are all set!

 

Step 5. Time to visualize! On the visualizations pane select Gantt chart to display a blank chart. Once you are done, we can now link our excel data to the properties of the Gantt chart. i.e., task (Excel) to match with task (Gantt), start date (Excel) and start date (Gantt) etc. This will depend on how you have named your excel columns

 

 

Step 6: All done - We have been able to build our Gantt chart using Power BI. This will enable us to track the tasks that we have against time and the team members playing the different roles on different tasks.  You can customize your chart further on other properties such as the title of the chart, background color, date type, data labels by using the tabs below the visualizations pane.

 

 

 

Step 7: Save, Publish and Share - We can now share the chart with our colleagues. Save the chart and publish to desired workspace on Power BI Service. This will enable your workmate's view and collaborate on the chart you have shared with them. 

 

 

 

Next Steps

Interested in learning more about the different types of visualizations that come with Power BI here are some resources that can help you explore: 

Interested in related content, register for the Power Platform Kenya Community today here.

 

 

 

 

 

 

 

 

 

Updated Aug 29, 2022
Version 1.0
  • Blackbeard87's avatar
    Blackbeard87
    Copper Contributor

    Hi Shadrack_Kiprotich,
    I found a solution. I created a new measure with MIN(END_DATE) and used this measure for the End Date field instead of the column from the dataset.


    Best Regards

  • Achalbarla's avatar
    Achalbarla
    Copper Contributor

    Hi Thanks for sharing the procedure it`s quite helpful, I`ve been able to create a Gantt chart, however is there a way to change left column - Task list as it seems to be fixed at 13 characters hence some of lengthy project names doesn`t fit in. Is there a way the size can be customized.

    Thanks!

  • kuriakoserenji's avatar
    kuriakoserenji
    Copper Contributor

    Suppose I have 3 columns : Start Date, Original Due Date and Actual Due Date. I want to show planned and actual project timelines ( either in the same bar or different bar ). How do I achieve this? khmokpfu CarterBarczak any solutions?

  • Blackbeard87's avatar
    Blackbeard87
    Copper Contributor

    Hello Shadrack_Kiprotich,

    many thanks for sharing your instruction. For some strange reason, I cannot drop my end date in the field provided. Nothing happens. The start date field can be used without any problems. Do you have any idea why this is happening?
    Best Regards

  • bsoms1985's avatar
    bsoms1985
    Copper Contributor

    Hi,
    I would like to add current status of project @end of the project...Like Low /Medium/High with indicators (Green,yellow,Red) (๐ŸŸข๐ŸŸก๐ŸŸ ) 

     

    Please help here to resolve issue..

  • CarterBarczak's avatar
    CarterBarczak
    Copper Contributor

    Hi, 

     

    I am trying to change the date view so it will how all of the timelines in a single view so I do not have to scroll from left to right. Does anyone know how to do this?

     

  • I don't believe this Visualization allows you to add columns (THIS WOULD BE AN EXCELLENT UPDATE) so what I did is: In my Data Set, add column by merging with the two date columns I want to display (for me it is start and finish of the activities), with a character added (Comma) between them. I then assigned this column as the Resource. It doesn't create a column but will display the "resource" on the bar.