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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.