Forum Discussion

zrichardson's avatar
zrichardson
Advocate III
9 years ago
Solved

Power BI Desktop with One Drive Sync

I have created a report using a local excel file to develop the report. My goal is to use OneDrive to automatically update this report. However, when I change the source to a OneDrive file, it isn't ...
  • v-qiuyu-msft's avatar
    9 years ago

    Hi zrichardson,

     

    In your scenario, you can import your Power BI Desktop file from OneDrive. When you refresh the dataset, it uses information in the dataset to connect directly to the data sources to query for updated data it then loads into the dataset. Assume Excel file contains typed data without external connections, you can follow below two ways:

     

    Method1:

    1. In Power BI Desktop, get data from local Excel file, save report as .PBIX file. Then upload the .PBIX file to OneDrive for Business.

    2. In Power BI Service, create a File type data source under on-premises data gateway ( make sure on-premise data gateway exists on the same server as Excel file).

    3. Click Get Data ->Files-> OneDrive-Business, then check the uploaded .PBIX file.

    4. Set schedule refresh for the dataset.

     

    Method2:

    1. Upload local Excel file to OneDrive for Business.

    2. In Power BI Desktop, get data from uploaded Excel, save and upload .PBIX file to OneDrive for Business.

    3. In Power BI Service, click Get Data ->Files-> OneDrive-Business, then check the uploaded .PBIX file.

    4. Set schedule refresh for the dataset.

     

    Reference:
    Refresh a dataset created from a Power BI Desktop file on OneDrive, or SharePoint Online

     

    Best Regards,
    Qiuyun Yu