Power Query Helper

Get ready-to-paste Power Query (M) code for the reshapes people do every week.

Pick a job (unpivot, split a column, remove duplicates, filter, set types, group and summarise, merge two tables, append tables, clean text, skip report header rows, combine every CSV in a folder, or replace values), fill in your table and column names, and get a complete query to paste into the Advanced Editor. Every step comes with a plain-English note.

Price
Free
Your data
Never sent
Runs
In your browser

or drag it here

· up to 50 MB · processed locally, never uploaded

Files stay on your device

What it does well

  • 12 common reshapes as complete let … in queries
  • Column names quoted correctly, including spaces and keywords
  • A note for every step, with the gotchas (case-sensitive duplicates, duplicate keys in merges)
  • Works in Excel 2016 and later, Microsoft 365 and Power BI Desktop

How to use Power Query Helper

  1. 1

    Choose what you want to do.

  2. 2

    Enter your Excel table name and the column names the step needs.

  3. 3

    Press Generate.

  4. 4

    In Excel: Data → Get Data → From Other Sources → Blank Query → Advanced Editor, paste, and press Done.

Learn more

Common problems and fixes

Expression.Error: The key didn’t match any rows in the table.

The table name is wrong. Click inside your data, open Table Design and copy the name from Table Name.

Expression.Error: The column … of the table wasn’t found.

A column name differs from your data, often by a space or capital letter. Names in M are case-sensitive.

Frequently asked questions

More formulas tools

Describe what you need in plain English and get a working formula, or paste an existing one to see it explained and audited step by step.

Browse Formulas