Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
434 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Some other pages relevant to this blog include:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
| Show all site content when importing from SharePoint in Power Query |
|---|
| When you're importing data from a SharePoint site using Power Query in Excel, sometimes you don't see a full list of the files stored in the site. This blog explains how to edit a query to reveal the full contents of the SharePoint site. |
In this blog
In Excel, you can choose to import data from files stored in a SharePoint site. For this blog, I'd like to import data from an Excel file called Music_01.xlsx in a folder called Excel Multi Table Models.

Here's the file I want to import, along with some other Excel files in the same folder.
The problem is that the file doesn't appear when I use Power Query to access the SharePoint site. In the image below, I've added a filter to show all the files in the Excel Multi Table Models folder.

The other files are there, but the one I want isn't!
So, how do we get to the file we want?
When you create a query to import data from a file stored in a SharePoint site (read this blog if you're not sure how to do that), Power Query uses the SharePoint.Files function to return a list of files.
You can see this by selecting the Source step of the query and looking in the formula bar (choose View | Formula Bar from the Power Query ribbon if you can't see it).

Select the Source step to reveal the code in the formula bar.
The SharePoint.Files function should return a list of all the files in the site, but sometimes it doesn't!
You can edit the code of the Source step to change how the site contents are returned. Try changing SharePoint.Files to SharePoint.Contents instead.

The query now lists the contents of the site, rather than the files stored in it.
The SharePoint.Contents function lists all of the folders and files stored at the top level of the SharePoint site, rather than just the files stored at any level of the site.
Next, we need to navigate to the folder containing the file we want to import. Start by clicking the Table link next to the parent folder to extract its contents.

The parent folder in this case is Shared Documents. Click the Table link to extract its contents.
The query extracts the contents of the folder and presents it in a new table. Continue clicking the Table links to navigate through the folder structure.

The next folder in our example is Excel Multi Table Models.
Once you've reached the final folder, your missing file should be revealed!

There's the file we want!
To extract the contents of a single file, click the Binary link in the Content column next to the file name.

Click Binary next to the file name to get its contents.
Next, you can choose which item in the file you want to import. To do this, click the Table link in the Data column next to the item you want to import.

Here we're choosing to extract the contents of the Venue worksheet.
Finally, you can add any other transforms you need to tidy up the data before loading it into the Excel worksheet.

I'd start by promoting the first row to become column headers.
Some other pages relevant to this blog include:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2026. All Rights Reserved.