Power Query Overview & Importing Data from Multiple Sources
Power Query (accessed via Data > Get Data) is Excel’s built-in ETL (Extract, Transform, Load) engine. It eliminates tedious manual copy-pasting and repetitive weekly data cleanup by recording transformation steps into an automated, repeatable data pipeline.
1. The ETL Philosophy of Power Query
Visual Architecture Blueprint
+-------------------+ +-------------------+ +-------------------+
| 1. EXTRACT (Get) | ---> | 2. TRANSFORM | ---> | 3. LOAD |
| Pull raw data | | Clean, reshape, | | Output to Excel |
| from CSV, Web, SQL| | unpivot, filter | | Table or Data |
| or Folder. | | in Power Query. | | Model. |
+-------------------+ +-------------------+ +-------------------+
The Transformational Advantage:
When you perform data cleaning in traditional Excel (deleting columns, splitting text, replacing nulls), you must manually repeat those steps every week. In Power Query, your cleaning actions are recorded as a repeatable script in the M code language. Next month, you simply click Refresh, and all 25 cleanup steps execute in milliseconds!
Click to Zoom
Power Query and Data Transformation
2. Importing Data from Diverse Sources
Under Data > Get Data, you can connect to dozens of sources:
From File:
From Workbook: Import specific tables or sheets from other Excel files.
From Text/CSV: Ingest massive flat files without Excel’s 1,048,576 row limit freezing your machine.
From Folder: Ingest and consolidate dozens of monthly CSV or Excel files from a directory simultaneously!
From Database: Connect to Microsoft SQL Server, Access, Oracle, PostgreSQL.
From Online Services / Other: Ingest tables directly from Web URLs, SharePoint Lists, or OData feeds.
3. The Power Query Editor Interface
When you connect to data, clicking Transform Data opens the dedicated Power Query Editor window:
1
Queries Pane (Left): Lists all active queries in the workbook.
2
Data Preview Grid (Center): Shows a live preview of your transforming data.
3
Query Settings (Right):
Query Name: Descriptive table title (e.g., 'FactSales').
Applied Steps List: A sequential history of every transformation applied (e.g., Source, Promoted Headers, Changed Type, Filtered Rows).
1
Formula Bar (Top): Displays the underlying M language code for the selected step.
4. Closing and Loading
When transformations are complete:
Click Home tab > Close & Load:
Close & Load: Exports data into a fresh Excel Table on a new sheet.
Close & Load To...: Choose between:
Table: Standard sheet table.
Only Create Connection: Ingests data directly into the background memory without bloating sheet cells.
Add this data to the Data Model: Powers high-volume Power Pivot models!
Interactive Quiz• Knowledge Check
Multiple Choice Questions
Question 1
What does ETL stand for in modern data analytics?
Question 2
What is recorded in the 'Applied Steps' pane in the Power Query Editor?
Question 3
What programming language powers Power Query behind the scenes?
Question 4
What happens when you receive next month's sales CSV and need to apply the same 20 cleaning steps you did last month?
Question 5
Why would an analyst choose 'Only Create Connection' when loading a 5-million row database query?
Next Lesson
Data Transformation & Cleaning with Power Query
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.