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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
yaronch7
Regular Visitor

How to change datasource(PBI service) after I moved the file to one drive

I created my data model based on local CSV files with PBI desktop   now i want to move the files to onedrive and keep the connection after I am publishing to power bi service , how to change the power bi service or desktop to recognize the files on onedrive ?

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@yaronch7

 

In this scenario, since you move the file source from local to cloud, Power BI will verify your account to connect one drive and access the file on cloud instead of using Personal Gateway to access the file locally. You have to re-import the data on Power BI Service. See: Refresh a dataset created from a comma separated value (.csv) file on OneDrive or SharePoint Online

 

In Power BI Desktop, you just need to connect  the file on onedrive. Then go the Advanced Editor in "Edit Query", copy the "Source" part, and replace the Source part in your original dataset.

 

5.PNG

 

Regards,

 

 

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@yaronch7

 

In this scenario, since you move the file source from local to cloud, Power BI will verify your account to connect one drive and access the file on cloud instead of using Personal Gateway to access the file locally. You have to re-import the data on Power BI Service. See: Refresh a dataset created from a comma separated value (.csv) file on OneDrive or SharePoint Online

 

In Power BI Desktop, you just need to connect  the file on onedrive. Then go the Advanced Editor in "Edit Query", copy the "Source" part, and replace the Source part in your original dataset.

 

5.PNG

 

Regards,

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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