Power Query is the data preparation engine built into Excel and Power BI. Instead of cleaning a report by hand every week, you connect to a source such as a CSV, a folder of files, a database or a web page, and record transformations like removing columns, changing data types, splitting text, unpivoting and merging tables. Each action becomes a step in the Applied Steps pane, written behind the scenes in a language called M, and the whole sequence reruns when you click Refresh. Learnr builds a Power Query course around the files you actually work with, in short lessons that each teach one transformation.
How to learn Power Query, step by step
- Load a messy file and watch the steps. In Excel, use Data, Get Data, From File to open a CSV, then click Transform Data. Remove a column, filter rows and change a type, and watch each action appear in Applied Steps, where you can rename or delete it.
- Set data types deliberately. Check every column type, especially dates and decimals, because a wrong type breaks merges and calculations later. Learn how locale settings affect date parsing when files come from other countries.
- Master unpivot. Take a report with one column per month and use Unpivot Other Columns to turn it into tidy rows of item, month and value. This single move fixes many spreadsheets that are impossible to pivot or chart properly.
- Merge and append tables. Use Merge Queries to look up values from another table and learn the join kinds: left outer, inner, full outer and anti joins. Use Append Queries to stack tables with the same columns, such as monthly exports.
- Combine a whole folder of files. Point the Folder connector at a directory of similar files and combine them in one query. Drop a new file into the folder, click Refresh and watch it flow into your report without any manual copying.
- Open the Advanced Editor and practice often. Read the M code your clicks generated, then try small edits such as adding a parameter for a file path. Brief daily Learnr practice keeps join kinds and reshaping moves easy to recall.
What you'll learn
- Import data from files, folders, workbooks and databases with Get Data
- Clean data by setting types, splitting columns, filling down and removing errors
- Reshape tables with unpivot, pivot and group by
- Combine tables with merge for joins and append for stacking
- Read and edit M code in the Advanced Editor and use parameters
How long does it take to learn Power Query?
Most Excel users can handle everyday cleaning and combining tasks after 1 to 3 weeks of practice at a few hours a week. Comfort with M code, custom functions, parameters and query folding usually takes another 1 to 2 months.
What you need before you start
Comfortable Excel basics, including tables and simple formulas. Power Query is included in current Windows versions of Excel and in Power BI Desktop, and recent Mac versions support a growing part of it.
Common mistakes to avoid
- Cleaning the loaded worksheet by hand after the query runs, which gets overwritten on the next refresh. Do every change inside Power Query.
- Letting an automatic Changed Type step lock in column names, so the query breaks when the source file adds or renames a column.
- Merging on columns with stray spaces or mismatched case, then wondering why rows do not match. Trim and clean keys before joining.
How Learnr builds your course
Type your topic
Tell Learnr you want to learn Power Query, or get as specific as you like.
Get a personalized course
Learnr instantly builds a full Power Query course tailored to your goal and skill level.
Learn and level up
Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.
Power Query questions, answered
Is Power Query the same in Excel and Power BI?
The engine and the M language are the same, and most steps work identically. The difference is where results go: Excel loads them to sheets or the data model, while Power BI loads them into its model for reports.
Do I need to learn the M language?
Not to start. The interface writes M for you. Learning to read and lightly edit it helps when you need parameters, custom functions or a fix the buttons cannot make.
What is query folding?
When connected to a database, Power Query can translate your steps into a query the source runs itself, which is much faster on large data. Some steps break folding, so order matters with databases.
Explore more courses
More data and ai courses
- Learn SQL Window Functions
- Learn Google Analytics
- Learn Data Science
- Learn Statistics
- Learn Artificial Intelligence
- Learn Machine Learning
- Learn Prompt Engineering
- Learn Deep Learning
Ready to learn Power Query?
Start your free, personalized Power Query course in seconds. It will be typed in and ready when you get there.
Start learning Power QueryFree to start. No credit card.