Forum Discussion

sjhand's avatar
sjhand
Frequent Visitor
3 years ago
Solved

Same Onedrive but different Data Source link in Power Query

Hi folks,

 

I am running into a unique situation. I have my work Onedrive account logged into my work laptop and my home computer in order to seamlessly access data.

 

For PowerBI, I mostly use data in Excel workbooks or folders in the Onedrive. The problem arises when I switch machines and the connection to the data breaks since the Location of the files is slightly different depending on the machine. Ex.  C:\jsmith\Onedrive\excel.xlsx vs C:\jbsmith\Onedrive\excel.xlsx.

 

To resolve this, I have to re-link the files under Data Source settings every time I switch machines.

 

Is there a way to dynamically link the Onedrive files so this situation doesn't happen?

  • Anonymous's avatar
    Anonymous
    3 years ago

     Hi sjhand - it appears that our referencing a Sync folder on the Local Machine.  In this case, I would recommend linking to the actual onedrive version.  Use OneDrive for Business links in Power BI Desktop - Power BI | Microsoft Learn.  Could you please try this first as it will be better if you publish the file to Power BI Web Service.  The Power BI Web Service will not connect to two separate devices and would two separate Data Gateway.  The OneDrive option will simplify everything.

    Many thanks

    Daryl

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

     Hi sjhand - it appears that our referencing a Sync folder on the Local Machine.  In this case, I would recommend linking to the actual onedrive version.  Use OneDrive for Business links in Power BI Desktop - Power BI | Microsoft Learn.  Could you please try this first as it will be better if you publish the file to Power BI Web Service.  The Power BI Web Service will not connect to two separate devices and would two separate Data Gateway.  The OneDrive option will simplify everything.

    Many thanks

    Daryl