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 August 31st. Request your voucher.

Reply
Blue407
Frequent Visitor

Visualising SharePoint online sites and subsites

I am using Odata link to Microsoft Graph to import all sites and subsites from SharePoint Online. This bit works okay.

 

There is a column for ID, which consists of Hostname Id, Site Id and Collection Id. I duplicate this, then split the duplicated column into the 3 separate ID's.

 

Hostname Id - the Domain

Site Id - The unique Id for the individual site (also have name fields)

Collection Id - The unique Id, within the Site Id, for the collection

 

My understanding is that there is only one Hostname (our Tenant/Domain), so this can be ignored.

Next, Site Id is unique within our Tenant, subsites will share the same Site Id, but each have their own Collection Id.

 

Here's some of the data, you can see multiple Site Id's that match, but with different Collection Id's:

 

Screenshot.jpg

 

What I want to do next is visualise this, creating a sitemap/tree with the Site Id on the left and then Collection ID's off from that.

For each one, I'd like to show some additional information, such as last used, name, created date etc. All columns I already have.

I would like it to look something like this, either horizontaly, or verticaly. 

 

SiteMap.png

 

Any suggestions how I can do this?

 

I did see some things using Visio to visualise things, but it seemed more aimed at static data, rather than everything being dynamic.

1 REPLY 1
christinepayton
Super User
Super User

You need data about the "parent" of each item to visualize the hierarchy, do you have that? Usually you can get it by splitting the path for the site, since it'll go root site/subsite1/subsite2/subsite3 down the tree. Then when you split, you can use each of those columns as a "level" in visuals (I like the matrix because it's easier to read, but there are others). 

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.

Top Solution Authors