Power BI Course
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.
| 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 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.
| 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.
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.
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.
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.
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.