Forum Discussion
Creating a auto refreshing report on Power BI Service with CSV file saved on OneDrive as datasource
Hello,
I am trying to create a report that can be shared with colleagues over Teams that will automatically update. But I am having some trouble in creating a report that refreshes automatically on Power BI Service that was created and published in Power BI Desktop.
The source dataset is a CSV file saved on my OneDrive for Business that is automatically updated every hour, using Flow.
I have used Get Data to load the dataset into a model Power BI Desktop. This has been done in two different ways in two seperate models:
1) Using the CSV Get Data option
2) Using the Web option, as descriobed in the following link (https://docs.microsoft.com/en-us/power-bi/desktop-use-onedrive-business-links)
With each report I have then published the model on a Workspace on Power Bi Service, but the visualisations are not updating after being intially published.
I have also tried using the Get Data option within Power BI Service to bring in Power BI Desktop file into the Service, but again the reports in Power BI Service are not updating. (https://docs.microsoft.com/en-us/power-bi/refresh-desktop-file-onedrive)
For all of the datasets/reports on Power BI Service I have OneDrive refresh turned on, so I would expect the Reports to update about every hour. Can anyone please tell me why this is not happening?
To note, I have not set yet set-up a On Premises Gateway. But my understanding, is that because all of the files are held in the O365 cloud there is no need for this, and the OneDrive refresh should be sufficent. Am I incorrect?
Please can can some support?
Thank you
David
8 Replies
- DavidSBikesFrequent Visitor
To add, I have a Schdeduled Refresh setup on the dataset that is using the web link for the OneDrive file. However this is not updating the Report as expected.
- AnonymousNot applicable
Hi DavidSBikes,
Actually, if you only get data from onedrive with web connector, it can support onedrive refresh.
For your scenario, you also import one local file, you still need to config gateway for these combine datasources.So you can try to upload local file to onedrive and use web connector to get both two files.
Regards,
Xiaoxin Sheng
- DavidSBikesFrequent Visitor
Hi Anonymous , this almost seems to work. This has been a great help.
This does now work but only if I use the manual Refresh Now option.
I have done as you suggested but the OneDrive Refresh doesn't seem to be working correctly. I have checked the Refresh History and it has not ran or completed once in the last four days.
I believe this may be because the on the 'Data Source Credentials' the Authentication Method is reverting back to Anonymous despite me selecting OAuth2 method. Each time OAuth2 is chosen I am taken to a login page to use the same credentials that are used for my OneDrive. However if I immieidatly click on Data Source Credentials again, it was reverted back to Anonymous.
Am I right in thinking this is why the OneDrive Refresh isn't working? If so, is there a reason that the Authentication Method is reverting to Anonmyous?
To note, I also have Scheduled Refresh turned on to run once a day which runs sucessfully, but it does not update the dataset and Report.
Thanks
David
- AnonymousNot applicable
Hi DavidSBikes,
I guess you are upload pbix file to onedrive and direct use power bi service to connect this pbix file, right?
If this is a case, onedrive refresh is different as you thought. It only trigger when that source file(pbix) updated. It should be the reason you mentioned why it not refresh when data source(csv files) updated.
Package refresh
This synchronizes your Power BI Desktop, or Excel, file between the Power BI service and OneDrive, or SharePoint Online. This does not pull data from the original data source. The dataset in Power BI will only be updated with what is in the file within OneDrive, or SharePoint Online.
Regards,
Xiaoxin Sheng