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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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