Sub topic 9
Configuring scheduled refresh
This chapter assumes you have already published a report from Power BI Desktop to a workspace. It also assumes you know that publishing creates a report and a semantic model, and that you have set data source credentials (the previous chapter). Scheduled refresh is the step that keeps the semantic model current without anyone opening Desktop.
What scheduled refresh does
A published semantic model in Import mode holds a copy of your data. That copy is a snapshot taken at the last refresh. When the source changes, the report keeps showing old numbers until the model is refreshed.
Scheduled refresh tells the Power BI service to re-run the model's queries at set times and replace the stored data. The report itself is not republished. Only the data behind it changes.
Two things to know early:
- Refresh applies to the semantic model, not the report. You configure it on the model.
- DirectQuery and live connection models do not store a copy, so they do not need a data refresh schedule in the same way.
Set up a schedule
- Open the workspace and find the semantic model in the item list.
- Select Schedule refresh (the clock icon), or open Settings for the model.
- Expand Data source credentials and confirm each source shows as signed in. If a source shows an error, fix it first.
- If the source is on-premises, expand Gateway connection and map each source to a running gateway.
- Expand Refresh, turn on Configure a refresh schedule, and choose the time zone.
- Choose Daily or Weekly, then add one or more times.
- Optionally turn on Send refresh failure notifications and add the people who should be told.
- Select Apply.
Limits that affect your plan
The number of refreshes per day depends on the license and capacity that host the workspace.
| Workspace hosting | Scheduled refreshes per day |
|---|---|
| Shared capacity (Pro or Premium Per User semantic models) | Up to 8 for Pro, up to 48 for Premium Per User |
| Dedicated capacity (Premium or Fabric) | Up to 48 |
Check Microsoft's current documentation, because these limits can change. A refresh also has a time limit, so very large models may need incremental refresh, which refreshes only recent partitions.
A schedule runs on a best-effort basis. A refresh can start a few minutes after its listed time, especially at busy hours.
Refresh now and check history
Scheduled refresh is not the only trigger. Select Refresh now on the model to run one manually. This is the quickest way to test a new schedule or new credentials, because you do not wait for the next slot.
To check results, open the model's Refresh history. Each run lists its start time, duration, and status. A failed run includes an error message and a request ID that you can give to support.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Credentials are invalid or expired | Password changed or token expired | Edit the data source credentials and sign in again |
| Gateway not found or offline | The gateway machine is off or the service is stopped | Restart the gateway service and confirm the mapping |
| Refresh is disabled after repeated failures | The service paused the schedule | Fix the cause, then turn the schedule back on |
| Data looks old but status is Success | Refresh ran, but the source did not change, or a filter in the query limits rows | Check the query and the source data |
The service disables a schedule after several consecutive failures, so watch for this on models nobody opens often.
Check your understanding
Exercise
You published a report and set a daily refresh at 06:00. At 09:00 the report still shows yesterday's numbers, and refresh history shows a failed run with an expired credential error. What do you do first, and how do you confirm the fix without waiting until tomorrow?
Show answer
Open the semantic model's settings, edit the data source credentials, and sign in again. Then select Refresh now on the model and check Refresh history for a Success status.
Exercise
A semantic model reads from a SQL Server database inside your company network. Which setting must be configured in addition to credentials before scheduled refresh can work?
Show answer
A gateway connection. The data source must be mapped to a running on-premises data gateway, because the service cannot reach the database directly.