Forum Discussion

zrichardson's avatar
zrichardson
Advocate III
9 years ago

OneDrive Excel to OneDrive pbix to Power BI Service

This is my setup:

 

I have an excel document that is updated on OneDrive Hourly. I have a pbix file that is connected to that excel document that is uploaded to my OneDrive. Finally, I have the PowerBI Service connected to that pbix file on OneDrive. The problem is, the OneDrive automatic refresh isn't updating the data inside of the excel file. If I go in and automatically refresh the data scource, the data will then be refreshed. 

 

My question is, how can I get the hourly OneDrive for business automatic refresh to update the data?

18 Replies

  • alanhodgson's avatar
    alanhodgson
    Solution Supplier

    Hey zrichardson,

     

    It sounds like you want the data in the Excel file to refresh when the hourly OneDrive refresh happens. I am assuming you are using the "Import" method to create your data model.

     

    Here is the limitation:

       - If the Excel sheet has any external connections to a database or another workbook, then you must manually go into the Excel sheet and "Refresh All", before the changes will show in PBI Service.

     

    Also, have you configured an on-prem data gateway? If so, personal or enterprise?

     

    Hope this helps,

     

    Alan

     

     

     

    • zrichardson's avatar
      zrichardson
      Advocate III

      I am not using "Import" because I am not connecting the service directly to the excel file. I am connecting the service to the pbix file on OneDrive. I am connecting the pbix file to the excel file on OneDrive. 

       

      I am not using any external data sources in my excel file. I have a scheduler that sends me an updated csv in an email. I use Microsoft flow to save over the previous file. That is how I update the data. 

       

      Again, everything updates perfectly when I go and manually "Refresh Now" the data source. However, the data does not refresh on the hourly OneDrive updates.

       

      Thanks!

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi zrichardson,

        I am not quite sure that how you connect to the Excel file from Power Desktop and if you enter credential for the Excel file in Power BI Service. To make the hourly refresh work in Power BI Service, please make sure the following things.

        1. Firstly, put your Excel file in a folder on OneDrive for Business, then connect the Excel file via Get Data->Web entry in Power BI Desktop as follows. Ensure that you use organizational account to connect to the file.


        2. After your create reports in Power BI Desktop, save the PBIX file and publish the PBIX file to Power BI Service by clicking the Publish button in the upper right. Also put the PBIX file in the same folder as the original Excel file on OneDrive for Business.


        3. Go to Power BI Service, go down to the Datasets and click  the ellipsis to the left of the Dataset you just published, in this dialog select “Schedule Refresh”.


        Choose “Data Source Credentials” in the dialog that appears and then click on “Edit Credentials”, make sure that you select “oAuth2” in “Authentication Method” list, then sign in, enter your use organizational account and password.



        After performing the above steps, make changes in your original Excel file which locates in OneDrive for business folder, then check if updates are uploaded to Power BI Service after a hour.

        Thanks,
        Lydia Zhang