Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
nerv1827
New Member

How to show hierarchical tasks in power bi by import data from MS Project online excel file

The MS Project in Power BI apps doesn't meet our requirements as we want to display only one project in the Power BI Gantt chart, showing parent tasks that can be expanded to reveal subtasks (hierarchical structure). I'm considering exporting data from MS Project Online to Excel and then importing it into Power BI and wondering how to manage the data to display the hierarchical structure in the Gantt chart visual, version 2.2.3, as shown below. Currently, we're using a SharePoint list, but it involves too much manual work. Thanks!

nerv1827_0-1714081083535.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nerv1827 ,

 

The steps to connect to SharePoint List are as follows:

 

1.Open Power BI Desktop and in the Home tab of the ribbon, select Get data > More.

 

2.Select Online Services, and then select SharePoint Online List.

 

Select Connect.

 

3.Find the address (also known as a URL) of your SharePoint Online site that contains your list. From a page in SharePoint Online, you can usually get the site address by selecting Home in the navigation pane, or the icon for the site at the top, then copying the address from your web browser's address bar.

vhuijieymsft_0-1714099915777.png

 

4.In Power BI Desktop, paste the address into the Site URL field of the SharePoint Online Lists dialog box, and then select OK.

vhuijieymsft_1-1714099915782.png

 

Select Connect.

 

5.On the left side of the Navigator dialog box, select the checkbox beside the SharePoint list you want to connect to.

 

Select Load. Power BI loads your list data into a new report.

 

For more information on connecting to SharePoint List please see the documentation below:

Create a report on a SharePoint List in Power BI Desktop - Power BI | Microsoft Learn

 

The steps to connect to Project Online data are as follows:

 

1.Open Power BI Desktop.

 

2.On the Welcome screen, select Get data.

 

3.Select OData Feed and choose Connect.

 

4.Enter the address for your OData feed in the URL box, and then select OK.

 

If the address for your Project Web App site resembles https://<tenantname>.sharepoint.com/sites/pwa, then the address to enter for your OData Feed is https://<tenantname>.sharepoint.com/sites/pwa/_api/Projectdata.

 

5.Power BI Desktop prompts you to authenticate with your work or school account. Select Organizational account and then enter your credentials.

 

The account you use to connect to the OData feed must have at least Portfolio Viewer access to the Project Web App site.

 

From here, you can choose which tables you would like to connect to and build a query.

 

For more information on connecting to Project Online please see the documentation below:

Project Online: connect to data through Power BI Desktop - Power BI | Microsoft Learn

 

To display a hierarchical structure in a Gantt chart, you can refer to the document below.

xViz Gantt Chart - Power BI Advanced Custom Visual

 

There is a video at the bottom of this document that nicely demonstrates how to create a hierarchical structure through a Gantt chart.

vhuijieymsft_2-1714099950700.png

vhuijieymsft_3-1714099950727.png

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @nerv1827 ,

 

The steps to connect to SharePoint List are as follows:

 

1.Open Power BI Desktop and in the Home tab of the ribbon, select Get data > More.

 

2.Select Online Services, and then select SharePoint Online List.

 

Select Connect.

 

3.Find the address (also known as a URL) of your SharePoint Online site that contains your list. From a page in SharePoint Online, you can usually get the site address by selecting Home in the navigation pane, or the icon for the site at the top, then copying the address from your web browser's address bar.

vhuijieymsft_0-1714099915777.png

 

4.In Power BI Desktop, paste the address into the Site URL field of the SharePoint Online Lists dialog box, and then select OK.

vhuijieymsft_1-1714099915782.png

 

Select Connect.

 

5.On the left side of the Navigator dialog box, select the checkbox beside the SharePoint list you want to connect to.

 

Select Load. Power BI loads your list data into a new report.

 

For more information on connecting to SharePoint List please see the documentation below:

Create a report on a SharePoint List in Power BI Desktop - Power BI | Microsoft Learn

 

The steps to connect to Project Online data are as follows:

 

1.Open Power BI Desktop.

 

2.On the Welcome screen, select Get data.

 

3.Select OData Feed and choose Connect.

 

4.Enter the address for your OData feed in the URL box, and then select OK.

 

If the address for your Project Web App site resembles https://<tenantname>.sharepoint.com/sites/pwa, then the address to enter for your OData Feed is https://<tenantname>.sharepoint.com/sites/pwa/_api/Projectdata.

 

5.Power BI Desktop prompts you to authenticate with your work or school account. Select Organizational account and then enter your credentials.

 

The account you use to connect to the OData feed must have at least Portfolio Viewer access to the Project Web App site.

 

From here, you can choose which tables you would like to connect to and build a query.

 

For more information on connecting to Project Online please see the documentation below:

Project Online: connect to data through Power BI Desktop - Power BI | Microsoft Learn

 

To display a hierarchical structure in a Gantt chart, you can refer to the document below.

xViz Gantt Chart - Power BI Advanced Custom Visual

 

There is a video at the bottom of this document that nicely demonstrates how to create a hierarchical structure through a Gantt chart.

vhuijieymsft_2-1714099950700.png

vhuijieymsft_3-1714099950727.png

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.