Dataflow Gen2 in Fabric, explained

What a Dataflow Gen2 is in Microsoft Fabric, how Power Query, staging and data destinations fit together, and when to use a pipeline or a notebook instead.

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?

  1. 1
    Sourcea database, files, SharePoint, an API
  2. 2
    Power Query stepsfilter, merge, pivot, change types
  3. 3
    Stagingan optional lakehouse that big steps run on
  4. 4
    Destinationa lakehouse, warehouse or SQL database table
One query in a Dataflow Gen2

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
    Typed

Dataflow, pipeline or notebook?

NeedDataflow Gen2Pipeline CopyNotebook
Who builds itPower Query usersanyone, few settingsPython or Spark users
Shaping datamany visual stepsalmost noneany code
Large volumesfine with stagingbestbest
Logic you test and reviewhardnot neededyes
Three tools for one job each

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?

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.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.