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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jbaisley
Helper I
Helper I

List all files for each SharePoint site under a domain

Hello folks,

 

Aspecific question. I am trying to get a list of all files for each sub site under a master domain. Ideally I would want to extract paths, and meta data such as creator, date created, modified, etc. But then jsut the file name. We use our SP for managing clients, so each client has a sub site and each subsite will have one or more project folders. We want to be able to see if they comly to a given file stuctuer so we need to listen to everything.

 

I have tried this Power BI tutoiral to get all site names. It was very helpful and I toyed dwith using the column of site names to be a recursive search but I am unsure how.

https://youtu.be/qYhXdNDnyfI?feature=shared

 

Second was this answetr, but it wasn't for this exact problem as its manual.

Get a list of Files in document libraries across all site collections - Microsoft Community

 

Thridly I tried this but is also doens't answer the question. 

Combining Excel Files hosted on a SharePoint folder with Power BI | Microsoft Power BI Blog | Micros...

 

I don't need to open any files or combine. I just need to scrap a list from my entire tenant to see what's available.

3 REPLIES 3
christinepayton
Super User
Super User

think Jordan, who was the one who got me started on that first video, has a PBIX that gets the file info. He gave me permission to put his LinkedIn profile in the video description, you might try pinging him with that and seeing if he'll send you a copy? I've been meaning to make more in that series but my list of things I want to do is very long lol. 😅

Thanks Christine! Your solution was excellent! It got me most of the way. I will message Jordan 👍

Anonymous
Not applicable

HI @jbaisley,

AFAIK, current only the folder connector support the looping operation to enum each folder and its subfolder contents.

For power bi SharePoint connector, different level sites required verify different permissions. You can't direct use single permission to access and operation and enum each site.

Perhaps you can consider to python script as data source with for function to looping on the SPWebCollection to get detail contents:

Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn

SPWebCollection Members (Microsoft.SharePoint) | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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