Importing, Combining and Refreshing Data with Power Query
IntermediateLesson 1 of 7 in Data Analysis with Spreadsheets Course
What you will learn
- 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 worksDescribe 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 workbookUse 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 webUse 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.
- Explain what Power Query does and how a query works
- 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 EditorName 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 stepsChange, rename, move and delete steps safely, understand why their order matters, and read a query in the Advanced Editor.
- Load query results and organize queriesChoose where each query's result goes, manage queries in the Queries & Connections pane, and reuse queries with Duplicate and Reference.
- Find your way around the Power Query Editor
- 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 formatsChoose 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 rowsRemove 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 columnsFormat, 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 backRecognize wide and long layouts, choose the right unpivot command so new columns are handled on refresh, and use Pivot Column for the reverse.
- Set the right data type for every column, including regional formats
- 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 columnsStack 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 columnsJoin 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 questionUse 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.
- Append tables that share the same columns
- 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 optionsRefresh one query or the whole workbook, set automatic refresh options, and know what a refresh keeps and replaces.
- Keep queries working when sources changeRead refresh errors, point queries to moved sources, use parameters, set privacy levels and credentials, and build queries that survive new files and columns.
- Refresh queries and set refresh options
Power Query study guide
1Bring 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:
| Setting | What it controls | What to check |
|---|---|---|
| File Origin | Character encoding | Names and accented letters are readable. |
| Delimiter | Where fields separate | Each field lands in its intended column. |
| Data Type Detection | How types are guessed | Codes 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:
- Delete the automatic Promoted Headers and Changed Type steps if they used the title as the header.
- Use Home > Remove Rows > Remove Top Rows and remove 2 rows.
- Choose Use First Row as Headers.
- 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.
2Control 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:
| Tool | What it tells you |
|---|---|
| Column quality | Shares of valid, error and empty values |
| Column distribution | Counts of distinct and unique values |
| Column profile | Detailed 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:
- Source reads a file with a Qty column.
- Promoted Headers sets its column names.
- Changed Type assigns types.
- Renamed Columns changes Qty to Quantity.
- 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.
| Destination | Use |
|---|---|
| Table | Work with the prepared rows on a sheet. |
| PivotTable Report | Start a summary directly from the result. |
| Only Create Connection | Keep a helper query available to other queries. |
| Data Model | Store 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.
3Give 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.
| Type | Typical use |
|---|---|
| Text | Names, identifiers and codes such as “00123” |
| Whole Number | Counts of items |
| Decimal Number | Measurements and fractional quantities |
| Fixed Decimal Number | Amounts requiring four decimal places of fixed precision |
| Percentage | Numeric proportions displayed as percentages |
| Date, Time, Date/Time | Calendar dates, clock times or both |
| Date/Time/Timezone | A date and time with a time-zone offset |
| Duration | Elapsed time between values |
| True/False | Logical flags |
| Binary | File 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:
| Command | What you select | What future period columns do |
|---|---|---|
| Unpivot Columns | The current measurement columns | Join the unpivoted rows |
| Unpivot Other Columns | The identifier columns | Join the unpivoted rows |
| Unpivot Only Selected Columns | A fixed measurement list | Stay 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:
| Region | Jan | Feb | Mar | Apr |
|---|---|---|---|---|
| North | 120 | 135 | 128 | 140 |
| South | 95 | 102 | null | 110 |
| West | 80 | 84 | 91 | 88 |
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.
4Stack 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 difference | Append result | Preparation |
|---|---|---|
| Same names, different order | Shared columns align | No reordering is required. |
| Quantity versus Qty | Separate columns | Rename to a shared name. |
| A field exists in one input only | Nulls for the other input | Keep it if the absence is meaningful. |
| Same field, different types | Values need a consistent type | Assign 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 kind | Rows kept |
|---|---|
| Left Outer | Every left row, with right matches where available |
| Right Outer | Every right row, with left matches where available |
| Full Outer | All matched and unmatched rows from both sides |
| Inner | Matching rows only |
| Left Anti | Left rows with no right match |
| Right Anti | Right 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.
5Refresh 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:
| Setting | Behavior |
|---|---|
| Refresh every … minutes | Repeats refresh while the workbook remains open |
| Refresh data when opening the file | Refreshes when the workbook opens |
| Enable background refresh | Lets you keep working while data loads |
| Refresh this connection on Refresh All | Controls 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 reason | First check |
|---|---|
| DataSource.NotFound | File name, path and access from this computer |
| Expression.Error about a column | Source headers and the first step naming that column |
| DataFormat.Error | The value, target type and conversion locale |
| Formula.Firewall | How 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
1Import a service log that can grow
12 steps
- 1IntroductionStart 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.
- 2AnalogySave 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.
- 3ChallengePredict 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.
- 4ExampleChoose 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.
- 5TipCheck 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.
- 6ChallengeRepair 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.
- 7ExplanationFilter 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.
- 8ExampleApply 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.
- 9Key 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.
- 10ExplanationRead 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.
- 11ChallengeChoose 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.
- 12RecapCheck 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.
2Trace an equipment query from source to outputs
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionInspect the result and the recipe together
- 2ExplanationRead the selected stage of the query
- 3ExampleCheck an identifier across the full column
- 4ChallengeKeep both a code and its prefix
- 5ExampleFind the first broken reference
- 6TipInsert a fix where it can help
- 7ChallengeRepair an M name without changing the data
- 8ConnectionGive shared cleaning one place to live
- 9ExampleLoad the reports, keep the helper available
- 10ChallengeApply one fix to both reports
- 11RecapInspect dependencies before changing a shared step
3Clean shipment data and reshape weekly readings
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake the values and rows mean what they should
- 2ExplanationAssign types from meaning
- 3ExampleInterpret a date before formatting it
- 4ChallengeKeep an unknown mass out of an average
- 5ExplanationSelect columns before their types
- 6ExampleClean comparison values first
- 7ChallengeCheck a filter against a future status
- 8ExampleReplace a whole code without altering words
- 9ExplanationSplit a list without fixing its width
- 10TipFill only the intended missing labels
- 11ChallengeConvert a mass while keeping the original
- 12ExplanationRecognize the identifier and the measurements
- 13ExampleCount the observations that really exist
- 14Key InsightMake a new week part of the same field
- 15ChallengeChoose how two readings share a pivot cell
- 16ConnectionCheck a reshape with several earlier choices
- 17ChallengeDiagnose too many values after reshaping
- 18RecapVerify the prepared table’s meaning
4Combine deliveries and match depot details
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose rows or matching fields
- 2ExampleAlign names before stacking
- 3TipKeep the batch origin visible
- 4ChallengeAccount for a repeated delivery row
- 5ExplanationPrepare keys on both sides
- 6ExampleMerge, then bring out the needed field
- 7Key InsightOne lookup key can produce several matches
- 8ChallengeMatch a depot for a particular date
- 9ExplanationKeep the population the report needs
- 10ExampleCount both sides of a full join
- 11TipReveal the unmatched records on the right
- 12ChallengeAudit both gaps after the inputs change
- 13ConnectionCheck row totals after attaching names
- 14RecapVerify the combination at each boundary
5Refresh a shared report and trace its failures
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTreat refresh as a new run of preparation
- 2ExplanationRefresh the table, then its report
- 3TipChoose an interval that matches workbook use
- 4ChallengeLocate which view is still old
- 5ExampleRepair a moved source at the connection
- 6ExampleTrace a renamed field to the first failure
- 7ConnectionConnect a parameter to the steps that use it
- 8ChallengeKeep confidentiality while fixing a combine
- 9ChallengeChoose the next check from the observed failure
- 10RecapCheck source, steps and dependent outputs
Power Query practice questions
Set 1: Read sources and choose preparation steps10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
[Quantity] * [Price]. The rename step is deleted. Why does the calculation now fail?Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
each [Status] <> "void". A future export adds “pending review”. How does this saved filter treat the new status?Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Advanced Editor
Any type
Append
Append Queries as New
Applied Steps
Attribute
B
Background refresh
Binary
C
Cell-level error
Changed Type
Character encoding
Clean
Column quality
Column-name alignment
Conditional Column
Connector
Credentials
Custom Column
[Units] * [UnitPrice] creates a line amount while preserving the two input columns.D
Data preview
Data source
Data Source Settings
Data type
Delimiter
Distinct value
Duplicate
Duration
E
ETL
Example file
Exclusion filter
Extract
F
Fill Down
Fixed Decimal Number
Folder connector
Formula bar
Formula.Firewall
Full Outer join
Fuzzy matching
I
Inclusion filter
Inner join
Interval refresh
K
Key
L
Left Anti join
Left Outer join
Load destination
Locale
Long table
M
M
Merge
Merge Columns
Multi-column key
N
Navigator
Nested table
Null
O
Only Create Connection
Origin column
P
Parameter
Pivot Column
PivotTable cache
Power Query
Privacy level
Profiling scope
Promoted Headers
Q
Query
Query Dependencies
R
Reference
Refresh
Refresh Preview
Remove Duplicates
Remove Other Columns
Right Anti join
Right Outer join
S
Similarity threshold
Source.Name
Split into Rows
Step dependency
Step-level error
T
Text type
Totals row
Transform Sample File
Transformation
Trim
Type detection
U
Unique value
Unpivot
Unpivot Only Selected Columns
Unpivot Other Columns
Using Locale
W
Web connector
Whole-cell replacement
Wide table
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.