Short answer: a Dataflow Gen2 is Power Query in Microsoft Fabric: you connect to a source, shape the data in a visual editor (or in M), and write the result to a data destination such as a lakehouse or warehouse table. It suits people who know Power Query from Excel and Power BI, and transformations a few clicks can describe. For copying large volumes, a pipeline is cheaper; for complex logic, a notebook is clearer.
Fabric gives you three ways to move and shape data, and the right one depends less on the data than on the work and the person doing it.
How does a dataflow run?
- 1Sourcea database, files, SharePoint, an API
- 2Power Query stepsfilter, merge, pivot, change types
- 3Stagingan optional lakehouse that big steps run on
- 4Destinationa lakehouse, warehouse or SQL database table
Each query in the dataflow has its own destination, and for each you choose whether a refresh replaces the table or appends to it. A pipeline can run the dataflow as one of its steps, so it fits into a nightly sequence like any other activity.
The steps are M code underneath. A filter and a typed column look like this:
let
Source = Sql.Database("sql01.database.windows.net", "Sales"),
Orders = Source{[Schema = "dbo", Item = "Orders"]}[Data],
Recent = Table.SelectRows(Orders, each [OrderDate] >= #date(2026, 1, 1)),
Typed = Table.TransformColumnTypes(Recent, {{"Amount", type number}})
in
TypedDataflow, pipeline or notebook?
| Need | Dataflow Gen2 | Pipeline Copy | Notebook |
|---|---|---|---|
| Who builds it | Power Query users | anyone, few settings | Python or Spark users |
| Shaping data | many visual steps | almost none | any code |
| Large volumes | fine with staging | best | best |
| Logic you test and review | hard | not needed | yes |
A common split: a pipeline copies raw tables into bronze, a notebook cleans them into silver, and a dataflow serves the analyst who adds a lookup from a SharePoint list to gold.
What goes wrong?
- Steps that stop folding. When a step cannot be sent to the source as a query, the dataflow pulls every row and works through them itself. Keep filters early; see query folding.
- Replace on a big table. Rewriting a whole table each refresh is slow. Append new rows, or use the dataflow's incremental refresh.
- Logic only one person can read. Long chains of clicked steps are hard to review. Name steps, and move logic that grows into a notebook.
Where can you check this?
- Microsoft Learn: What is Dataflow Gen2?
- Microsoft Learn: Dataflow Gen2 data destinations and managed settings
- Microsoft Learn: Fabric decision guide: copy activity, dataflow, Eventstream or Spark
Where do you start?
The open course A lakehouse in three layers uses notebooks for the cleaning; the bronze, silver and gold post shows where a dataflow fits beside them.