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
TimTeska
Frequent Visitor

Help Connecting Power Query to a Sharepoint folder with spaces in the URL

Hello Experts,

I need help connecting Power Query to a Sharepoint folder to connect to all the files in a subfolder.  The full URL has special characters in it like %20 and will not work when I try to connect by just pasting the full url as the data source.

I also tried to connect using SharePoint online list option and starting with the root of the url - http://company.sharepoint.com but after I connect the folders appear as tables and I cannot connect to the sub folders I need to.

Can someone help?

 

Full URL https://company.sharepoint.com/teams/GlobalReportingTeam/Documents/Company%20JnJ%20Payable%20Indemni...

 

Path as it appears in OneDrive

C:\Users\login\OneDrive\Company Payable Indemnification Project\Completed Reports

 

TimTeska_0-1693421831715.png

 

TimTeska_1-1693421855299.png

 

2 REPLIES 2
christinepayton
Super User
Super User

When you are using the SharePoint Folder connector, you can filter on the path there to get to your folder. If I recall, it doesn't have the full path in it, just everything after the site, so you'd just copy the last chunk of your path to filter there. Replace %20s with spaces if you see that the path does not contain them in the query editor, they are a translation of the space character. 

jennratten
Super User
Super User

Hello!  You should use the SharePoint.Files connector instead.  That will return a table which contains the folder path that you can filter. 

jennratten_0-1693427018912.png

 

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
Top Kudoed Authors