Free course · 17 lessons

Free Power Query course for Excel

Import, clean and reshape data without formulas. Learn the Power Query editor step by step, then the M language, folder imports, merges and refreshable reports.

Start lesson 1

Beginner

  1. 1What is Power Query? Where it lives and which version you haveWhat Power Query is, the problems it solves, where to find it in Excel for Windows, Mac and the web, and how versions differ.14 min
  2. 2Getting data: files, folders, tables, web pages and databasesConnect Power Query to workbooks, CSV files, folders, Excel tables, web pages and databases, choose Load or Transform, and set privacy levels.16 min
  3. 3The Power Query Editor: steps, formula bar and data typesFind your way around the Power Query Editor: ribbon tabs, Applied Steps, the formula bar, column profiles, data types and the Advanced Editor.15 min
  4. 4Cleaning text and numbers in Power QueryTrim, clean, change case, replace values, extract parts of text, convert text to numbers with the right locale and fix errors, all as repeatable steps.16 min
  5. 5Splitting and merging columnsSplit columns by delimiter, number of characters, positions or character transitions, split into rows, and merge columns with a separator.14 min
  6. 6Filtering, sorting and removing rows and columnsRemove header junk and blank rows, fill down group labels, filter text, numbers and dates, remove duplicates and sort, in a way that survives refresh.15 min

Intermediate

  1. 7Unpivot and pivot: reshaping tablesTurn cross-tab reports with one column per month into tidy lists with Unpivot, and turn lists back into columns with Pivot Column, with the right options.16 min
  2. 8Group By: totals, counts and the All Rows trickSummarise rows with Group By: sums, averages, counts and distinct counts by one or more columns, plus All Rows to keep details such as the latest order.15 min
  3. 9Append queries: stacking tablesStack monthly or regional tables with Append Queries, handle columns that do not match, tag each row with its source and append every table in a workbook.14 min
  4. 10Merge queries: every join kind explainedJoin two queries on matching keys with Merge Queries: Left, Right, Full Outer, Inner, Left Anti and Right Anti, multi-column keys and fuzzy matching.18 min
  5. 11Combine files from a folderStack every CSV or Excel file in a folder into one table, understand the helper queries, clean each file, keep the file name and avoid common traps.18 min
  6. 12Custom and conditional columnsAdd calculated columns with the Conditional Column dialog and with Custom Column formulas in M: if/then/else, text tests, nulls, try/otherwise, index columns.17 min

Advanced

  1. 13The M language: let, steps, lists, records, tables and eachRead and write Power Query M: let/in, step names, values, lists, records and tables, item and field access, functions, each and the underscore.22 min
  2. 14Parameters and custom functionsMake queries flexible with parameters from Manage Parameters or worksheet cells, turn a query into a function, and call it on every row or file.20 min
  3. 15Dates, durations and a calendar tableExtract years, months and weeks, calculate durations and ages, handle ISO weeks and fiscal years, and build a dynamic calendar table in M.20 min
  4. 16Performance, query folding and refresh optionsMake queries refresh faster: query folding and View Native Query, step order, Table.Buffer, loading to the Data Model, and every refresh setting.20 min
  5. 17Project: a self-updating monthly sales reportBuild a complete monthly sales report: combine a folder of exports, clean them, add product data and targets, check for gaps and refresh with one click.35 min