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
Choose what you want to do.
- 2
Enter your Excel table name and the column names the step needs.
- 3
Press Generate.
- 4
In Excel: Data → Get Data → From Other Sources → Blank Query → Advanced Editor, paste, and press Done.
Learn more
- What is a macro in Excel, and how to enable one safely
A macro is a recorded or written set of steps Excel can repeat for you. Here is what that means in practice, how to run one, and how to tell whether it is safe to enable.
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