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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ARP331AHS269
Frequent Visitor

How to change data source from local folder to sharepoint Folder

I want to import all the files within the subfolders by just selecting the parent folder name 

 

How can I do it on Power BI similar to import data from folder option in Excel ?

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ARP331AHS269 

 

Please replace your Source Step in Power Query with the following.

 

SharePoint.Files("Sharepoint Link", [ApiVersion = 15])

 

SharePoint Link looks something like this = https://YourDomain/sites/YourSharePointName (not folder name)

 

Please use authentication via Microsoft Account.

 

When the connection is successfull you will see all items from the sharpoint and then you have to filter to the right folder.

 

More information: Power Query SharePoint folder connector - Power Query | Microsoft Learn

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

1 REPLY 1
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ARP331AHS269 

 

Please replace your Source Step in Power Query with the following.

 

SharePoint.Files("Sharepoint Link", [ApiVersion = 15])

 

SharePoint Link looks something like this = https://YourDomain/sites/YourSharePointName (not folder name)

 

Please use authentication via Microsoft Account.

 

When the connection is successfull you will see all items from the sharpoint and then you have to filter to the right folder.

 

More information: Power Query SharePoint folder connector - Power Query | Microsoft Learn

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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