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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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