Schedule Data Refresh allows Windows Azure SQL Database, OData and SQL Server data sources configured in Power Pivot to be refreshed. Any of the data sources that are retrieved via Power Query are not supported for Schedule Data Refresh. Any WASD, OData and/or SQL Server database retrieved using Power Query then added to the Data Model (Power Pivot) cannot be refreshed either. That’s the “in a jiffy: part. The rest of the post is a walk through of the Schedule Data Refresh feature.
As Power BI features are updated fairly frequentlly, the following walk through is valid at the time of writing. Future enhancements will be followed up in newer posts.
Schedule Data Refresh Feature
I believe this is a new addition to Power BI that I might have missed recently. So, I decided to check it out a little bit a few minutes before my presentation at SQL Malibu on Feb 12, 2014 on “Building Your Myth Busting Lab With Power BI“. When preparing for this presentation, I purposely left out any specific Data Sources, Data Management Gateway and Schedule Data Refresh features as I know that the Power BI Product Team is releasing new features and fixing bugs quite frequently. The cloud offering makes it possible for them to do so.
The features around the “Data Management” side part of it was OK-ish a few months ago and it has been great, because it means that the Product Team has lots of opportunity to shape the features to meet our needs through feedback that the public give them from their preview / trial offerings.
Now that Power BI is in GA in most countries (except for Australia, where I am), I think it’s a good idea to look into Scheduled Data Refresh. When I first read the article about Data Refresh, I initially thought this would also work for Power Query queries that have been added to Data Model. I was mistaken.
Data Sources in Power Pivot
Only Windows Azure SQL Database (WASD), SQL Server and OData data sources created in Power Pivot are supported for scheduled data refresh. If you are using SQL Server database, you will need to make sure that you configure Data Management Gateway and that the server is up and running at the scheduled data refresh time. Below is a snapshot of Power Pivot Data Sources that I have scheduled for refresh, excluding the Power Query one (as it doesn’t work).
If you are accessing a local database (presumably for testing), make sure that you fully qualify the name of the server, i.e. <Server Name>\<SQL Server Instance name>. If you use a shortcut such as “.\<SQL Server Instance name>, the Data Management Gateway will not be able to resolve the name and result in an error.
Enabling Schedule Data Refresh
Once the workbook is uploaded to Office 365 and enabled, you can schedule data refresh as shown below from the Power BI Site.
You can select the data sources that you want to schedule the data refresh for. Please note that in my example, I also have Power Query connection to my local SQL Server database. The Power Query data source cannot be refreshed. So, I’m only enabling the OData, WASD and SQL Server data sources for scheduled data refresh. At the time of writing, you cannot schedule each data source at different time. So, either they are scheduled for the same time or not excluded in the schedule at all.
Once you set the data refresh schedule, you can click on “save and refresh report”. If the report has not finished refreshing and you click on it again, it will come up with an error message similar tot the following:
Schedule Data Refresh History
If you go to the History page, you can check the status under the “Next Refresh” line. Below is a screenshot of history log after a few on-demand and scheduled refreshes. The list is quite comprehensive and lets you know which part of the data sources that cannot be refreshed. When the current data source hit an issue during refresh, the rest of the data sources enabled for refresh in the workbook will not be refreshed.
Email Refresh Failure
In the Settings, you can also configure one or more email address to send refresh failure notifications to. This send email feature is definitely handy. The error notification sent by email is similar to the following.
What could be improved?
1. The ability to configure different data sources in the workbook at different times or different refresh rate. This can be a double-edged sword though. Data source synchronisation is never easy.
2. Lower latency for status update to reflect the refresh process. At the time of writing, I find that I need to wait for about 10 – 30 minutes before I find out that the 30 second refresh is successful.
3. When the data source names in Power Pivot have been updated, the Schedule Data Refresh should ideally reflect that. At the time of writing this doesn’t happen at all.
Do you have your own suggestions for improvement / bugs to report? Please comment below and I will do my best to pass them on to the Power BI team. Alternatively, you can write to them in the Power BI forum.
Hope this walk through has been useful.
Wrap Up
In summary, Schedule Data Refresh allows users to refresh workbooks in Power BI with the latest data at a defined date / time as well as on-demand. You can schedule all the data sources in the workbook to be refreshed or only a selection of them, for the same schedule date and time. Although the feature is a little simple at the moment, it is much anticipated to match its cousin’s, on-premise SharePoint’s “automatic refresh Power Pivot“.
Further Reading
Keeping Your Reports Up to Date with Scheduled Data Refresh by Power BI Team
Automatically Refresh PowerPivot Data in SharePoint on Technet
Announcing the General Availability of Power BI for Office 365 by Power BI Team
8 Responses
Hi Ms SQL Girl,
I’m having an extremely difficult time determining from Telstra whether PowerBI is available as a product to Australian deployments of M$365. Do you have any insight into…
1) is it available in some capacity?
2) if not, do you know when it is likely to be available
3) are there any good training resources available in Australia for someone looking to expand their skillset with PowerBI / PowerQuery
Looking forward to a reply 🙂
Cheers,
Sam
Hi Sam,
As far as I know,
1) Power BI offering in Australia is not available for public yet.
2) I’m not sure when it will be available in Australia fully. I will post something around this when it does become available.
3) There was SQL Saturday Melbourne in April 2014 which has a couple of Power Query sessions. You can download the slide decks from here http://sqlsaturday.com/296/schedule.aspx. In terms of online learning, you can visit PASS BI Virtual Chapter (http://bi.sqlpass.org), PASS BA Virtual Chapter (http://bavc.sqlpass.org) and Power BI official site (http://www.microsoft.com/en-us/powerbi/default.aspx). The Virtual Chapters have YouTube channels here: https://www.youtube.com/user/passbivc and https://www.youtube.com/user/passbavc.
(Sorry about the delayed reply)
Hope this helps.
Julie
Hi Sam,
Power BI is now available in Australia for both trial and for purchase. For more details, see my latest blog post on it: https://www.mssqlgirl.com/power-bi-in-a-jiffy-now-in-australia.html
Hope this helps,
Julie
I cant seem to find out if it is available in Australia now or not. Does anyone know if Telstra offer it? Or can we finally do away with the elephant and order direct from Microsoft? (NOT FOR 250+ licenses).
Thanks.
Hi Brent,
I’m still confirming this information for you.
I will let you know as soon as I find out. Thank you for your patience.
Julie
Hi Brent,
Power BI is now available for trial and purchase directly from Microsoft in Australia. For more information, please check my recent blog post on Power BI in Australia here: https://www.mssqlgirl.com/power-bi-in-a-jiffy-now-in-australia.html
Hope this helps,
Julie
Have you noticed this regarding schedule refresh:
“If you’ve manually entered a SQL statement to execute, this cannot be scheduled for refresh. The alternative is to build the query by selecting the tables or views through the UI.”
It’s from the very bottom of this page:
https://support.powerbi.com/knowledgebase/articles/474669-refresh-data
So what team is understanding is that if you actually write SQL queries for use with scheduled refresh you can’t use them unless you want to do manual point and click in the UI. That’s ridiculous! This makes Power BI a no-go for my team of 12 and all the decision makers we report to.
Hi Ryan,
Thanks for the feedback and I understand the frustration. The Power BI team does check the Power BI support / community feedback very frequently on their site here: https://support.powerbi.com/forums/265200-power-bi
Also, as a temporary work around, have you tried creating views to represent your queries?
Thanks,
Julie