pbPassingBI
/

Navigating Power Query

Applied steps, the query pane, and why the step order matters.

What you'll be able to do
  • Navigate the Power Query editor
  • Read and reorder applied steps
  • Know what belongs in Power Query versus DAX

The editor

Transform data opens Power Query. Four areas: the Queries pane listing every query, the data preview, the Query Settings pane on the right holding Applied Steps, and the ribbon.

Applied Steps is the important one. Every transformation you make is recorded as a step, in order, and each can be renamed, reordered, edited or deleted. That list is the transformation script — and unlike a hand-written one, it cannot drift out of step with what runs.

Step order matters

Steps execute top to bottom. Removing columns before filtering rows is not the same as the reverse, and the difference shows up as errors when a later step references a column an earlier one removed.

Rename your steps

The defaults — Changed Type, Filtered Rows, Filtered Rows1 — tell a reader nothing. Right-click → Rename, and a query becomes self-documenting.

Query folding

The concept that determines performance

Query folding means Power Query translates your steps into a single query the source database executes. When it folds, the database does the work and only the result travels.

Some steps break folding — adding an index column, certain custom columns, anything Power Query cannot express in the source's query language. Everything after that point is processed locally on the full data set.

Right-click a step → View Native Query. If it is greyed out, folding stopped at or before that step. Put folding-breaking steps as late as possible.

Power Query or DAX

WorkWhere
Cleaning, shaping, type changesPower Query
Combining and reshaping tablesPower Query
Row-level columns computed oncePower Query (calculated column)
Anything responding to filters and slicersDAX measure

The rule of thumb: if the value never changes with what the user selects, compute it in Power Query. If it must respond to the report, it is a measure.

Key points
  • Applied Steps is an editable, ordered transformation script
  • Query folding pushes work to the source — check with View Native Query
  • Static values belong in Power Query; anything filter-responsive is a measure
Check yourself