Importing, Combining and Refreshing Data with Power Query

Learn to bring data into Excel with Power Query and prepare it with steps that repeat themselves. Import CSV files, workbooks, whole folders of files and tables from the web; set data types, including dates and numbers written in other regional formats; clean and split columns; and unpivot wide tables into long ones. Then append and merge queries with the right join kind, and refresh the result when the source changes, fixing the errors that appear when files or columns move.

IntermediateLesson 1 of 7 in Data Analysis with Spreadsheets Course

What you will learn

  1. Connect to the most common sources, check what Power Query finds, and decide whether to load the data as it is or shape it first.
    • Explain what Power Query does and how a query works
      Describe a query as a saved, repeatable series of steps that gets data from a source, shapes it and loads the result, and know where Power Query is available.
    • Import a CSV file, a text file or an Excel workbook
      Use the matching file connector, check the preview, set the file origin, delimiter and type detection, and choose between loading the data and transforming it first.
    • Combine all files in a folder and import data from the web
      Use the Folder connector to stack many files with the same layout into one table, and the Web connector to bring in tables from a web page or a file at a web address.
  2. Work confidently in the editor: read its panes and profiles, control the applied steps that make up a query, and decide where each query's result is loaded.
    • Find your way around the Power Query Editor
      Name the parts of the editor, read data types and column profiles, and see how each action becomes a step with a formula.
    • Edit, reorder and troubleshoot applied steps
      Change, rename, move and delete steps safely, understand why their order matters, and read a query in the Advanced Editor.
    • Load query results and organize queries
      Choose where each query's result goes, manage queries in the Queries & Connections pane, and reuse queries with Duplicate and Reference.
  3. Give every column the right data type, clean rows, columns and values with repeatable steps, and turn wide tables into long tables that are easy to analyze.
    • Set the right data type for every column, including regional formats
      Choose data types that make values sort, calculate and match correctly, handle conversion errors, and read dates and numbers written in another country's format.
    • Keep the right columns and rows
      Remove and rename columns, fix headers, filter rows and remove duplicates in ways that still work when the source changes.
    • Clean and transform the values in columns
      Format, replace, split, merge, extract and fill values, and add new columns from examples, conditions or simple formulas.
    • Unpivot wide tables into long tables, and pivot them back
      Recognize wide and long layouts, choose the right unpivot command so new columns are handled on refresh, and use Pivot Column for the reverse.
  4. Stack tables that share the same columns, join tables that share a key, and choose the join kind that answers the question.
    • Append tables that share the same columns
      Stack the rows of two or more queries into one table, line up their columns by name, and decide when to append, combine a folder or merge.
    • Merge queries on matching key columns
      Join a second table to the first by matching key values, expand the columns you need, and prepare keys so every match is found.
    • Choose the right join kind for the question
      Use the six join kinds to keep, combine or find the rows you need, predict the size of the result, and use anti joins to find missing matches.
  5. Update results when the source changes, control when and how queries refresh, and fix the errors that appear when files, columns or credentials change.
    • Refresh queries and set refresh options
      Refresh one query or the whole workbook, set automatic refresh options, and know what a refresh keeps and replaces.
    • Keep queries working when sources change
      Read refresh errors, point queries to moved sources, use parameters, set privacy levels and credentials, and build queries that survive new files and columns.

Power Query study guide

5 chapters

1

Bring source data into a repeatable query

A report often begins with data that lives somewhere else: a CSV export, another workbook, a growing folder or a web page. Choosing the right connection gives the cleaning steps a dependable starting point. You will check how files are read, select the right workbook object, and combine files with a shared layout. The preview is where you catch a wrong separator or damaged text before those problems spread through the query.

1.1 A saved recipe for preparing data

Power Query brings data into Excel and prepares it before you analyze it. A query records where the data comes from and the steps used to shape it. Each refresh reads the current source and runs those steps again.

Follow the data through three stages

The process has three parts: extract, transform and load, often shortened to ETL. Extract means connecting to the source and reading its data. Transform means changing the result: setting dates, removing unused columns or filtering rows. Load means sending the prepared result to a destination, such as an Excel table.

A query changes its result, not the source. Removing a Notes column from a query does not delete it from the original file. If an order amount is wrong in the business system, correct that system. If Notes is simply irrelevant to your report, remove it in the query.

Make a monthly task repeat itself

A team receives a monthly sales export with the same columns. Its March file is named “sales_2026-03.csv”. Each month an analyst deletes two unused columns, fixes dates and removes test orders. Instead of repeating these actions on the worksheet, the analyst imports the file, chooses Transform Data and records the three changes in the editor.

Next month, the analyst replaces the file at the location the query reads and selects Refresh. The preparation runs on the new contents. If the next export has a different name or location, update the source connection; refresh follows the saved connection and does not search for a likely replacement.

The saved recipe is different from a frozen result. A changed amount, an added row or a newly included folder file can change the refreshed output. A filter still applies: a new test order is read, then removed by the recorded filter.

Combine queries with worksheet work

A worksheet formula such as =TRIM(A2) acts on a cell and normally needs a helper column. Power Query transforms columns before loading them. You can then use worksheet formulas or a PivotTable with that prepared table. Changes needed on every import belong in the query; hand edits to its output are replaced by a refresh.

Find the tools in your spreadsheet app

In Excel for Windows, start on Data > Get & Transform Data. Power Query is included in Excel 2016 and later Windows versions and Microsoft 365; available connectors vary by edition. Power BI Desktop also uses Power Query.

Microsoft 365 for Mac includes the editor with fewer connectors. It has no From Web connector, and some sources can be refreshed but not imported through the Mac interface. Excel for the web supports a smaller set of refresh sources and cannot reach a file stored only on your computer. Power Query is unavailable in Excel on iPad, iPhone and Android.

Google Sheets uses other tools. IMPORTDATA reads CSV or TSV data from a URL, IMPORTHTML reads an HTML table or list, and IMPORTRANGE reads another spreadsheet's range. These formulas fetch data but do not record a Power Query sequence of cleaning steps.

Key Takeaways

  • A query saves a connection and ordered preparation steps.
  • Refresh reruns the steps against the current source.
  • Transformations affect the query result; the source stays unchanged.
  • Put repeatable fixes in the query before using its output in formulas or reports.

1.2 Read text files and workbook tables correctly

An import can look successful while reading the data incorrectly. Before loading, check the column boundaries, readable text, headers and types. Choose Transform Data when the imported values need preparation.

Check the text-file preview

Select Data > Get Data > From File > From Text/CSV. Choose the file, then inspect three settings:

SettingWhat it controlsWhat to check
File OriginCharacter encodingNames and accented letters are readable.
DelimiterWhere fields separateEach field lands in its intended column.
Data Type DetectionHow types are guessedCodes remain text and dates are interpreted correctly.

A UTF-8 file read with a Western European Windows encoding can show “café” as “café”. Choose 65001: Unicode (UTF-8) to read the original characters correctly. Changing the delimiter does not repair an encoding problem.

Consider the line “2026-03-01;Lisbon;1250,50”. It uses semicolons between fields and a comma within the amount. A comma delimiter splits at the decimal comma, leaving “2026-03-01;Lisbon;1250” in one field and “50” in another. A semicolon delimiter produces three fields. The amount still needs conversion with the locale that uses its comma decimal separator.

Type detection can use the first 200 rows, the entire dataset or no detection, which leaves columns as text. A sample can miss a code appearing later. Review the automatic Changed Type step: reading “00123” as Whole Number loses its leading zeros. Return to the step before conversion and set the code to Text; converting 123 back to text does not recover the zeros.

Choose the right workbook object

Use Get Data > From File > From Workbook for another workbook. In Navigator, choose a table, named range or worksheet. Select multiple items lets you choose several objects. A table already identifies its headers and rows. A worksheet may include title lines, blank rows and a totals line in its used area.

Suppose a worksheet has a title in row 1, a blank row 2 and headers in row 3. In the editor:

  1. Delete the automatic Promoted Headers and Changed Type steps if they used the title as the header.
  2. Use Home > Remove Rows > Remove Top Rows and remove 2 rows.
  3. Choose Use First Row as Headers.
  4. Set the column types against the real headers.

Deleting only Promoted Headers leaves a type step that still names the wrong columns. Working from the earliest wrong step prevents this chain of errors.

For data in the current workbook, select a cell and use Data > From Table/Range. Excel first creates a table if needed and asks whether the range has headers. Rows later added inside that source table become available at refresh.

Load sends the current result to Excel. Transform Data opens the editor so changes become saved steps. To fix an already loaded query, right-click it in Queries & Connections and choose Edit; typing corrected values into its output table will not make the fix repeat.

Key Takeaways

  • Check encoding, delimiter and detected types as separate import choices.
  • Use Text for identifiers with leading zeros.
  • Prefer a workbook table or named range to a decorated worksheet.
  • Remove title rows before promoting headers and assigning types.
  • Edit the query to make cleaning survive refresh.

1.3 Combine a folder and connect to web data

A folder query suits a stream of files with the same layout. A web query reads a reachable page or download URL. Both connections can be refreshed, so prepare them for changes in what the source contains.

Inspect the folder before combining

Select Data > Get Data > From File > From Folder. The preview lists files, with Content shown as Binary and fields such as Name, Extension, Date modified and Folder Path. The connector also lists files in subfolders. Choose Transform Data to filter this list before combining.

Keep the relevant extension and folder paths. Convert Extension to lowercase before testing for “.csv”, so “.CSV” is included too. Exclude temporary Excel lock files whose names begin with ~$. This filtering happens while there is still one row per file, before Power Query tries to read each file's contents.

Combine & Transform Data, or Combine Files in the editor, uses an example file to define how the files are read. The first file is the default; choose another if necessary. For workbooks, select the sheet or table each file should supply. Use files with the same type and matching column names.

The example file determines the columns expanded into the result. A column found only in a later file may be left out. A missing expected column can produce null values or an error in a step that names it. Comparing the layouts is part of checking the combine, even when the files all open successfully.

Change the shared reading steps

Power Query creates helper queries, including a sample file, a parameter, Transform Sample File and a Transform File function. If every file has two title rows, remove those rows in Transform Sample File. That adjustment is then applied to every file. Removing two rows after combining would remove just two rows from the whole combined table.

Keep Source.Name when file names identify periods or locations. You can extract the text between “_” and “.” in “sales_2026-01.csv” into a period column. It also helps trace a surprising row to its file.

The three monthly files contain 410, 385 and 402 data rows. Their combined result contains 1,197 rows. Adding a compatible April file with 398 rows and refreshing gives 1,595 rows, with no new combine step.

Read a page or download

In Excel for Windows, choose Data > From Web and enter the URL. Public pages commonly use Anonymous authentication. Navigator lists detected HTML tables; Web View highlights them. Add Table Using Examples can help extract a table by showing the values to collect.

A direct CSV or workbook download URL lets the connector read that file's contents. A page assembled by scripts may not expose the expected table in Navigator. A moved page or changed table layout can also break a previously working query. Inspect the columns and row count after a refresh.

Microsoft 365 for Mac has no From Web connector. Its source support also distinguishes importing from refreshing: Local Folder is listed as refresh-only. The folder and web creation paths above follow Excel for Windows.

Key Takeaways

  • Filter the file list before combining; include relevant subfolders deliberately.
  • The example file sets the shared reading pattern and expanded columns.
  • Edit Transform Sample File for fixes that each file needs.
  • Keep Source.Name when you need to trace or identify rows.
  • Folder refresh includes new compatible files that pass the filters.
  • Web imports depend on reachable URLs, supported authentication and readable tables.
2

Control the editor, steps and load destination

The Power Query Editor shows both the data and the recipe that produced it. You can inspect an earlier step, change a setting and see which later steps depend on it. Profiles help you spot errors and repeated keys, while load options decide where the finished rows go. Organizing shared preparation in helper queries keeps the workbook easier to maintain when several reports use the same source.

2.1 Read the preview and column profiles

Open the editor with Transform Data, Data > Get Data > Launch Power Query Editor, or by double-clicking a query in Queries & Connections. The preview shows the result at the selected step, so always notice which step is selected before interpreting what you see.

Use the five main areas

The ribbon provides commands on Home, Transform, Add Column and View. The Queries pane at the left selects the query. The central data preview shows its columns and sample rows. The formula bar above the preview shows the selected step's M formula; turn it on through View > Formula Bar. Query Settings at the right contains the query name and Applied Steps.

Column headers carry two controls. The icon on the left shows the type: “ABC” means Text, “123” Whole Number, “1.2” Decimal Number and a calendar Date. “ABC123” means Any, with no specific type assigned. The arrow on the right opens sorting and filtering. Right-click the header for column commands.

Transform and Add Column can offer similar commands but produce different results. Extracting the first 4 characters of the text “2026-03-15” through Transform replaces that column's values with “2026”. Using Add Column keeps the full text and adds a year column. Choose Add Column when both forms are needed later.

Look beyond the first visible rows

The preview is a working sample, not a statement that the table ends at the last visible row. Loading processes the full result. Home > Refresh Preview rereads source data for the editor; it does not by itself update the table already loaded on the worksheet.

Under View, turn on the profiles that answer your question:

ToolWhat it tells you
Column qualityShares of valid, error and empty values
Column distributionCounts of distinct and unique values
Column profileDetailed statistics and a value chart for the selected column

The default profiles use the top 1,000 rows. Select the status message about profiling to switch to the entire dataset when checking a whole column. A clean sample can miss errors farther down.

Interpret the measures

A Quantity profile based on 1,000 rows shows 97% valid, 2% error and 1% empty. That represents 970 valid values, 20 errors and 10 empty cells. Select an error cell's white space to read its details. A number-conversion error can point to text such as “n/a” in a numeric column.

Distinct counts different values; unique counts values appearing once. The list A, A, B, C has 3 distinct values and 2 unique values, B and C. For an ID that should identify every row, compare both counts with the row count and check for empty IDs as well.

The formula bar makes a recorded action explicit. = Table.RemoveColumns(#"Changed Type", {"Notes"}) removes Notes from the result of Changed Type. You can read the function, its input step and its selected column without writing a query from scratch.

Key Takeaways

  • The selected step determines what the preview shows.
  • Transform changes a column; Add Column keeps it and adds another.
  • Whole-dataset profiling can reveal problems outside the first 1,000 rows.
  • Distinct counts different values; unique counts values occurring once.

2.2 Keep steps in a working order

Applied Steps is the query's sequence of transformations. Each step uses an earlier result, normally the step directly above it. Select steps from top to bottom to see when a value changed or an error first appeared.

Edit a step at the point it acts

Select a step's gear icon to reopen its settings when a dialog is available. A split step may let you change the delimiter; a filter step may let you change its condition. Right-click for Rename, Delete, Delete Until End, Move before, Move after and Properties. Properties can hold a description explaining a less obvious decision.

A new action is inserted after the selected step. If you click an early step to inspect it and then remove a column, the removal is inserted there, not necessarily at the end. Power Query warns when an insertion can affect later steps. Select the final step again before continuing work intended for the finished result.

Name important steps for their purpose. “Keep 2026 orders” is easier to inspect than “Filtered Rows1”. M writes a step name with spaces as #"Keep 2026 orders".

Follow dependencies when a change breaks the query

Consider this sequence:

  1. Source reads a file with a Qty column.
  2. Promoted Headers sets its column names.
  3. Changed Type assigns types.
  4. Renamed Columns changes Qty to Quantity.
  5. Filtered Rows keeps Quantity greater than 0.

Delete Renamed Columns and the filter now asks for a column that no longer exists. The column is called Qty again. Restore the rename, or update the later filter to use Qty. Repeatedly deleting failing later steps hides the original cause and removes useful preparation.

Order also changes valid results. Trim spaces before removing duplicates so “Lisbon” and “Lisbon ” are compared in the same cleaned form. Set a quantity's numeric type before applying a numeric filter. Remove unneeded rows early when later work does not require them.

Automatic Changed Type steps name columns explicitly. If a discarded source column disappears, an early type step may fail before the query gets to remove that column. Keep the needed columns first, then assign their types. When modifying the last Changed Type step, Replace current combines the type choice into it; Add new step keeps both conversions in sequence.

Read the whole recipe in M

Home > Advanced Editor displays the full query. A let block defines named steps, and the name after in specifies the result returned. For example:

let
    Source = Excel.CurrentWorkbook(){[Name="Sales"]}[Content],
    Kept = Table.SelectColumns(Source, {"Date", "Quantity"})
in
    Kept

Here Source reads the current workbook's Sales table and Kept retains two columns. The query returns Kept. The formula bar shows one step; Advanced Editor shows how the steps connect.

M is case-sensitive. Table.RemoveColumns is recognized, while table.removecolumns is not. Column names such as “Quantity” and “quantity” are also different. When a hand edit fails, inspect spelling, capitalization, quotes and step references at the first failing step.

Key Takeaways

  • Inspect steps from the top to find the first incorrect result.
  • New actions are inserted after the selected step.
  • Reordering or deleting a step can break later references.
  • Clean values before comparing them and set types before numeric filters.
  • M step and column references are case-sensitive.

2.3 Choose what loads and reuse shared preparation

A query can feed another query without displaying a worksheet table. Choose the load destination for the result's purpose, then give queries names that make their role clear.

Send the result to the right place

Home > Close & Load uses the default destination, normally a new worksheet table. Close & Load To opens the Import Data dialog. You can choose a Table, PivotTable Report, PivotChart or Only Create Connection, and choose whether to add the data to the Data Model.

DestinationUse
TableWork with the prepared rows on a sheet.
PivotTable ReportStart a summary directly from the result.
Only Create ConnectionKeep a helper query available to other queries.
Data ModelStore larger results or support related tables.

A worksheet has 1,048,576 rows, and a loaded table also needs a header row. A result beyond worksheet capacity needs another destination, such as the Data Model. A connection-only query does not display all of its rows on a sheet; its preparation remains available for downstream queries.

For an existing query, right-click it in Data > Queries & Connections > Load To to change its destination. This changes where the result is used without rebuilding the preparation steps.

Separate shared cleaning from report outputs

Suppose Sales Clean sets types, trims product codes and removes test orders. Two reports need that same prepared data: Sales by Store and Sales Returns. Create each with Reference from Sales Clean. A reference starts from the original query's result, so a cleaning fix in Sales Clean reaches both reports.

Duplicate copies the steps into an independent query. Editing one copy does not change the other. Duplicate is useful for a separate approach you intend to maintain independently. Reference is useful when the second query should continue to inherit shared preparation.

Keep Sales Clean as Only Create Connection and load the final outputs. Loading every helper creates extra sheets with repeated data and increases the workbook's size. A helper does not need its own output table to supply another query.

Make dependencies visible

Name queries by their data and role, such as “Sales Clean” or “Sales Returns”. These names appear in Merge and Append dialogs. When a query name becomes a table name, spaces are converted to underscores: “Sales 2026” can load as “Sales_2026”.

Use Move To Group to organize related queries, including the helper queries made by a folder combine. View > Query Dependencies shows which queries supply others. Inspect it before deleting or changing a shared query.

Queries & Connections also shows loading status, row counts and errors. Right-click a query there to edit, refresh, duplicate, reference, merge, append or open its properties. After changing a shared cleaning query, refresh a dependent result and inspect its rows; a correct connection diagram alone does not check the data.

Key Takeaways

  • Load final results where they are needed and keep helpers connection-only.
  • A worksheet row limit includes space needed for table headers.
  • Reference inherits the source query result; Duplicate creates independent steps.
  • Query Dependencies shows which results a change may affect.
3

Give data the right types and layout

Columns that look correct can still sort incorrectly, fail to match or hide missing values. Assigning types and reading regional formats correctly makes later work dependable. You will keep the rows and columns you need, clean and split values, and turn period columns into rows. These choices also shape refresh behavior: a query can welcome a new month while ignoring a new notes column.

3.1 Types, regional formats and conversion errors

A data type tells Power Query how to interpret a column. Text “10” sorts before “2”, because text is compared character by character. Numeric 10 sorts after 2. Types also control the commands available for dates and numbers and whether key values match in a merge.

Choose a type for the meaning

Use the header's type icon or Change Type to assign a type. Detect Data Type guesses from values, so check its choices. Avoid leaving the final columns as Any.

TypeTypical use
TextNames, identifiers and codes such as “00123”
Whole NumberCounts of items
Decimal NumberMeasurements and fractional quantities
Fixed Decimal NumberAmounts requiring four decimal places of fixed precision
PercentageNumeric proportions displayed as percentages
Date, Time, Date/TimeCalendar dates, clock times or both
Date/Time/TimezoneA date and time with a time-zone offset
DurationElapsed time between values
True/FalseLogical flags
BinaryFile contents

Fixed Decimal Number is also called Currency. Decimal Number uses floating-point storage and can have small representation differences. Keep identifiers as Text even when they contain only digits: adding two product codes has no useful meaning, and a numeric conversion removes leading zeros.

Date drops the time portion of “2026-03-04 14:30”. Keep Date/Time when that time matters. Subtracting 2026-03-01 from 2026-03-15 gives a Duration of 14 days; Transform > Duration > Days extracts 14.

Read the source's regional format

A locale supplies language and regional rules for interpreting text. Use Change Type > Using Locale on a column to select both its target type and its source locale. Workbook regional settings are under Data > Get Data > Query Options > Current Workbook > Regional Settings.

The text “03/04/2026” means March 4 in English (United States), but April 3 in English (United Kingdom). A wrong conversion can succeed silently when both numbers are 12 or less. “22/04/2026” reveals the problem under a month-first reading because there is no month 22.

For the British dates, go back before the incorrect conversion and choose Date with English (United Kingdom). Inspect a known date, or add its month number to check the interpretation. A display format change after a wrong conversion will not swap the stored month and day back.

The German number text “1.234,56” becomes 1234.56 with Decimal Number and German (Germany). The period groups thousands and the comma separates decimals. Fixing a file's delimiter is a separate task from interpreting the number inside a field.

Inspect errors without inventing values

Text such as “n/a” cannot become a Whole Number, so that cell becomes Error. Keep Errors isolates problem rows. You can correct the source, replace a known text marker before conversion, replace errors afterward or remove error rows when that is the intended treatment.

Use null for a missing amount; use 0 when the amount is known to be zero. Replacing an unknown with zero leaves a sum unchanged but changes averages and counts of values. For amounts 10, 20 and null, the average of known values is 15. Replacing null with 0 makes that average 10.

Key Takeaways

  • Set types for the values’ meaning, keeping identifiers as Text.
  • Using Locale interprets source text; worksheet formatting changes display.
  • A valid-looking date can have its day and month swapped.
  • Correct an incorrect conversion at its step, before information is lost.
  • Inspect errors before replacing or removing them.
  • Null is missing; zero is a known numeric value.

3.2 Keep useful rows, columns and headers

Selecting columns and rows defines what the analysis will receive. A saved selection also defines what happens when the source gains a column or introduces a new status.

Decide how new columns should behave

Remove Columns records the names to discard. A new source column passes through unless another step removes it. Remove Other Columns records the names to keep, so new source columns are excluded. Home > Choose Columns offers the keep list in a dialog.

For a report needing only OrderID, Date and Amount, keep those columns before assigning their types. A later Notes column is then ignored. If you remove just an existing Comment column, a newly added Notes column still appears.

Double-click a header to rename it. The step records the old name, so a later source rename can break it. Drag headers to reorder columns, or use Choose Columns to select their order. Reordering affects presentation; renaming affects later formulas that refer to the name.

Turn the report area into a clean table

Remove title lines with Home > Remove Rows > Remove Top Rows, then choose Use First Row as Headers. Remove a trailing totals line with Remove Bottom Rows when it is consistently the bottom row. Set types after the real headers are in place.

Amounts 120, 75, 40, 60 and 90 sum to 385. Keeping a source Total row of 385 makes a later sum 770. Totals belong to the report's presentation; retaining them as another observation counts the same amounts twice.

Read the filter's rule

The header arrow offers text, number and date filters according to the column type. Power Query's text comparisons are case-sensitive. Normalize the case first if “Cancelled” and “cancelled” should follow the same rule.

A filter can exclude one value or include a fixed list. Compare these expressions in the formula bar:

each [Status] <> "Cancelled"

This retains other statuses, including a future “On hold” value.

each [Status] = "Open" or [Status] = "Closed"

This retains only Open and Closed. The ticked boxes in a filter dialog do not always reveal which kind of rule was recorded; inspect the formula when future categories matter.

Remove duplicates on the intended columns

Remove Duplicates compares the selected columns. Select all columns for fully repeated rows, or just OrderID for one row per ID. It does not guarantee which duplicate survives, so it cannot by itself select the newest record.

Cleaning first can change the duplicate count. Eight email entries include “ana@example.com” twice, “Ana@example.com”, “ben@example.com” twice, “ben@example.com ”, “chen@example.com” and “dara@example.com”. Removing duplicates directly leaves 6 rows. Trim plus lowercase makes the three Ana entries equal and the three Ben entries equal; removing duplicates then leaves 4.

Remove Rows also offers Remove Blank Rows and Remove Errors; Keep Rows includes Keep Top Rows, Keep Duplicates and Keep Errors. Choose the operation for the whole row. A single null cell means a value is missing; it does not mean every field in that row is blank.

Key Takeaways

  • Remove Other Columns keeps a fixed column list across refreshes.
  • Fix headers before steps that refer to the column names.
  • Remove source totals before summarizing observations.
  • Inspect whether a filter excludes values or includes a fixed list.
  • Clean comparison values before removing duplicates.
  • Remove Duplicates does not select a guaranteed newest record.

3.3 Transform values and add useful columns

Power Query offers commands for text, numbers and dates. Some change the selected column; others create a new one. Keep the original when later steps still need it, and check how a transformation handles values that differ from the preview.

Clean text without changing its meaning

Transform > Format includes lowercase, UPPERCASE, Capitalize Each Word, Trim, Clean, Add Prefix and Add Suffix. Trim removes whitespace from the ends. It turns “ North Region ” into “North Region”, preserving the two inner spaces. The worksheet function TRIM also reduces runs of ordinary inner spaces. Clean removes nonprinting characters, such as line breaks.

Replace Values normally replaces matching text inside a value. Replacing “St” with “Street” changes “Stone Rd” to “Streetone Rd”. Choose Match entire cell contents to replace only the full value “St”. Replacements are case-sensitive. Replacing two spaces with one turns four spaces into two; repeat if longer runs remain.

Split, extract or join

Split Column > By Delimiter can split at the left-most, right-most or every occurrence. Splitting “Silva, Ana” at the left-most “, ” produces “Silva” and “Ana”. Other split choices use positions, character counts or changes in letter case.

A split into columns records an output width based on the preview. A later value with more parts can lose the extra parts. For a varying list such as “red;blue;green”, choose Advanced options > Split into Rows. Each item becomes a row, repeating the other fields.

Extract takes a piece without producing all the pieces. From “INV-2026-0042”, Text Before Delimiter “-” returns “INV”, Text After Delimiter returns “2026-0042”, and scanning from the end returns “0042”. First Characters, Last Characters, Range and Text Between Delimiters suit fixed patterns.

Merge Columns joins selected columns using a separator and selection order. First “Ana”, then Last “Silva”, with a space gives “Ana Silva”. Use Add Column when the original name parts must remain.

Fill only where a value is missing

Fill Down copies the last value above into nulls. A report showing Fruit, null, null, Vegetables, null becomes Fruit, Fruit, Fruit, Vegetables, Vegetables. Fill Up copies from below. Empty text is not null; replace empty text with null first if those cells need filling. Fill does not infer a missing category from the product name.

Build a new value

Column From Examples infers a transformation from results you type. Test the inferred pattern on less typical rows. Conditional Column builds a rule: Quantity at least 100 gives “Bulk”, otherwise “Standard”. Custom Column accepts a simple M formula such as [Quantity] * [Unit Price]; quantity 12 at 2.50 gives 30. Index Column numbers the current rows from 0 or 1.

Typed numeric and date columns offer further commands. Divide a mass of 2,450 grams by 1000 to obtain 2.45 kilograms. Rounding sets the requested decimal places. For a Date column, Add Column > Date > Year > Year extracts 2026 from 2026-03-15. Month-name extraction uses the regional settings' language.

Key Takeaways

  • Trim removes end whitespace; Clean removes nonprinting characters.
  • Use whole-cell replacement when a short code must not alter longer words.
  • Split into Rows handles lists with varying numbers of parts.
  • Merge Columns follows the order in which columns were selected.
  • Fill operates on nulls, so convert empty text when necessary.
  • Conditional columns apply rules; custom columns calculate values.
  • Number and date transformations depend on suitable data types.

3.4 Turn period columns into rows

A wide table might have Region, Jan, Feb, Mar and Apr as columns. In a long table, the columns are Region, Month and Sales. Each row describes one region-month observation, making new periods easier to filter and summarize.

Unpivot the measurements

Select the identifier Region and choose Transform > Unpivot Other Columns. The identifier repeats for each observation. Attribute contains the old column header and Value contains its value. Rename them Month and Sales, then set their types. Date-like headers can become a Date column after unpivoting.

Compare the commands:

CommandWhat you selectWhat future period columns do
Unpivot ColumnsThe current measurement columnsJoin the unpivoted rows
Unpivot Other ColumnsThe identifier columnsJoin the unpivoted rows
Unpivot Only Selected ColumnsA fixed measurement listStay as separate columns

Ordinary Unpivot Columns records the complementary keep list, just as Unpivot Other Columns does. Only Selected Columns records the fixed list to unpivot. Check that new non-period columns are removed before a dynamic unpivot, or they can become unexpected attributes too.

Check rows and totals

The wide table has 3 regions and 4 months:

RegionJanFebMarApr
North120135128140
South95102null110
West80849188

There are 12 region-month positions but only 11 values. Unpivot skips the null, producing 11 rows. North totals 523, South 307 and West 343, so the long Sales column totals 1,173.

Add May values 150, 115 and 90. A dynamic unpivot includes three more rows: 14 rows totaling 1,528. A fixed Only Selected Columns step still unpivots the original four months into 11 rows and leaves May in its own column.

If missing-report positions must remain visible, preserve them before unpivoting with an appropriate marker. Use zero only when missing means no sales. Replacing an unreported amount with zero changes what the data claims.

Remove totals first. North's Total of 523 would become another attribute named “Total”. Summing all North rows would give 1,046. A total row can cause the same double counting across regions.

Pivot when the result needs columns

For the reverse layout, select Month and choose Transform > Pivot Column. Choose Sales as the values column. The remaining columns, such as Region, identify each output row.

If each region-month pair has one value, Don't Aggregate places it in the corresponding cell. Two observations for the same pair cannot occupy one cell this way and produce an error. Choose Sum when the amounts should be added; other aggregation choices include Count, Average, Minimum and Maximum. Aggregation can combine observations, so pivoting afterward does not always recover the original rows.

Transpose swaps all rows and columns. It does not preserve the identifier columns and create an attribute-value pair, so it serves a different layout change.

Key Takeaways

  • Unpivot turns measurement headers into attributes and their contents into values.
  • Choose dynamic unpivoting when new periods should become rows.
  • Unpivot skips null cells, changing the count of observations.
  • Remove totals before reshaping to prevent double counting.
  • Pivot needs an aggregation when several values belong in one output cell.
4

Stack tables and join matching records

Combining data begins with a choice: add more observations, or attach information to existing ones. Append stacks rows and aligns column names. Merge matches keys and brings related fields into the result. You will prepare those keys, choose which matched and unmatched rows to retain, and predict row counts so a duplicate lookup record does not quietly inflate a report.

4.1 Append rows with matching column names

Append stacks tables vertically. Use it for observations of the same kind, such as orders from two stores. It does not need an ID match between rows.

Choose how to create the result

Under Home > Append Queries, add inputs to the current query. Append Queries as New creates a separate query and leaves the inputs unchanged. Choose Two tables or Three or more tables, then list the queries in the intended stacking order.

Store A has 6 rows and Store B has 4. Both have Date, Product and Quantity. Appending produces 10 rows with those 3 columns. A row appearing in both inputs is retained twice; append does not deduplicate.

Align names before stacking

Append matches columns by their exact names, including case and spaces. Their position does not matter. A Quantity column at the start of one input aligns with Quantity at the end of another.

If Store B calls the field Qty, the result has both Quantity and Qty. Store A's rows have null in Qty, and Store B's have null in Quantity. Rename Qty to Quantity in the input query before appending. Moving the column to the same position does not fix mismatched names.

Input differenceAppend resultPreparation
Same names, different orderShared columns alignNo reordering is required.
Quantity versus QtySeparate columnsRename to a shared name.
A field exists in one input onlyNulls for the other inputKeep it if the absence is meaningful.
Same field, different typesValues need a consistent typeAssign and check the final type.

A null from a missing field means that input did not provide the value. It should not be changed to zero merely to fill every cell. Check type icons after append, especially if one input supplied numeric text.

Preserve where each row came from

If the inputs have no store field, add one before appending. Use Add Column > Custom Column with "Store A" in the first query and "Store B" in the second. Each row then keeps its origin. After stacking, the original row positions are not a dependable store label.

Load the input queries as Only Create Connection and load the appended result. Refreshing the result recomputes its input queries, so new source rows are included without separately loading each input onto a sheet.

Choose append, folder combine or merge

Append suits a few existing queries, even if one came from CSV and another from a workbook. Folder combine suits many similarly structured files that keep arriving. Its shared sample transformation reads each file before stacking its rows. Merge suits a lookup task, such as attaching a product category to an order by matching ProductID.

These choices solve different questions. If two monthly order tables should become one order list, append them. If the order list needs customer names from a customer register, merge it. Stacking a customer register under order rows would create a mixed table with many nulls, without assigning any name to an order.

Key Takeaways

  • Append adds rows and aligns columns by exact names.
  • Rename mismatched fields before append; column order does not fix names.
  • Columns absent from an input produce nulls for its rows.
  • Add origin labels before stacking if the inputs lack them.
  • Append retains duplicate rows.
  • Refresh the final query to recompute its connection-only inputs.

4.2 Merge on prepared keys and inspect the matches

Merge connects related rows by matching key values. An orders query can gain customer names from a customer query without worksheet lookup formulas. The selected join kind decides which unmatched rows remain.

Select keys, then expand the result

Choose Home > Merge Queries to use the current query as the first table, or Merge Queries as New for a separate result. Select the second table and click the key column in both previews. The header names can differ; the selected values must match. Choose a join kind and confirm.

The new column contains a nested table for each row. It holds that row's matches from the second query. Select the expand icon and choose the fields you need. Clear Use original column name as prefix for a name such as Name instead of Customers.Name. In Excel for Windows, the same menu can aggregate matches, such as summing Amount or counting rows.

For a key made from Store and Date, hold Ctrl and select the columns in the same order in each table. Small numbers 1 and 2 show the pairs. Selecting Date first in one table pairs it with the first selected field in the other table, even if the headers look familiar.

Make equivalent keys actually equal

A standard merge is case-sensitive. Text “C01”, “c01” and “C01 ” differ. Trim end spaces and apply a shared case in both queries when those differences are irrelevant to the identifier. Both key columns need compatible types: text “1001” does not equal numeric 1001.

Keep codes as Text from import when leading zeros are meaningful. If “00123” was already converted to 123, merely changing its type back to Text does not recover the original key.

Work through a left merge

Orders contains O1/C01/120, O2/C02/75, O3/C01/40, O4/C05/60 and O5/C03/90. Customers contains C01/Ana, C02/Ben, C03/Chen and C04/Dara. A Left Outer merge keeps all 5 orders. After expanding Name, the two C01 orders show Ana, C02 shows Ben, C03 shows Chen and C05 has null. Four of the five orders matched.

Now imagine C01 appears twice in Customers. Each C01 order has two matches. Expanding produces 7 rows: the original 5 plus one extra for each of the two C01 orders. The merge did not simply choose one name.

Before a lookup-style merge, check that the second table's key is unique and nonempty. Resolve unwanted duplicate keys according to the data's meaning. Removing duplicates without checking conflicting records can discard information without guaranteeing which record survives.

Use fuzzy matching for names carefully

Use fuzzy matching to perform the merge works on text columns with similar spellings. The similarity threshold ranges from 0 to 1 and defaults to 0.80. Lower thresholds allow weaker matches. Even a threshold of 1 can ignore differences such as case or punctuation under fuzzy matching; it is not the same comparison as a standard exact merge.

Review fuzzy matches because similar names can identify different customers. For structured IDs, prepare exact keys. Unlike a typical XLOOKUP, a merge returns every matching row when expanded, so checking multiplicity is part of checking the result.

Key Takeaways

  • Merge matches selected key values; headers need not share a name.
  • Expand the nested table to bring matching fields into the result.
  • Normalize key text and types before an exact merge.
  • Select multi-column keys in the same order on both sides.
  • Repeated keys in the lookup table can multiply expanded rows.
  • Fuzzy matching needs text keys and review of the matches.

4.3 Choose which matches and gaps to retain

A join kind answers a question about matches. The first table in the Merge dialog is the left table; the second is the right table. Choose the table order before interpreting the join's name.

Compare the six join kinds
Join kindRows kept
Left OuterEvery left row, with right matches where available
Right OuterEvery right row, with left matches where available
Full OuterAll matched and unmatched rows from both sides
InnerMatching rows only
Left AntiLeft rows with no right match
Right AntiRight rows with no left match

For a name lookup that must preserve every order, put Orders first and use Left Outer. To retain only orders belonging to known customers, use Inner. To investigate unknown customer IDs in Orders, use Left Anti. To find registered customers with no orders, use Right Anti with Orders first, or Left Anti with Customers first.

Count a small merge by hand

Orders has 5 rows: two for C01, one for C02, one for C05 and one for C03. Customers has one row each for C01, C02, C03 and C04. Four orders match. C05 is unmatched on the order side, and C04 is unmatched on the customer side.

  • Left Outer gives 5 rows: four matches and the C05 order.
  • Inner gives 4 matching order rows.
  • Left Anti gives the one C05 order.
  • Right Anti gives the one C04 customer.
  • Right Outer gives 5 rows: four matches and C04.
  • Full Outer gives 6 rows: four matches plus both unmatched rows.

The right table has only 4 rows, yet Right Outer produces 5 after expansion because C01 matches two orders. Counting distinct matching keys alone misses repeated observations.

Read nulls and anti-join results

An unmatched outer-join row has nulls for the missing side's fields. Null here means no match; it does not mean an amount of zero. A label such as “Unknown customer” can make that gap visible without claiming a customer was found.

For invoices 101 through 106 and payments for 101, 102, 104 and 106, Left Anti with Invoices first finds unpaid invoices 103 and 105. Its nested payment tables contain no matches and can be removed. With Right Anti, the unmatched second-table rows are in the nested column; expand that column to see them.

Swapping the inputs reverses left and right. Left Outer with Orders first answers the same retention question as Right Outer with Orders second, though the initial columns are arranged differently.

Use row counts to detect unwanted multiplication

For expanded results, Left Outer has at least as many rows as the left table. If the right key is unique, it has exactly the left table's row count. Inner cannot exceed Left Outer for the same inputs and keys. Full Outer has at least as many rows as either input.

More rows than expected often point to duplicate matches. Fewer rows may reflect Inner or Anti logic, an earlier filter, or missing source data. Compare the intended retained population with the actual result before summing its amounts.

Key Takeaways

  • Left and right mean first and second in the Merge dialog.
  • Outer joins preserve the named side; Inner retains only matches.
  • Anti joins find missing matches on the named side.
  • Expand a Right Anti result to see the unmatched right records.
  • Predict expanded row counts, including repeated matches.
5

Refresh results and repair changing sources

A working query needs to keep working after a file moves, a field changes name or another person opens the workbook. Refresh settings control when Excel rereads the sources and when reports see the new rows. When something fails, the first failing step tells you where to look. Shared source locations, parameters and suitable privacy settings make the preparation easier to maintain across the team.

5.1 Refresh the query and the reports that use it

A refresh reads the current source, runs the saved steps and replaces the loaded result. The finished table is a query output, so its refresh behavior differs from an ordinary area where you type values freely.

Refresh the right result

Right-click a query in Queries & Connections, or its loaded table, and select Refresh. In Excel for Windows, Alt+F5 refreshes the selected connection and Ctrl+Alt+F5 runs Data > Refresh All. Refresh All includes the workbook's queries, connections and PivotTables that are configured to participate.

Refreshing a combined query recomputes the input queries it needs. Connection-only inputs do not need worksheet tables for their changed rows to reach the final result.

Home > Refresh Preview in the editor updates the editor's view. The already loaded worksheet table changes when the query itself refreshes or when you use Close & Load after editing. Seeing new rows in the editor alone does not mean a report on the sheet has those rows.

Choose when Excel refreshes

Open a query's Properties in Queries & Connections:

SettingBehavior
Refresh every … minutesRepeats refresh while the workbook remains open
Refresh data when opening the fileRefreshes when the workbook opens
Enable background refreshLets you keep working while data loads
Refresh this connection on Refresh AllControls whether Refresh All includes it

With a 15-minute interval after opening at 09:00, expect refreshes around 09:15, 09:30 and 09:45. This setting does not schedule Excel to run with the workbook closed. A refresh also needs the source to be reachable and its credentials to work.

Let dependent reports see the new rows

A PivotTable built on a loaded table keeps its own cached data. It needs a refresh after the table is updated. During background refresh, a PivotTable can refresh before the query has finished, leaving the report on old values.

Turn off Enable background refresh for the feeding query so Refresh All waits, or refresh the PivotTable after the query completes. If it still shows old figures, inspect the query's loaded table and refresh status before changing transformation steps.

Keep lasting changes in the right place

Values typed into the query-loaded rows are replaced at refresh. Put recurring changes into query steps, or correct the source when it is wrong. A properly added worksheet calculated column can remain and fill into new rows; it is different from manually overwriting imported values.

After refreshing, check Queries & Connections for row counts and errors. A combined folder result expected to contain 1,595 rows should be investigated if it loads only a few hundred. Check source selection, filters and joins before trusting its totals.

Windows refreshes its supported connectors. Mac refreshes the sources it supports, and Excel for the web supports fewer source types. A browser cannot read a path that exists only on your computer. Connect online refresh sources through supported reachable locations, such as a OneDrive or SharePoint web address, with each user's own access permissions.

Key Takeaways

  • Refresh reruns preparation and replaces the loaded result.
  • Refresh Preview changes the editor view, not the loaded worksheet table.
  • Interval refresh works while the workbook is open.
  • Refresh a dependent PivotTable after its feeding query finishes.
  • Check row counts and errors before using refreshed results.

5.2 Find the first failure and repair its cause

A refresh error can stop a whole step or affect individual cells. Find where it begins before changing the query. Selecting steps from the top shows the last successful result and the first failing operation.

Match the error to its cause
Error reasonFirst check
DataSource.NotFoundFile name, path and access from this computer
Expression.Error about a columnSource headers and the first step naming that column
DataFormat.ErrorThe value, target type and conversion locale
Formula.FirewallHow sources are combined and their privacy settings

If Qty was renamed to Quantity in the source, Changed Type may be the first failing step. Update its column reference, then inspect later renames and formulas too. A cell-level conversion error leaves other rows available; a step-level error stops the query's result. Use Keep Errors to inspect affected rows instead of replacing every problem with zero.

Repair locations and centralize settings

For a moved file, use Data > Get Data > Data Source Settings > Change Source, or the gear beside Source. Update the connection without rebuilding the cleaning steps.

A path in a person's Downloads folder is local. A synced OneDrive path is also local even though the file is synchronized. A shared network path must be reachable by each user. For OneDrive or SharePoint files, use a supported web connection or SharePoint Folder connection. When copying a workbook path through File > Info > Copy path, remove the final “?web=1” before using the file address with From Web. Each person needs access and their own credentials.

A parameter holds a reusable value, such as FolderPath. Create it through Home > Manage Parameters > New Parameter, choose a suitable type and enter the path. Then make the relevant Source steps use that parameter. Creating a parameter alone does not replace literal paths already embedded in queries.

Build around expected changes

Use Remove Other Columns when new source fields should be ignored, then assign types only to the columns retained. Use Unpivot Other Columns when new period columns should join the rows. Split variable lists into rows. Filter a folder's extension before combining so an unexpected workbook is not read as CSV. An exclusion filter can retain future valid statuses that a fixed inclusion list would drop.

Protect source information and repair access

Privacy levels control isolation between sources: Private for confidential information, Organizational for trusted-group data, Public for openly shareable data, and None for no classification. Under Data Source Settings > Edit Permissions, set the level that matches each source. Keep privacy protection enabled for sensitive sources. Excel for Mac does not support privacy levels.

A Formula.Firewall error can arise when one query both accesses a source and references other queries. Read each source in a separate query, then combine those queries in another query and check their privacy settings.

Credentials are separate from the privacy level. Under Edit Permissions, update the relevant Anonymous, Windows, Basic, Web API or Organizational account authentication. Clear Permissions removes stored credentials so Excel can ask again. A correct password does not repair a missing column; a correct column name does not grant access. Before changing a shared query, inspect View > Query Dependencies to see its downstream results.

Key Takeaways

  • Distinguish cell errors from a step failure and find the first failing step.
  • Update moved sources without rebuilding their transformations.
  • Use reachable shared locations with each user’s own credentials.
  • A parameter changes sources only after the Source steps use it.
  • Choose steps that handle expected new columns, periods and files.
  • Privacy levels govern source isolation; credentials govern access.

Power Query examples

5 Walkthroughs

1

Import a service log that can grow

12 steps
Read a text export correctly, then extend the import to recurring files and a web source.
  1. 1
    IntroductionStart with the source and a saved recipe

    A service team exports job records each week. The report needs the current records, readable location names and intact job codes. Power Query can connect once, prepare the fields and repeat that preparation on later data.

    Start by checking how one file is read. Once its layout is understood, the same reading pattern can serve a folder of compatible exports.

  2. 2
    AnalogySave the recipe, then change the ingredients

    Think of the query as a recipe whose ingredients come from the connected source. A filter or type conversion is a preparation step. Refresh supplies the current ingredients and follows the steps again.

    Removing a field from the prepared result leaves the original export intact. This lets the reporting table use a smaller selection while the team keeps its complete source record.

  3. 3
    ChallengePredict what the next refresh reads

    The source gains four completed jobs and one training job. The saved query excludes training jobs. No existing record changes. How many new rows reach the refreshed result?

    ---reveal---

    Four. Refresh reads the five additions, then applies the saved filter. The training record remains in the source but is excluded from the output; the query is not a stored copy of last week’s rows.

  4. 4
    ExampleChoose how fields are separated

    The UTF-8 export contains the line “2026-06-08;Zürich;018;7,5”. In From Text/CSV, choose Semicolon as the delimiter. The preview should show four fields: date, location, job code and hours.

    A comma delimiter would split the hours value and leave semicolons inside another field. The correct column boundaries must be established before interpreting the values within them.

  5. 5
    TipCheck letters and codes separately

    Check File Origin as well as the delimiter. UTF-8 preserves “Zürich”; the wrong encoding can damage the accented letter.

    Choose Transform Data and inspect the automatic types. The code “018” needs Text before conversion. Hours text “7,5” needs an appropriate comma-decimal locale. Fixing the separator alone does not settle either of these type choices.

  6. 6
    ChallengeRepair a title above workbook headers

    A second source is a worksheet with one title row, then the real headers. Automatic Promoted Headers and Changed Type used the title. What sequence repairs it?

    ---reveal---

    Delete both automatic steps, remove the top title row, promote the actual headers and set types. Leaving the old type step in place can retain references to title-based column names. Selecting a defined source table would avoid importing that title area.

  7. 7
    ExplanationFilter a folder while it is still a file list

    Weekly exports now arrive in one folder. From Folder lists files, including files in subfolders. Before combining, use Transform Data to inspect Name, Extension and Folder Path.

    Keep the intended paths and CSV extension, normalizing its case so “.CSV” is accepted too. The filtering step acts on file records before the shared reader encounters unrelated workbook or archive contents.

  8. 8
    ExampleApply a preparation step to every file

    Choose Combine Files with a representative export. Power Query creates helper queries that apply one reading pattern to every included file.

    If each export has a title line, remove it in Transform Sample File before promoting headers. Removing a title row only after the files are stacked would affect just the start of the combined result, leaving later files’ titles in the data.

  9. 9
    Key InsightKeep a route back to the original file

    The combined output can keep Source.Name, such as “jobs_2026-06.csv”. That field shows which file supplied a row. Extract the period from it if the export has no period column.

    Compare column names across the files too. The example file sets the expanded column list, so a new field found only in a later file may be absent even when that file’s existing fields appear correctly.

  10. 10
    ExplanationRead a web table or a download

    On Windows, From Web can read a public page table or a direct CSV or workbook URL. Choose suitable authentication, then inspect Navigator. A visible table assembled by page scripts may not appear there.

    A web query depends on the page or download keeping a usable structure. After refresh, inspect the output columns and row count. Mac does not offer the From Web connector.

  11. 11
    ChallengeChoose a repeatable route for new exports

    A correctly filtered folder has compatible files with 86 and 94 data rows. A third compatible file adds 73 rows. How should it enter the report, and what count should be expected?

    ---reveal---

    Refresh the existing folder query after saving the file in the included location. The expected combined count is 253 rows. Keep Source.Name to verify that the new file contributed its 73 rows, then inspect any filters that act after combining.

  12. 12
    RecapCheck the import before trusting the output

    For a text file, verify encoding, field boundaries and types in the preview. For a workbook, select its actual data object or remove report decoration before assigning headers.

    For recurring files, filter the folder list and apply per-file changes through the sample transformation. Finish by checking the loaded columns, expected rows and source labels so the saved connection is ready for the next export.

2

Trace an equipment query from source to outputs

11 steps
Inspect profiles and step dependencies, then create shared preparation with suitable load destinations.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionInspect the result and the recipe together
  2. 2
    ExplanationRead the selected stage of the query
  3. 3
    ExampleCheck an identifier across the full column
  4. 4
    ChallengeKeep both a code and its prefix
  5. 5
    ExampleFind the first broken reference
  6. 6
    TipInsert a fix where it can help
  7. 7
    ChallengeRepair an M name without changing the data
  8. 8
    ConnectionGive shared cleaning one place to live
  9. 9
    ExampleLoad the reports, keep the helper available
  10. 10
    ChallengeApply one fix to both reports
  11. 11
    RecapInspect dependencies before changing a shared step
3

Clean shipment data and reshape weekly readings

18 steps
Set meaningful types, apply text and row transformations, and turn a wide weekly report into a long table.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake the values and rows mean what they should
  2. 2
    ExplanationAssign types from meaning
  3. 3
    ExampleInterpret a date before formatting it
  4. 4
    ChallengeKeep an unknown mass out of an average
  5. 5
    ExplanationSelect columns before their types
  6. 6
    ExampleClean comparison values first
  7. 7
    ChallengeCheck a filter against a future status
  8. 8
    ExampleReplace a whole code without altering words
  9. 9
    ExplanationSplit a list without fixing its width
  10. 10
    TipFill only the intended missing labels
  11. 11
    ChallengeConvert a mass while keeping the original
  12. 12
    ExplanationRecognize the identifier and the measurements
  13. 13
    ExampleCount the observations that really exist
  14. 14
    Key InsightMake a new week part of the same field
  15. 15
    ChallengeChoose how two readings share a pivot cell
  16. 16
    ConnectionCheck a reshape with several earlier choices
  17. 17
    ChallengeDiagnose too many values after reshaping
  18. 18
    RecapVerify the prepared table’s meaning
4

Combine deliveries and match depot details

14 steps
Append delivery batches, prepare a depot lookup and compare join results, including duplicate matches.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionChoose rows or matching fields
  2. 2
    ExampleAlign names before stacking
  3. 3
    TipKeep the batch origin visible
  4. 4
    ChallengeAccount for a repeated delivery row
  5. 5
    ExplanationPrepare keys on both sides
  6. 6
    ExampleMerge, then bring out the needed field
  7. 7
    Key InsightOne lookup key can produce several matches
  8. 8
    ChallengeMatch a depot for a particular date
  9. 9
    ExplanationKeep the population the report needs
  10. 10
    ExampleCount both sides of a full join
  11. 11
    TipReveal the unmatched records on the right
  12. 12
    ChallengeAudit both gaps after the inputs change
  13. 13
    ConnectionCheck row totals after attaching names
  14. 14
    RecapVerify the combination at each boundary
5

Refresh a shared report and trace its failures

10 steps
Update loaded results, handle dependent reports and repair moved sources, changed fields and privacy problems.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTreat refresh as a new run of preparation
  2. 2
    ExplanationRefresh the table, then its report
  3. 3
    TipChoose an interval that matches workbook use
  4. 4
    ChallengeLocate which view is still old
  5. 5
    ExampleRepair a moved source at the connection
  6. 6
    ExampleTrace a renamed field to the first failure
  7. 7
    ConnectionConnect a parameter to the steps that use it
  8. 8
    ChallengeKeep confidentiality while fixing a combine
  9. 9
    ChallengeChoose the next check from the observed failure
  10. 10
    RecapCheck source, steps and dependent outputs

Power Query practice questions

50 Practice Questions in 5 sets

Set 1: Read sources and choose preparation steps10 Practice Questions

Question 1 of 10

An analyst removes a Phone column in Power Query and loads the result. What happens to Phone in the original workbook?
  1. It is deleted from the source workbook.
  2. It remains in the source workbook.
  3. It is replaced by null in the source.
  4. It moves to a separate source worksheet.
Show answerHide answer
Answer: B
A query transforms the data it returns without editing the original workbook. Removing Phone changes the query result only. Deleting the source column is a different action and would require changing the source itself.

Question 2 of 10

A UTF-8 text file contains “2026-08-10;Málaga;84,25”. The preview splits the amount and shows the city as “Málaga”. What import settings address both problems?
  1. UTF-8 file origin and comma delimiter.
  2. Western European file origin and semicolon delimiter.
  3. Western European file origin and comma delimiter.
  4. UTF-8 file origin and semicolon delimiter.
Show answerHide answer
Answer: D
UTF-8 reads the accented character correctly, and a semicolon separates the three fields without splitting the decimal comma. Correcting only the delimiter leaves the damaged city text. The amount will still need a suitable locale when converted to a number.

Question 3 of 10

A column contains the four text values “R”, “R”, “S” and “T”. What distinct and unique counts does its distribution show?
  1. 3 distinct and 2 unique.
  2. 3 distinct and 3 unique.
  3. 4 distinct and 2 unique.
  4. 2 distinct and 3 unique.
Show answerHide answer
Answer: A
The different values are R, S and T, so there are three distinct values. Only S and T occur once, giving two unique values. Counting all three different values as unique overlooks that R occurs twice.

Question 4 of 10

A query renames Units to Quantity, then calculates [Quantity] * [Price]. The rename step is deleted. Why does the calculation now fail?
  1. The source values have changed to Text.
  2. The deleted step removed the Price column.
  3. The later formula still refers to Quantity.
  4. The query now returns only its Source step.
Show answerHide answer
Answer: C
Deleting the rename leaves the original column called Units, while the later formula still requests Quantity. Restore the rename or update that formula’s column reference. The deletion does not itself change the column’s data type or remove Price.

Question 5 of 10

A membership ID contains “00087”. Which type preserves this ID as supplied?
  1. Whole Number.
  2. Decimal Number.
  3. Text.
  4. Fixed Decimal Number.
Show answerHide answer
Answer: C
Text preserves all five characters, including the leading zeros. A numeric type treats the value as the number 87 and loses those zeros. The ID identifies a member; it is not a quantity to add or average.

Question 6 of 10

A query must return only AssetID and Location, even if future exports add fields. Which column-selection action fits that requirement?
  1. Select those fields and use Remove Other Columns.
  2. Select unwanted fields and use Remove Columns.
  3. Move those fields before the unwanted columns.
  4. Rename unwanted fields before loading the table.
Show answerHide answer
Answer: A
Remove Other Columns records AssetID and Location as the keep list, so newly arriving fields stay out. Remove Columns records only the fields discarded today; later additions can pass through. Moving columns changes their order without excluding them.

Question 7 of 10

A Category column contains “Hardware”, null, empty text, and “Software”, in that order. What happens when Fill Down is applied directly?
  1. The null and empty text both become Hardware.
  2. The null stays null; the empty text becomes Hardware.
  3. The null and empty text both become Software.
  4. The null becomes Hardware; the empty text stays empty.
Show answerHide answer
Answer: D
Fill Down copies the preceding value into null cells, so the second row becomes Hardware. Empty text is an existing text value and remains unchanged. Replacing empty text with null first would allow it to be filled too.

Question 8 of 10

One query has columns Item and Units; another has Units and Item. Their column names match exactly. How does append align them?
  1. By column position, regardless of their name.
  2. By column name, regardless of their order.
  3. By values in the first row of each column.
  4. By the data type of each selected column.
Show answerHide answer
Answer: B
Append aligns Item with Item and Units with Units because the column names match. Reversing their positions in an input does not change that alignment. Matching by position would place quantities under item names, which is not how append works.

Question 9 of 10

An exact merge should match the same item ID in both tables. One contains text “p08 ” and the other contains text “P08”. What preparation makes these keys equal?
  1. Trim both keys and apply the same letter case.
  2. Convert both keys to Text without changing values.
  3. Rename both key headers to the same column name.
  4. Lower the fuzzy threshold while keeping exact merge.
Show answerHide answer
Answer: A
Trimming removes the end space, and using one letter case removes the capitalization difference. The keys are already text, so setting Text alone leaves both differences intact. Matching headers is unnecessary; the selected key values determine an exact merge.

Question 10 of 10

A workbook uses a query-loaded table for a PivotTable. After Refresh All, the query shows 940 current rows but the PivotTable still shows its old figures. The query refreshed in the background. What action fixes the report and addresses this timing issue?
  1. Refresh Preview in the editor after the query finishes; keep background refresh enabled.
  2. Refresh the query again after it finishes; leave the PivotTable’s cached data unchanged.
  3. Refresh the PivotTable after the query finishes; disable query background refresh for future runs.
  4. Load the query as connection-only after it finishes; keep the PivotTable’s old cache.
Show answerHide answer
Answer: C
The table already has current data, so the remaining stale result is the PivotTable’s cache. Refresh it after the query completes. Turning off background refresh for the feeding query helps Refresh All wait for the new rows; Refresh Preview updates neither that cache nor the loaded table.
Set 2: Check layouts, locales and matching rows10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Every workbook in a folder has one title row above its headers. The combined result repeats those title rows between files. Where should the title-row removal be added?
  1. In the final combined query after all files are stacked.
  2. In the folder list by removing its first listed file.
  3. In Transform Sample File before its headers are promoted.
  4. In the loaded worksheet after the query has completed.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Another workbook contains a defined table called Deliveries and a report sheet with titles and totals. What should Navigator select to read the table’s own headers and rows?
  1. The Deliveries table.
  2. The report worksheet.
  3. The whole workbook file list.
  4. The folder’s Binary content list.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two output queries must inherit future corrections made in a shared Clean Assets query. How should those outputs start?
  1. As Duplicates of Clean Assets.
  2. As copies of its loaded worksheet values.
  3. As separate imports with copied steps.
  4. As References to Clean Assets.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A file uses British day/month/year text. How should “07/09/2026” be converted to obtain the intended date?
  1. Date using English (United States), giving July 9.
  2. Date using English (United Kingdom), giving September 7.
  3. Text using English (United Kingdom), giving September 7.
  4. Date using English (United Kingdom), giving July 9.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A wide budget table has Department, Jan, Feb and Total. One Feb amount is null, and Mar will be added next month. A long result must contain only period observations and include Mar automatically. What preparation fits?
  1. Remove Total, keep Department as the identifier, and unpivot the other columns.
  2. Keep Total, select Jan and Feb, and use Unpivot Only Selected Columns.
  3. Remove Total, select Jan and Feb, and use Unpivot Only Selected Columns.
  4. Keep Total, keep Department as the identifier, and unpivot the other columns.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A 14-row query has Amount, while a 9-row query calls the same field Value. Both must form one Amount column in a 23-row list. What change is needed before append?
  1. Move Value to match Amount’s column position.
  2. Rename Value to Amount in the second query.
  3. Merge the two queries using Amount and Value.
  4. Replace nulls in Amount after the append.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A Requests table has two rows for key K2 and one row for K9. A Contacts table has three rows for K2 and no row for K9. After a Left Outer merge and expansion, how many rows appear?
  1. 3 rows.
  2. 6 rows.
  3. 7 rows.
  4. 9 rows.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

With Shipments first and Receipts second, which join finds shipments with no matching receipt?
  1. Right Anti.
  2. Inner.
  3. Right Outer.
  4. Left Anti.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A query is set to Refresh every 20 minutes. Its workbook closes at 16:00 and opens again the next morning. What happens during the closed interval?
  1. The query refreshes every 20 minutes and saves each result to the closed workbook.
  2. The interval setting does not run refreshes while the workbook is closed.
  3. The query refreshes once after closing and waits for the workbook to reopen.
  4. The query checks the source every 20 minutes but loads only when reopened.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A source file moved, and refresh reports DataSource.NotFound. The file’s columns are unchanged. What should be updated first?
  1. The locale in the Changed Type step.
  2. The join kind in the last merge step.
  3. The table destination in Close & Load To.
  4. The file path in Source or Data Source Settings.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Trace changes through the query result10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A query filters out rows whose Status is “Test”. Its source gains five rows: three “Live” and two “Test”. No existing rows change. What happens to its result after refresh?
  1. It gains five rows and the source keeps all five additions.
  2. It gains three rows and deletes the two Test rows from the source.
  3. It gains no rows because the saved query retains the old result.
  4. It gains three rows and the source keeps all five additions.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A folder query reads matching CSV exports. A subfolder holds an old archive, new files may use “.CSV”, and an unrelated workbook has appeared. How should the file list be prepared to include only current CSV exports?
  1. Filter the intended Folder Path and keep Extension exactly equal to “.csv”.
  2. Filter the intended Folder Path and lowercase Extension, keeping only “.csv”.
  3. Lowercase Extension and keep “.csv” across every listed Folder Path.
  4. Keep the intended Folder Path and remove the currently listed workbook by name.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Column quality reports no errors using the top 1,000 rows, but loading the 6,800-row result reports conversion errors. How can the editor’s profile examine those later values?
  1. Select Refresh Preview while keeping the 1,000-row profile.
  2. Switch the column from Whole Number to Any.
  3. Switch column profiling to the entire dataset.
  4. Sort the column without changing the profiling scope.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A helper query contains 1,300,000 rows and feeds two output queries. One output has 400 rows for worksheet use; the other needs the full result in the Data Model. What loading plan fits?
  1. Keep the helper connection-only, load 400 rows to a table, and load the full output to the Data Model.
  2. Load the helper to a table, keep the 400-row output connection-only, and load the full output to the Data Model.
  3. Keep the helper connection-only, load both outputs to tables, and hide the larger output’s sheet.
  4. Load the helper to the Data Model, then load both outputs to tables on separate worksheets.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

After lowercase normalization, a query uses each [Status] <> "void". A future export adds “pending review”. How does this saved filter treat the new status?
  1. It drops pending review because it was absent from the preview.
  2. It retains pending review because it excludes only void.
  3. It changes pending review to void before filtering.
  4. It errors because the new status was not explicitly listed.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A Tags field is split at every semicolon into three named output columns. New source values can have five tags. What change keeps every tag without a fixed-width list?
  1. Keep three output columns and set each to Text.
  2. Use Extract First Characters on the Tags field.
  3. Replace the semicolons with spaces before loading.
  4. Split the Tags field into rows at the delimiter.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A two-department table has Apr and May values 40, null for one department and 55, 65 for the other. It is unpivoted. Jun is later added with 30 and null, then refreshed through Unpivot Other Columns keeping Department. What are the final row count and amount total?
  1. 4 rows totaling 190.
  2. 6 rows totaling 190.
  3. 3 rows totaling 160.
  4. 4 rows totaling 160.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A master asset list is the first merge table and Inspection Log is second. The task is to list log entries whose AssetID is absent from the master. Which join and reveal action fit?
  1. Left Anti, then remove the nested log column.
  2. Right Outer, then expand all logged and matched rows.
  3. Right Anti, then expand the nested log column.
  4. Inner, then expand the nested master columns.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

The editor shows new source rows after Refresh Preview, but the existing loaded worksheet table is unchanged. What needs to happen to update the table?
  1. Run Refresh Preview again before closing the editor window.
  2. Turn on the formula bar while the final step is selected.
  3. Refresh the query itself or use Close & Load after editing.
  4. Switch profiling from the first 1,000 rows to the entire dataset.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

FolderPath has been changed to a shared directory, but one query still reads its old local path. Its Source formula contains the old path as literal text. Why did changing the parameter not redirect it?
  1. That Source step does not reference FolderPath.
  2. A parameter affects only the load destination.
  3. The source must have different column names.
  4. The old path is kept until every step is deleted.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Diagnose combined preparation problems10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A query’s filter must be changed so the change repeats each month. Where should the change be made?
  1. In the query’s recorded filter step.
  2. In the loaded table’s visible rows.
  3. In a copied range beside the output.
  4. In the source sheet’s cell formatting.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A worksheet import promoted its report title as the header and then added Changed Type. The real headers are below two title rows. What repair sequence restores useful data without stale header references?
  1. Delete Promoted Headers only, remove two top rows, then keep Changed Type unchanged.
  2. Keep both automatic steps, remove two top rows, then rename the resulting columns.
  3. Delete both automatic steps, remove two top rows, promote headers, then assign types.
  4. Delete Changed Type only, promote headers again, then remove the two top rows.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A query removes duplicates before trimming a Location column. It keeps both “Depot” and “Depot ”. What order makes them compare as the same value?
  1. Sort Location before removing duplicates on Location.
  2. Trim Location before removing duplicates on Location.
  3. Rename Location before removing duplicates on Location.
  4. Remove duplicates twice before trimming Location.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A code column contains “0042”; a British date column contains “11/08/2026” and “27/08/2026”. Automatic conversion used Whole Number and a US date locale. What repair preserves the intended values?
  1. Change Code back to Text after conversion and format Date as day/month/year on the sheet.
  2. Keep Code numeric; replace the date error with null and retain the successfully parsed date.
  3. Return before conversion; set both columns to Text and use the US locale for Date.
  4. Return before conversion; set Code to Text and convert Date using the British locale.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A query replaces “Rd” with “Road” in an address-type column, but longer text values containing “Rd” must stay unchanged. Which setting limits the replacement to the code itself?
  1. Split at right-most delimiter.
  2. Detect Data Type for column.
  3. Match entire cell contents.
  4. Lowercase after replacement.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A wide table has Team, Q1, Q2 and Total. Each of two teams has two reported values. After unpivoting the measurement columns and summing Value, the result is exactly twice the sum of the four quarter values. What explains the result and repairs it for future quarters?
  1. Nulls became zero; replace those zeros with null and retain the Total attribute.
  2. Total became an attribute; remove it and dynamically unpivot the remaining quarters.
  3. Team was repeated; remove duplicate Team rows after unpivoting all measurements.
  4. Unpivot converted values to text; change Value to Number and retain Total.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A long table has two rows for the same Team and Month, with Hours of 6 and 9. Pivot Column must return their total in that Team–Month cell. What setting fits?
  1. Hours as values with Sum aggregation.
  2. Hours as values with Don’t Aggregate.
  3. Month as values with Count aggregation.
  4. Hours as values with Average aggregation.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two location queries contain 17 and 12 rows, including two rows present identically in both. One uses Qty and the other Quantity; neither has a location label. The report needs every supplied row, one quantity column and visible origins. What preparation fits?
  1. Align quantity names, add location labels, then append and deduplicate using the original business fields.
  2. Align quantity names, then append without adding a location label to either input.
  3. Keep both quantity names, add a location column in each input, then append without deduplication.
  4. Align quantity names, add a location column in each input, then append without deduplication.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Tasks has two distinct tasks for text owner key “d4 ” and one for “E6”. Owners has two conflicting assignments for “D4” and one for “E6”. After trimming, uppercase normalization and Left Outer expansion, the report has five rows. It needs one verified owner record per key. What should be investigated?
  1. Remove duplicate owner keys and assume the retained assignment is correct.
  2. Remove duplicate owner keys from Tasks before performing the lookup merge.
  3. Change Left Outer to Inner while retaining both D4 owner assignments.
  4. Resolve the conflicting D4 owner records before the lookup merge.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A workbook’s source replaced the header Hours with WorkHours. Refresh fails at Changed Type with an Expression.Error naming Hours. What should be checked next?
  1. The credentials for the unchanged source address only.
  2. The first type step and later steps that still name Hours.
  3. The table’s number format on the loaded worksheet only.
  4. The refresh interval and background-refresh properties only.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Plan resilient imports and verify final results10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Every CSV in a folder has two title rows. The combined result still contains later files’ titles. A new file adds Notes, which the report must now retain, but the current example lacks it. What changes fit the revised report?
  1. Remove two rows after combining; use the new example and check expansion includes Notes.
  2. Remove title rows in Transform Sample File; retain the original expanded column list.
  3. Remove title rows in Transform Sample File; use the new example and check expansion includes Notes.
  4. Remove two rows after combining; retain the original expanded column list.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A query types every source column, then keeps only RecordID and Mass. The source removes an unused Comment field and refresh fails. It may add other unused fields later. What step design meets the report’s needs?
  1. Remove Comment by name first, then type RecordID and Mass.
  2. Type every source field first, then keep only RecordID and Mass.
  3. Keep RecordID and Mass first, then retain the old type step naming every source field.
  4. Keep RecordID and Mass first, then type those retained fields.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A manager needs a branch of a query to keep its own current preparation while another branch continues inheriting shared cleaning changes. Which pairing fits?
  1. Reference for independent preparation; Duplicate for inherited changes.
  2. Duplicate for independent preparation; Reference for inherited changes.
  3. Duplicate for both branches so each inherits later cleaning changes.
  4. Reference for both branches so neither inherits later cleaning changes.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

MassG contains German text “2.450,50” and the marker “missing”. The result needs MassKg as numbers and an average of reported masses in kilograms. What preparation fits?
  1. Replace the marker with null, convert using German (Germany), then divide by 1000.
  2. Replace the marker with 0, convert using German (Germany), then divide by 1000.
  3. Replace the marker with null, convert using English (United States), then divide by 1000.
  4. Replace the marker with null, convert using German (Germany), then multiply by 1000.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A stock query removes duplicates using only ItemID. Several records for one ItemID have different dates and quantities. Why can the surviving row not be assumed to be the newest?
  1. Remove Duplicates always retains the oldest record for the key.
  2. Remove Duplicates combines all quantities into a single latest record.
  3. Remove Duplicates compares every field even when only ItemID is selected.
  4. Remove Duplicates does not guarantee which record it retains.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An analyst needs the full InvoiceCode and its first three characters in the result. Which tab’s Extract command keeps the original code?
  1. Add Column.
  2. Transform.
  3. View.
  4. Home > Remove Rows.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A source contains Entity, current period columns and Comment. It will add more period columns. Its long output must contain Entity, Period and Reading, including those new periods. What design meets the requirement?
  1. Keep Comment, then use Unpivot Other Columns with Entity selected.
  2. Remove Comment, then use Unpivot Only Selected Columns on today’s periods.
  3. Remove Comment, then use Unpivot Other Columns with Entity selected.
  4. Remove Comment, then use Unpivot Other Columns with today’s periods selected.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Bookings has Site text such as “n2 ” and British day/month/year date text such as “05/08/2026”. Capacity has “N2” and typed dates, with several dates per site and several sites per date. Capacity is unique by Site plus Date. How should Bookings be prepared and merged to attach the correct daily capacity without extra rows?
  1. Trim and standardize Site case, convert dates using the US locale, then pair Site and Date in matching order.
  2. Trim and standardize Site case, convert dates using the British locale, then pair Site and Date in matching order.
  3. Trim and standardize Site case, convert dates using the British locale, then match on Site alone.
  4. Trim and standardize Site case, convert dates using the British locale, then reverse the key-field order on one side.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Open Jobs, first, has keys J1, J1, J3 and J8. Dispatch Register, second, has J1, J2 and J3 once each. What are the expanded Full Outer row count and the keys found by Right Anti?
  1. 5 rows; J2 only.
  2. 4 rows; J2 only.
  3. 5 rows; J8 only.
  4. 6 rows; J2 and J8.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two correctly authenticated sources fail to combine with Formula.Firewall. One query reads a source directly and references another source query. What repair should be tried while preserving confidentiality?
  1. Mark both sources Public regardless of their contents and keep the existing structure.
  2. Clear all column types and keep accessing both sources in the same query.
  3. Read sources separately, combine their queries in another query, and check privacy levels.
  4. Load both sources to worksheet tables and replace their credentials with Anonymous.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

90 Key Terms, each with its definition

A

Advanced Editor
The Advanced Editor is the window that shows a whole query as M code, including its named steps and the result returned after in.
Opening the Advanced Editor helps the analyst trace how the source result reaches the final step.
Any type
The Any type leaves a column without a specific assigned data type, so its final interpretation has not been made explicit.
Before loading, the analyst replaces Any with Text for codes and Decimal Number for measurements.
Append
Append stacks the rows of two or more tables and aligns their fields by exact column names, retaining repeated rows from the inputs.
Orders from two stores form one list even though their input columns appear in a different order.
Append Queries as New
Append Queries as New creates a separate stacked query result while leaving the existing input queries and their steps unchanged.
Two monthly helper queries remain available after a new combined quarter query is created.
Applied Steps
Applied Steps is the ordered list of a query’s operations, with each item available for inspecting its intermediate result.
The first failing item in Applied Steps still asks for a column name that the source export no longer uses.
Attribute
Attribute is the default unpivot output column containing the old measurement-column names, such as month names or reading categories.
Renaming Attribute to Month makes the period labels easier to recognize in the resulting long table.

B

Background refresh
Background refresh lets an open workbook remain usable while a connection is updating, so dependent report timing needs attention.
A PivotTable can refresh too early when the query feeding its table is still loading in the background.
Binary
Binary is the Power Query type used to represent file contents as bytes, before those contents are read into fields and rows.
Each Content cell in the folder list holds the Binary file data that the combine process reads.

C

Cell-level error
A cell-level error marks an individual value that an operation could not process while other values in the column can remain valid.
One “unknown” entry becomes Error when a quantity column is converted to Whole Number.
Changed Type
Changed Type is a step that converts named columns to specified types and can fail when a referenced column disappears or changes name.
An unused field removed from the source breaks an early Changed Type step that still lists it.
Character encoding
A character encoding is the scheme used to represent written characters in a file, which the reader must interpret correctly.
Choosing the file’s UTF-8 encoding restores the accented letters in the imported location names.
Clean
Clean is a text transformation that removes nonprinting characters, such as line breaks, from the values in a selected column.
The analyst uses Clean on imported labels containing hidden line breaks from the original report.
Column quality
Column quality is a profiling view that reports the shares of valid, error and empty values within the current profiling scope.
A two-percent error share prompts the analyst to inspect the values that failed number conversion.
Column-name alignment
Column-name alignment is append’s matching of input fields by their exact names, including capitalization and spaces, instead of position.
Renaming Qty to Quantity aligns both inputs in one measure column before the rows are stacked.
Conditional Column
A Conditional Column is a new field whose values are determined by if-then-else rules built from conditions on other columns.
A rule labels orders “Bulk” when Quantity is at least 100 and labels the remaining orders “Standard”.
Connector
A connector is the source-specific route Power Query uses to open and read data, such as From Text/CSV or From Workbook.
The analyst chooses the workbook connector to select a defined table from another Excel file.
Credentials
Credentials are the authentication details used to access a source, stored separately from the privacy settings for combining its data.
After an account change, the analyst updates credentials without rebuilding the existing cleaning steps.
Custom Column
A Custom Column is a new field calculated with an M expression using row values, constants or other supported operations.
The expression [Units] * [UnitPrice] creates a line amount while preserving the two input columns.

D

Data preview
The data preview is the editor’s working display of the table at the selected step, which may show only a sample of the result.
Selecting an earlier step shows the columns before their rename, helping locate a later failure.
Data source
A data source is the original file, workbook table, folder or web location from which a query reads the data it will prepare.
The source workbook keeps its Notes column even though the reporting query removes that column.
Data Source Settings
Data Source Settings is the Excel area for managing query source locations, stored credentials and source privacy permissions.
When a source workbook moves, its path is updated through Change Source while the query’s transformation steps are retained.
Data type
A data type defines how Power Query interprets a column’s values for operations such as sorting, calculation, filtering and matching.
Setting Quantity to Whole Number enables numeric comparisons instead of character-by-character sorting.
Delimiter
A delimiter is the character separating fields in a text file or parts within a text value, such as a semicolon or tab.
A semicolon delimiter keeps a comma-decimal amount within one field when a text file is imported.
Distinct value
A distinct value is one of the different values present in a column, counted once regardless of how often it occurs there.
The values “Blue”, “Blue” and “Green” contribute two distinct values to the color column.
Duplicate
A Duplicate is an independent copy of a query and its current steps, which does not inherit later preparation edits in the original.
The analyst duplicates a query to develop a separate approach without changing the existing recipe.
Duration
A Duration is a value representing elapsed time, such as the interval obtained by subtracting one date or timestamp from another.
Subtracting the dispatch date from the arrival date produces a duration that can be expressed in days.

E

ETL
ETL is the sequence of extracting data from a source, transforming it into a useful form and loading the prepared result.
Importing a file, cleaning its dates and loading a table are the three stages of an ETL process.
Example file
An example file is the chosen sample whose layout defines how the folder-combine process reads and expands the included files.
A Notes field found only in a later export is absent from the example-based expansion list.
Exclusion filter
An exclusion filter removes specified unwanted values and can keep other values, including new categories, if they satisfy its condition.
Excluding “Cancelled” lets the query retain a new valid status without adding it to a keep list.
Extract
Extract is a group of text operations that returns a selected part of each value, such as characters before or after a delimiter.
Extracting the text after the last hyphen returns the serial suffix from an invoice reference.

F

Fill Down
Fill Down copies the preceding non-null value into following null cells until another value appears in the selected column.
The report’s category label is filled into its following item rows after empty text is made null.
Fixed Decimal Number
Fixed Decimal Number is a numeric type with four decimal places of fixed precision, also called Currency, for suitable amount calculations.
The analyst chooses Fixed Decimal Number for amounts that need consistent four-place decimal precision.
Folder connector
The Folder connector lists files and their metadata from a folder and its subfolders so their contents can be selected and combined.
Filtering Folder Path excludes archived exports before the remaining CSV files are combined.
Formula bar
The formula bar is the editor area that displays the M expression for the selected query step, making its operation visible.
The formula bar shows which previous step supplies the table to a column-removal operation.
Formula.Firewall
Formula.Firewall is an error reason associated with source-isolation rules or a query structure that mixes source access and query references.
Separate source queries and a dedicated combining query help resolve a data combination that fails with a Formula.Firewall error.
Full Outer join
A Full Outer join retains matching records and unmatched rows from both inputs, representing absent fields on the other side with nulls.
An audit built with a Full Outer join includes orders with unknown customers as well as registered customers with no orders.
Fuzzy matching
Fuzzy matching compares text for similarity so near spellings can match, with results controlled by a threshold and matching options.
Similar company names are reviewed after fuzzy merge because two near spellings may identify different firms.

I

Inclusion filter
An inclusion filter keeps only specified values or categories, excluding newly arriving values that are not part of its saved rule.
A filter accepting only “Ready” and “Sent” drops the new status “Held” until its rule changes.
Inner join
An Inner join retains only matching records and omits input rows whose selected key has no match in the other table.
Only orders with a matching customer record remain when the report uses an Inner customer join.
Interval refresh
Interval refresh reruns a connection after a specified number of minutes while the workbook remains open and the source is accessible.
A 30-minute interval does not update the workbook during the night after everyone has closed it.

K

Key
A key is a field or set of fields used to identify or match records, whose values must be prepared consistently for an exact merge.
Text product codes are trimmed and standardized to one letter case in both matching queries.

L

Left Anti join
A Left Anti join returns first-table rows with no matching key in the second table, making missing matches visible for investigation.
With Invoices first and Payments second, Left Anti lists invoices with no matching payment record.
Left Outer join
A Left Outer join retains every first-table row, with matching second-table records where available and nulls for the missing side.
All orders remain visible after a customer-name lookup, including an order whose customer ID is unknown.
Load destination
A load destination is the place or form in which a query’s result is made available, such as a worksheet table or the Data Model.
The final report query loads to a table while its shared cleaning helper stays connection-only.
Locale
A locale is a language-and-region setting that supplies the rules for interpreting date and number text during conversion.
English (United Kingdom) reads the source’s day/month/year dates as the intended calendar values.
Long table
A long table stores observations in rows, using an attribute field for the measurement category or period and a field for its value.
Region, Month and Sales form a long layout in which a new month contributes additional rows.

M

M
M is the case-sensitive formula language Power Query uses to define source connections, transformations and returned query results.
A misspelled capital letter in an M function name prevents a hand-edited step from running.
Merge
Merge joins queries by matching selected key values and produces nested matches that can be expanded into fields or aggregated.
The Orders query merges with Products to bring category information into each matching order record.
Merge Columns
Merge Columns joins selected text fields with a separator in their selection order, producing one combined text value per row.
Selecting First then Last with a space separator produces a full name in the intended order.
Multi-column key
A multi-column key matches records using a combination of fields selected in the same corresponding order in both merge tables.
Site and Date together match each booking with its daily capacity record instead of every site date.

N

Navigator
Navigator is the selection window that lists available source objects, such as workbook tables, named ranges, sheets or web tables.
The analyst selects the Deliveries table in Navigator and checks its preview before transforming it.
Nested table
A nested table is a table stored inside a cell, such as the collection of second-table records matched to one row by a merge.
Expanding the customer nested table reveals the Name field associated with each matched customer ID.
Null
Null represents the absence of a value in Power Query and differs from a known zero, an empty text string and an error.
A missing delivery mass remains null so an average of reported masses does not count it as zero.

O

Only Create Connection
Only Create Connection is a load option that keeps a query available as an input without displaying its rows in a worksheet table.
Two connection-only monthly queries supply the appended result that is loaded on the report sheet.
Origin column
An origin column is a field identifying where each row came from, such as its store or batch, which can be added before appending.
Adding “North” to one input and “South” to the other preserves the store identity in the combined list.

P

Parameter
A parameter is a named reusable value, such as a folder path, that query steps can reference so it can be changed in one place.
Updating FolderPath redirects only the Source steps that actually use that parameter’s value.
Pivot Column
Pivot Column turns values from one field into headers and places values from another field into the corresponding output cells.
The analyst pivots Month with Sales as values and chooses Sum when several rows share one month.
PivotTable cache
A PivotTable cache is its stored copy of source data, which must be refreshed after a query-loaded source table has changed.
The loaded table has current rows, but the PivotTable’s old cache explains why its figures are stale.
Power Query
Power Query is an Excel tool that connects to data, applies repeatable preparation steps and sends the result to a chosen destination.
A team uses Power Query to prepare each new export before its monthly workbook report is updated.
Privacy level
A privacy level classifies a source’s isolation needs, controlling whether data can be transferred between sources during a combination.
A confidential employee list is classified Private before it is combined with another query.
Profiling scope
Profiling scope is the set of rows used to calculate column statistics, such as the first 1,000 rows or the entire dataset.
Switching the profiling scope reveals duplicate IDs that occur after the initial thousand rows.
Promoted Headers
Promoted Headers is the step that uses the first row of the current table as its column names instead of keeping that row as data.
After two title rows are removed, Promoted Headers gives the query its actual field names.

Q

Query
A query is a saved connection and ordered set of transformations that prepares a result from the current source when it runs.
The Orders query reads the latest file and filters out training records before loading the table.
Query Dependencies
Query Dependencies is an editor view showing which queries supply other queries, helping identify outputs affected by a shared change.
The dependency view reveals that three report queries depend on the source about to be redirected.

R

Reference
A Reference is a query that begins from another query’s result, allowing later changes in that original preparation to flow into it.
Both report branches inherit a corrected cleaning step because they reference the same base query.
Refresh
Refresh reads current source data, reruns the saved query steps and replaces the loaded output with the newly computed result.
A compatible file added to the included folder contributes its rows when the final query refreshes.
Refresh Preview
Refresh Preview rereads source data for the editor’s working view without itself updating the query’s already loaded worksheet table.
The analyst sees new rows in the preview but still needs a query refresh to update the report table.
Remove Duplicates
Remove Duplicates keeps one row for each distinct combination of selected column values without guaranteeing which duplicate row survives.
Selecting OrderID alone removes repeated IDs even when their other fields contain different values.
Remove Other Columns
Remove Other Columns is a selection command that retains the specified column names and excludes other fields, including future additions.
Keeping RecordID and Amount stops a newly added Comment column from entering the finished report.
Right Anti join
A Right Anti join returns unmatched second-table records, which appear through the nested column in Power Query’s merge output.
Expanding the right-anti result reveals registered assets absent from the first-table inspection log.
Right Outer join
A Right Outer join retains every second-table row with matching first-table records, allowing several expanded rows for repeated matches.
A customer with two orders contributes two matched rows even though the customer key occurs once.

S

Similarity threshold
A similarity threshold is the minimum score accepted by fuzzy matching, ranging from 0 to 1, with lower values admitting weaker matches.
Reducing the threshold below its default 0.80 can add matches that require closer manual inspection.
Source.Name
Source.Name is a column in a combined file result that records the original file name associated with each contributed row.
The analyst filters Source.Name to trace an unusually large amount back to its monthly export.
Split into Rows
Split into Rows separates each part of a delimited value into its own row while repeating the remaining fields from that record.
A varying list of project tags becomes one row per tag without needing a fixed number of columns.
Step dependency
A step dependency is a reliance on an earlier result, including its columns and types, that must remain valid for a later step to work.
Deleting a rename breaks the later calculation because its requested field no longer exists.
Step-level error
A step-level error prevents a whole query operation from returning its result, stopping the query until that operation can succeed.
A missing-field error stops a Changed Type step before the final report can load any updated result.

T

Text type
The Text type stores values as character sequences, preserving names and codes whose digits are not intended for arithmetic.
Typing the identifier “00031” as Text preserves its leading zeros for the later exact merge.
Totals row
A totals row summarizes detail records and can double-count their values when it remains among the observations used in a later sum.
The import removes the export’s final Total line before the report sums the individual order amounts.
Transform Sample File
Transform Sample File is the helper query whose preparation steps define the changes applied to each file in a folder combine.
Removing a title row in Transform Sample File removes it separately from every included workbook.
Transformation
A transformation is an operation recorded in a query that changes its working result, such as filtering rows or splitting a column.
Renaming Qty to Quantity is a transformation that later steps can refer to by its new name.
Trim
Trim is a text transformation that removes whitespace at the start and end of a value while preserving spaces inside it.
Trimming customer codes removes their trailing spaces before an exact comparison with lookup keys.
Type detection
Type detection is Power Query’s process of guessing column types from inspected values when reading a source or checking a column.
The detected numeric type is changed to Text before the import loses the product codes’ leading zeros.

U

Unique value
A unique value is a value that occurs exactly once within the profiled column, so repeated values do not count as unique.
In “Blue”, “Blue” and “Green”, only Green is unique because Blue appears in two records.
Unpivot
Unpivot converts selected measurement columns into attribute-value rows while repeating the retained identifier fields for each value.
The unpivot operation creates a row for each non-null region-month amount in the source report.
Unpivot Only Selected Columns
Unpivot Only Selected Columns transforms a fixed named list of measurement columns and leaves newly added columns outside that list.
A newly added June column stays separate when the saved step unpivots only April and May.
Unpivot Other Columns
Unpivot Other Columns retains selected identifier fields and turns all remaining columns into rows, including new columns on refresh.
Keeping Site lets a new weekly reading column join the existing readings in the Period and Value fields automatically.
Using Locale
Using Locale is a type-conversion command that lets you choose both the target data type and the regional format of the source text.
Using Locale converts a German comma-decimal text amount into a number without altering the source.

W

Web connector
The Web connector reads supported page tables or downloadable file contents from a web address using appropriate authentication.
A query uses a direct CSV download address so the next refresh reads the current published file.
Whole-cell replacement
Whole-cell replacement changes a value only when its entire contents match the search text, preventing changes inside longer strings.
The code “St” becomes “Street” while the longer text “Stone Rd” remains intact with this setting.
Wide table
A wide table stores repeated measurements in separate columns, such as one sales column for each month alongside an identifier.
Adding another month to the source report adds another measurement column to its wide layout.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started