ETLMCPData Conveyance Works
Log in Start free
Guides

Power BI incremental refresh on etlmcp tables: cover the re-pulled days

How long to make the Power BI incremental refresh period on an etlmcp PostgreSQL table so restated ad numbers reach your model instead of going stale.

Set the Power BI incremental refresh period to at least as many days as the etlmcp pipeline re-pulls on each sync, and filter on the table's date column. Every routine etlmcp sync deletes and rewrites the last few days of that pipeline's rows, because ad platforms keep changing recent figures. Power BI only reloads rows inside its refresh period; anything older sits in historical partitions that are never read again. If the refresh period is shorter than etlmcp's window, the corrected numbers land in PostgreSQL but your model keeps the old ones.

What etlmcp rewrites on each run

A routine sync, scheduled or started with Run now, pulls a trailing window of days that ends on the current date in the pipeline's own time zone, today included. The window is 7 days by default, and longer for platforms that go on restating a day's figures. When each connector is available, a routine sync re-pulls this many days:

Platform Days a routine sync re-pulls
Google Ads 31
Microsoft Advertising 31
LinkedIn 31
Meta 29
TikTok 29
GA4 13
Shopify 58
Pinterest 7
Snapchat 7

When the PostgreSQL destination loads a run, it deletes this pipeline's rows between the first and last date of the run (widened to every date present in the new rows), then inserts the new ones. Rows of other pipelines in the same table are left alone, because each row carries the pipeline's id in the _etlmcp_pipeline_id column. See how PostgreSQL rows are replaced.

The window can also start earlier than usual. If syncs were missed, for instance while a source needed reconnecting, the next sync reaches back to where the last successful window began. Give the refresh period a few days of margin for that.

How Power BI decides what to reload

Microsoft's incremental refresh works through two Power Query date/time parameters with reserved, case-sensitive names: RangeStart and RangeEnd. You filter the table on them in Power BI Desktop. On the first refresh after you publish, the service builds the partitions, and from then on it supplies its own values for the two parameters when it queries each one.

Your policy has two lengths:

  • Archive data starting before refresh date: how much history the model keeps. Make it no longer than what your etlmcp plan keeps: Free keeps 30 days, Starter 365, Team 365, Agency 730 and Scale 3650 (see plans).
  • Incrementally refresh data starting before refresh date: the refresh period. Only rows dated inside it are reloaded on each refresh. As days roll out of it, they become historical partitions that later refreshes skip.

So with a Meta pipeline that re-pulls 29 days, a 7-day refresh period would freeze the conversions Meta restates in the following weeks. Set the refresh period to the pipeline's window or longer; if one table holds several pipelines, use the longest window among them.

Write the filter on the date column

etlmcp creates the date column with the PostgreSQL date type, while RangeStart and RangeEnd must be date/time parameters. Convert the parameters, not the column, and use >= for the start and < for the end, as Microsoft's own examples do:

let
  Source = PostgreSQL.Database("your-host", "your-database"),
  Ads = Source{[Schema="public", Item="ad_daily"]}[Data],
  Filtered = Table.SelectRows(Ads, each
      [date] >= Date.From(RangeStart) and [date] < Date.From(RangeEnd))
in
  Filtered

Replace the host, database, schema and table with your destination's. Write this filter step yourself, for example in the formula bar: the standard Custom Filter dialog cannot apply the parameters.

The filter has to fold, which means Power Query must send it to PostgreSQL as part of the query. If it does not, an import-mode refresh pulls every row of the table and filters it inside Power BI. Power BI Desktop warns in the policy dialog when it cannot confirm folding; Microsoft suggests checking with Power Query Diagnostics in that case. Keep the date filter right after the navigation step, before any step that might stop folding.

To check what one partition should hold, run the same range in SQL:

SELECT date, _etlmcp_pipeline_id, SUM(cost) AS cost, SUM(conversions) AS conversions
FROM public.ad_daily
WHERE date >= DATE '2026-11-01' AND date < DATE '2026-11-08'
GROUP BY date, _etlmcp_pipeline_id
ORDER BY date;

Align the time zones

Unless you set a time zone under the semantic model's refresh settings, Power BI computes the current date in UTC. etlmcp ends each window on today's date in the pipeline's time zone. If the two disagree, the newest day can fall outside Power BI's refresh period, or a refresh can treat yesterday as today. Set the refresh time zone to the one the pipeline uses.

Leave Only refresh complete days off if you want today's partial figures. etlmcp includes today in each window, and replaces it on the next run.

Limits and one-way doors

  • A refresh in a Pro workspace stops after two hours, and in a Premium capacity after five hours. On Premium, refreshes run through the XMLA endpoint are exempt.
  • After the first publish, do not publish the same model again from Power BI Desktop: that removes its partitions and the data already loaded. You also cannot download the published model back as a .pbix.
  • A backfill you run by hand for an older range rewrites days that Power BI already treats as historical. Those days only reach the model after a full refresh, or, on Premium, by refreshing the affected historical partitions through the XMLA endpoint.

To run syncs at a time that suits your refresh, see scheduling the Power BI refresh after the etlmcp run. For the connection itself, see connecting Power BI to the etlmcp PostgreSQL table.

Related

Sources

  1. Configure incremental refresh and real-time data for Power BI semantic models — learn.microsoft.com, checked
  2. Power Query PostgreSQL connector — learn.microsoft.com, checked