Power Query Basics
Import, clean, and transform raw data from any source automatically using Power Query.
✅ What You Will Learn
Power Query is Excel built-in ETL (Extract, Transform, Load) tool. It lets you connect to a data source, clean and reshape the data using a visual interface, and load the result into Excel as a table. Every step you take is recorded and can be replayed with one click whenever the source data updates.
This is fundamentally different from manual data cleaning with formulas. With formulas, you clean data once and the formulas sit alongside it. With Power Query, you define a series of steps once and can refresh the entire process with a single click — even when the source file has thousands of new rows added.
Power Query is available in Excel 2016 and later under the Data tab (Get Data group). In Excel 2010 and 2013 it can be installed as a free add-in from Microsoft.
Examples
📌 Key Points to Remember
- ✓Power Query is non-destructive — it never changes the source file; it only reads from it
- ✓Each transformation step is recorded and replayable — edit any step in the Applied Steps pane
- ✓Data tab → Refresh All re-runs the entire query on the latest source data
- ✓Power Query M language runs behind the scenes — the visual interface generates the code automatically
- ✓Connect to multiple files in one folder (Get Data → From Folder) to combine monthly files automatically
🏢 Real-World Application
Analysts at logistics companies receive daily CSV exports from their warehouse system — each file has 50,000 rows of raw order data with inconsistent formatting. Using Power Query, the analyst built a one-time cleanup process (remove blank rows, fix date formats, split a combined address column). Now every morning they click Refresh All and the clean, analysis-ready table updates in 10 seconds. What used to take 45 minutes of manual cleanup per day is now a single button press.
⚠️ Common Mistakes to Avoid
❓ Frequently Asked Questions
Is Power Query available in all Excel versions?
Power Query is built into Excel 2016 and later (Data tab → Get Data). For Excel 2010 and 2013, download the free Power Query add-in from Microsoft. It is not available in Excel for Mac before 2019.
What is the difference between Power Query and VLOOKUP/formulas?
Formulas transform data cell by cell. Power Query transforms the entire dataset at once, records every step, and can re-run the entire process on updated data with one click. For recurring imports and cleanups, Power Query is far more efficient.
Can Power Query connect to live databases?
Yes — Power Query can connect to SQL Server, MySQL, Oracle, Azure, and many other sources directly via Get Data → From Database. Changes in the database are pulled on Refresh.
✏️ Practice Exercise
Download any public CSV dataset (e.g. from data.gov.in or Kaggle). Import it into Excel using Power Query. In the Power Query Editor: remove any columns you do not need, fix data types for numeric and date columns, remove blank rows, rename at least three columns, and filter out any rows where the key metric is null or zero. Load the clean data to a new sheet.
Learn Excel with Live Trainer Guidance
These tutorials give you the foundations. Our live Excel course at EVIKA Academy, Noida teaches you to build real dashboards on actual business data — with a trainer who uses Excel professionally every day.