Sub topic 3
Publishing and Running the First Refresh
Assume you can use Power BI Desktop, Power Query, and Import mode. You also need a date column on the large table and a source that supports query folding.
Publish and run the first refresh
After configuring the policy, publish the semantic model to the Power BI service. The first service refresh evaluates the policy and creates date-based partitions. It loads the archive period once and creates smaller partitions for the incremental period.
Later refreshes reload only the partitions that the policy selects.
flowchart TD
A[Publish model] --> B[First service refresh]
B --> C[Create archive partitions]
B --> D[Create recent partitions]
D --> E[Later refresh loads selected partitions]caption: How the first service refresh creates partitions alt: A flow from publishing a model to creating archive and recent partitions, followed by later selective refreshes.
Optional refresh settings
Detect data changes lets Power BI skip a partition when a separate date or time column shows that its data has not changed. Use a column that changes whenever source rows in that period change. This helps when historical rows can be corrected, but it adds a check to each refresh.
Only refresh complete periods prevents Power BI from refreshing the current incomplete day, month, or other period. This avoids loading partial data, but new records remain unavailable until the period completes.
| Setting | Use it when | Trade-off |
|---|---|---|
| Detect data changes | Historical data may be edited | Requires a reliable change column |
| Only refresh complete periods | Partial periods are misleading | Delays the newest data |
Verify and troubleshoot
Check refresh history in the Power BI service. A successful refresh does not prove that the source query read only recent rows. In Power Query, confirm that the date filter still folds to the source.
Common causes of a full-table read include:
- RangeStart or RangeEnd has the wrong name or type.
- The filter uses both inclusive boundaries.
- A transformation before the filter prevents folding.
- The service cannot access the source or has expired credentials.
Hybrid tables
A hybrid table adds a DirectQuery partition for the newest data while older partitions remain in Import mode. Use it when reports need near-real-time rows and the source can handle those queries. Expect higher source load and dependence on source availability.
XMLA partition management
Premium, Premium Per User, and Fabric capacity models can expose a read-write XMLA endpoint. Tools such as SQL Server Management Studio or Tabular Editor can inspect partitions and issue targeted refreshes. Use XMLA when you need partition-level diagnostics or operations beyond the standard refresh dialog.
Exercise
A first refresh succeeds, but it reads the entire source table. What should you check first?
Show answer
Check that the RangeStart/RangeEnd filter folds to the source and that the parameters have the exact required names and Date/Time type.