Power BI Lesson 17 – Query Editor Layout | Dataplexa
Power Query · Lesson 17

Query Editor Layout

Most Power BI users only ever use a handful of buttons in the Power Query Editor — the ones they stumbled across in the first week. This lesson does a complete walkthrough of the entire interface: every ribbon tab, every column header control, every right-click menu, and the hidden panel options that significantly speed up your workflow once you know they exist.

The Home Tab

The Home tab contains the actions you use most often — loading, refreshing, managing queries, and the most common row and column operations. It is divided into groups that reflect the typical workflow order.

Home Tab — Power Query Editor
Close
Close & Apply ▾
New Query
New Source ▾
Enter Data
Data Source
Data Source Settings
Manage
Refresh Preview
Properties
Reduce Rows
Keep Rows ▾
Remove Rows ▾
Sort
↑ A→Z
↓ Z→A
Combine
Merge Queries ▾
Append Queries ▾
Button / Group What it does — and when to use it
Close & Apply Saves all query changes, runs every query against the source, loads results into the model, closes the editor. The dropdown also offers Apply (run but stay open) and Discard Changes (revert and close).
New Source Connects a new data source without leaving the editor. Useful when you realise mid-session that you need to add another table.
Enter Data Opens a manual data entry grid. Use this to create small lookup tables directly inside Power BI — for example a mapping of region codes to region names — without needing an external file.
Refresh Preview Re-reads the source data and updates the preview grid. Use this after modifying the source file to verify your steps still work on the new data before clicking Close & Apply.
Keep Rows ▾ Keep Top Rows, Keep Bottom Rows, Keep Range of Rows, Keep Duplicates, Keep Errors. Use Keep Top Rows when loading sample data during development — speeds up preview refresh significantly on large files.
Remove Rows ▾ Remove Top Rows, Remove Bottom Rows, Remove Duplicates, Remove Blank Rows, Remove Errors. The most used options are Remove Blank Rows and Remove Errors during cleaning.
Merge Queries ▾ Joins two queries by a matching column — the equivalent of a SQL JOIN. Brings columns from one table into another. Merge Queries as New creates a separate result query rather than modifying the existing one.
Append Queries ▾ Stacks rows from two or more tables vertically — the equivalent of SQL UNION ALL. Use when combining multiple files with the same structure (e.g. monthly sales files). Append as New creates a separate result query.

The Transform Tab

The Transform tab contains operations that modify existing columns in place — changing values, splitting text, extracting parts of dates, transposing the table, and more. Every action here modifies the currently selected column.

Transform Tab — key groups
Table
Transpose
Reverse Rows
Count Rows
Any Column
Data Type ▾
Detect Type
Rename
Replace Values
Text Column
Split Column ▾
Format ▾
Merge Columns
Extract ▾
Date & Time Column
Date ▾
Time ▾
Duration ▾
Transform action What it does — practical example
Data Type ▾ Changes the column type. OrderDate stored as text → change to Date. Revenue with $ signs → change to Decimal Number after removing the $ via Replace Values first.
Replace Values Finds all instances of a value and replaces them. Replace "N/A" with null. Replace "$" with "" (empty) to clean currency symbols. Replace "United States" with "US" for consistency.
Split Column ▾ Splits one column into multiple based on a delimiter or character count. "Alice Brown" → FirstName + LastName split by space. "2024-01" → Year + Month split by "-". Produces new columns.
Format ▾ Uppercase, Lowercase, Capitalize Each Word, Trim (removes leading/trailing spaces), Clean (removes non-printable characters). Apply Trim to every text column by default — invisible spaces cause merge failures.
Merge Columns Combines two or more columns into one with a separator. FirstName + " " + LastName → FullName. Year + "-" + Month → YearMonth key column.
Extract ▾ Pulls a specific part of a text value — First N Characters, Last N Characters, Range, Text Before Delimiter, Text After Delimiter. Extract "2024" from "2024-01-15" using Text Before Delimiter "-".
Date ▾ Extracts date parts — Year, Month, Day, Quarter, Week of Year, Day of Week. Select the OrderDate column → Date → Month → Month Number. Creates a new MonthNumber column for sorting.

The Add Column Tab

The Add Column tab looks almost identical to the Transform tab — but there is one critical difference. Transform modifies the selected column in place. Add Column always creates a brand new column while leaving the original untouched. Use Add Column when you want to keep the original values alongside the derived ones.

Transform tab — modifies in place
Select ProductName → Transform → Format → Uppercase
ProductName
LAPTOP PRO
MONITOR 27"
KEYBOARD
Original values are gone — replaced permanently in this step
Add Column tab — creates new column
Select ProductName → Add Column → Format → Uppercase
ProductName
ProductName.1
Laptop Pro
LAPTOP PRO
Monitor 27"
MONITOR 27"
Keyboard
KEYBOARD
Original column preserved alongside the new derived one
Add Column option What it creates — practical use
Custom Column Opens a formula editor where you write M code to compute a new column. [Revenue] * 0.1 creates a 10% tax column. [FirstName] & " " & [LastName] merges names with a space.
Conditional Column Creates an if/else column using a visual rule builder — no coding needed. If Revenue > 1000 then "High" else if Revenue > 500 then "Medium" else "Low". The UI builds the M code for you.
Index Column ▾ Adds a sequential row number column. From 0 (0,1,2...), From 1 (1,2,3...), or Custom (define start and step). Useful as a unique key when the table has no natural primary key.
Duplicate Column Creates an exact copy of the selected column. Use this before transforming — duplicate first, then transform the copy, keeping the original as a fallback.
Column from Examples You type example output values and Power Query reverse-engineers the transformation. Type "Jan" next to 2024-01-15 and it figures out you want the month abbreviation. Surprisingly powerful for complex text extractions.

The View Tab

The View tab controls what panels are visible and provides access to the Advanced Editor — where you can read and edit the full M code of any query. Most users ignore this tab entirely, which means they miss several tools that make working in the editor significantly faster.

Advanced Editor
Opens the full M code of the selected query in a single editable window. This is where you go to write or edit M directly, fix step references, or paste M code from documentation. Keyboard shortcut: none — use the View tab.
Query Dependencies
Shows a visual diagram of how all your queries reference each other. Essential when you have reference queries or append/merge chains — instantly reveals which queries feed into which.
Column Quality / Distribution / Profile
Three column analysis views shown below column headers. Column Quality shows % valid/error/empty. Column Distribution shows a value frequency histogram. Column Profile shows statistics — min, max, avg, distinct count. Turn these on for every new dataset you receive.

Column Header Controls

Most of the actions beginners hunt for in the ribbon are available faster by interacting directly with the column headers. The column header area has three distinct interactive zones that most users never discover.

Column header zones — annotated
🔤
CustomerName
Alice Brown
Bob Singh
Carol Lee
📅
OrderDate
2024-01-05
2024-01-18
2024-02-03
1.2
Revenue
1200
850
430
① Type icon (left side)
Click the type icon (🔤 / 📅 / 1.2 / 123) to change the column's data type directly — faster than using the ribbon Data Type dropdown. Opens the same type selection list.
② Column name (centre)
Double-click the column name to rename it inline — no need to go to the ribbon. The rename is recorded as a step automatically.
③ Filter arrow (right side)
Click the ▾ arrow to filter rows — choose specific values to keep or exclude. Works like an Excel AutoFilter. Each filter adds a "Filtered Rows" step to Applied Steps.

Right-Click Menus

Right-clicking in different areas of the editor reveals context menus packed with actions. Knowing what each right-click target offers saves enormous time — most of these actions are faster than hunting through the ribbon tabs.

Right-click a column header
Remove
Remove Other Columns
Duplicate Column
Add Column from Examples...
Replace Values...
Replace Errors...
Change Type ▶
Transform ▶
Move ▶
Right-click a query in the Queries pane
Copy
Paste
Delete
Rename
Duplicate
Reference
Move to Group ▶
Enable Load (toggle)
Properties...
Right-click an Applied Step
Delete
Delete Until End
Rename...
Edit Settings...
Move Up
Move Down
Right-click a cell value in the preview
Copy
Drill Down
Text Filters ▶ (equals, contains, begins with...)
Replace Values...
Remove
Most useful right-click — keeps hands off the ribbon entirely

Duplicate vs Reference — A Critical Distinction

Right-clicking a query in the Queries pane gives you two options that look similar but behave very differently. Getting these wrong is one of the most common causes of slow Power BI files.

DUPLICATE query:
  Creates a fully independent copy of the query.
  It re-runs the source connection and all steps independently.
  The copy has NO link to the original.
  If the original query is modified, the duplicate is unaffected.

  Use when:
    You want a separate table with different transformations
    applied to the same source, and both tables need to
    load into the model independently.

  Cost: reads the data source TWICE on every refresh.
  For large databases — expensive.

─────────────────────────────────────────────────────

REFERENCE query:
  Creates a new query that uses the ORIGINAL query's output
  as its starting point. It does not re-read the source.
  The source is read once; the reference query picks up
  from where the original left off.

  Use when:
    You want to create a staging query (clean the raw data)
    and then create separate final queries for Orders, Returns,
    Cancelled — all branching from the same cleaned source.

  Cost: source is read ONCE regardless of how many
  reference queries branch from it. Much more efficient.

─────────────────────────────────────────────────────

PATTERN — staging query with references:

  RawOrders          ← reads the source (loaded: disabled)
       │
       ├── Orders    ← reference, filters Status != Cancelled
       ├── Returns   ← reference, filters Status = Returned
       └── Cancelled ← reference, filters Status = Cancelled

  Source is read once. Three clean tables in the model.
Query Dependencies view — staging pattern
📁 Sales.xlsx
RawOrders (load disabled)
└──
Orders ✓ loaded
filters: Status ≠ Cancelled
└──
Returns ✓ loaded
filters: Status = Returned
└──
Cancelled ✓ loaded
filters: Status = Cancelled
Source file read once → three clean tables in model → fast refresh

Teacher's Note: The single most productive habit you can build in Power Query is right-clicking before reaching for the ribbon. Right-clicking a column header gives you Remove, Duplicate, Replace Values, Change Type, and Transform — all in one menu. Right-clicking a cell gives you instant filter and replace options scoped to that exact value. Once you start right-clicking instinctively, the ribbon becomes a reference for less common operations rather than the primary way you work.

Practice

Practice 1 of 3

In the Power Query Editor, clicking the Transform tab and applying Uppercase to a column replaces the original values. To keep the original and create a new uppercase version alongside it, you should use the ___ Column tab instead.

Practice 2 of 3

You want to create three filtered versions of the same source table — Orders, Returns, and Cancelled — without reading the source file three times on every refresh. The correct approach is to right-click the base query and choose ___ (not Duplicate) to create each filtered version.

Practice 3 of 3

To see the full M code of a query in a single editable window, you go to the ___ tab in the Power Query Editor ribbon and click Advanced Editor.

Lesson Quiz

Quiz 1 of 3

You want to add a column that shows "High", "Medium", or "Low" based on whether Revenue is above $1000, between $500–$1000, or below $500 — without writing any M code. Which Add Column option lets you build this with a visual rule builder?

Quiz 2 of 3

You right-click an Applied Step called "Filtered Rows" and choose Delete Until End. What happens?

Quiz 3 of 3

A colleague reports that refreshing the Power BI file takes 8 minutes because it reads a large database table four times. You open the editor and see four queries all using Duplicate to branch from the same source. What is the correct fix?

Next up — Lesson 18 covers Applied Steps in depth — how to reorder, rename, edit, insert steps mid-sequence, and what happens when a step breaks because of a change earlier in the chain.