Skip to content
All insights
GrowPower BI & FabricHow-To GuideJune 13, 2026

From manual export to scheduled refresh in Power BI: Power Query and dataflows

The Short Version
  • Clean and type your data in Power Query so the cleanup repeats on every refresh.
  • Parameterize the source before you move the logic into a shared dataflow.
  • Schedule refresh on both the dataflow and the semantic model that depends on it.
  • Add incremental refresh with RangeStart and RangeEnd parameters for large fact tables.
Bottom line: Power Query, a dataflow, and scheduled refresh keep report data current on a schedule you set.

This guide covers a reporting routine that exports a spreadsheet, pastes it into a file, and cleans it again every month. You move the cleanup into Power Query so it repeats on every refresh. You parameterize the source so it is easy to point at a new file or server. You move the logic into a dataflow so several reports can share it. Then you set up scheduled refresh so the data updates on a schedule you set. It is written for an analyst at a small or midsize business who builds reports by hand.

From source to scheduled refresh 1 Source 2 Transform 3 Dataflow 4 Refresh 5 Report
From source to report on a refresh schedule.

Prerequisites

  • Power BI Desktop installed, and a Power BI account with permission to publish to a workspace.
  • A data source you currently export by hand: a file, a folder of files, a database, or a web feed.
  • For on-premises sources, such as a SQL Server on your own network, an on-premises data gateway in standard mode, installed or planned. Dataflows don't support a gateway in personal mode.

1. Power Query Cleanup

  1. In Power BI Desktop, on the Home ribbon select Get data, choose your source, then select Transform data to open the Power Query Editor.
  2. Remove what you do not need: select columns and use Remove columns, and use Remove rows for headers or blanks that came along.
  3. Set every column's type explicitly. Click the type icon to the left of each column header and choose the right type (text, whole number, decimal, date).

2. Merges & Appends

  • Append stacks tables with the same columns on top of each other (for example, 12 monthly files into one). Use Home > Append queries.
  • Merge joins two tables side by side on a matching key (for example, adding customer details to an orders table). Use Home > Merge queries, pick the matching columns, and choose the join kind. A left outer join keeps all rows from the first table and the matching rows from the second.

3. Source Parameters

A parameter holds a file path or server name in one place, so a change to the source is made once.

  1. In the Power Query Editor, on the Home ribbon select Manage parameters > New parameter.
  2. Name it (for example, SourceFolder or ServerName), set the type to Text, and give it a current value.
  3. Open the first step of your query in the Advanced editor or the formula bar and replace the hard-coded path with your parameter name.
Parameter Order

Parameterize the source before you build a dataflow. When several reports read from one dataflow, one parameter change in the dataflow repoints all of them.

4. Dataflow

A dataflow runs your Power Query logic in the Power BI service on a schedule. Several reports can then read the same cleaned data.

Two types exist. Dataflow Gen2 needs a workspace on Fabric capacity or a Fabric trial; Power BI Pro and Premium Per User workspaces don't support it. The original Power BI dataflow, Dataflow Gen1, works in Pro and Premium Per User workspaces but is in a legacy state and receives no new features.

  1. In a workspace on Fabric capacity, select New item, then Dataflow Gen2. Name it and select Create.
  2. In Power Query Online, select Get data, connect to your source, and rebuild the transformations you built in Desktop. You can also copy the queries from Desktop and paste them in.
  3. Select Save and run. Saving publishes the dataflow.

In a Pro or Premium Per User workspace, create a Dataflow Gen1 and build the same transformations in Power Query Online.

5. Report Connection

  1. Back in Power BI Desktop, select Home > Get data, then Power Platform > Dataflows.
  2. Select your dataflow's tables and load them. Your report now reads pre-cleaned data, and the transformation logic lives in one shared place.

6. Publishing & Scheduled Refresh

  1. Publish your report from Desktop with Home > Publish and pick the workspace.
  2. In the service, open the workspace, select the semantic model behind your report, then select Refresh > Schedule refresh.
  3. Set Configure a refresh schedule to On, choose a refresh frequency, set the time zone, and add one or more times. Power BI Pro allows up to 8 scheduled refreshes per day. Premium Per User and Fabric capacity allow up to 48. There is no monthly option.
  4. If the source is on-premises, select your on-premises data gateway under Gateway and cloud connections and map the data source to it.
  5. Set a schedule on the dataflow too, timed to finish before the semantic model refresh starts. For Dataflow Gen2, select the ellipsis next to the dataflow, then Schedule. For Dataflow Gen1, select the ellipsis, then Settings > Scheduled refresh.

7. Incremental Refresh

When a fact table is large, refreshing every row each time is slow and can run past the refresh time limit. Incremental refresh reloads only recent data.

  1. In Power BI Desktop's Power Query Editor, create two Date/Time parameters named exactly RangeStart and RangeEnd (the names are case-sensitive).
  2. Filter your fact table's date column so it keeps rows where the date is after or equal to RangeStart and is before RangeEnd.
  3. Select Close & Apply. In Table view, right-click the fact table in the Data pane and select Incremental refresh.
  4. Turn on Incrementally refresh this table, set Archive data starting (how much history to keep) and Incrementally refresh data starting (the recent window to reload each time), select Apply, then publish.

8. Verification

  1. In the service, select the ellipsis next to the dataflow, then Refresh now. Confirm it completes without error.
  2. Refresh the semantic model and confirm it succeeds and pulls the dataflow's latest data.
  3. Check the refresh history on both for successful runs at the scheduled times. On the semantic model it is Refresh > Refresh history. On a Dataflow Gen2 it is Recent runs.
  4. Change one record at the source, wait for the next scheduled run (or trigger a manual refresh), and confirm the change shows up in the report.

Refinements

The next refinements are tuning refresh times around your business hours and adding incremental refresh to any other large tables. If your source sits behind a firewall, the gateway is the step that takes the most setup. We set up gateways regularly and can set yours up with you.

See where you stand. Then move forward.

Book a free intro call. We'll talk through where you are today and map a plan for growth, protection, automation, and alignment.

30 minutesNo obligationGet an initial estimate within one week