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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Change source from local path to OneDrive for the complete folder

I would like to share my dashboards with my colleagues, but since my Excel files are stored locally, they cannot transform data. 

I use the following as a source: 

 

= Folder.Files("C:\Users\my_name\my_company\folder")

 

All my excel files are stored in this folder but those same Excel files are also together in a folder on a shared OneDrive. Is there a quick solution to be able to change this for all Excel files? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

In stead of Folder.Files, use SharePoint.Files("https://x-my.sharepoint.com/personal/your_name", [ApiVersion = 15])

! Important, you can only use the root folder to make a connection

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

In stead of Folder.Files, use SharePoint.Files("https://x-my.sharepoint.com/personal/your_name", [ApiVersion = 15])

! Important, you can only use the root folder to make a connection

lukiz84
Memorable Member
Memorable Member

The onedrive folder is also different on every computer... if not, just replace the local path with the onedrive path.

 

Better: Use OneDrive for Business links in Power BI Desktop - Power BI | Microsoft Learn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors