Power Query – Importing and Managing Data: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Module 2: Importing and Managing Data = == Objective == In this module, you'll learn how to import data from various sources and manage basic data loading settings in Power Query. == Files Used == * Download Sales_January.xlsx * Download Sales_February.xlsx * Download Employees.csv * Download ProductList.txt == Importing Data from Excel == '''Steps:''' # Open..." |
|||
Line 53: | Line 53: | ||
You’ll later learn how to join data sources together using merges and appends. | You’ll later learn how to join data sources together using merges and appends. | ||
For now, make sure you have both Sales and Employees queries loaded. | For now, make sure you have both Sales and Employees queries loaded. | ||
---- | |||
Return to [[Power Query – Basic Level|Main Page]] | |||
→ Continue to [[Power Query – Data Transformation|Module 3: Data Transformation Techniques]] |
Revision as of 17:48, 18 June 2025
Module 2: Importing and Managing Data
Objective
In this module, you'll learn how to import data from various sources and manage basic data loading settings in Power Query.
Files Used
- Download Sales_January.xlsx
- Download Sales_February.xlsx
- Download Employees.csv
- Download ProductList.txt
Importing Data from Excel
Steps:
- Open Excel
- Go to the Data tab → Get Data → From File → From Workbook...
- Select Sales_January.xlsx and click Import
- In the Navigator window, select the sheet and click Transform Data
- The data will open in Power Query Editor
Importing Data from CSV
Steps:
- Go to the Data tab → Get Data → From File → From Text/CSV
- Select Employees.csv
- Review the preview window, then click Transform Data to load it into Power Query
Importing Multiple Excel Files
Scenario: You want to combine all monthly sales files into a single dataset.
Steps:
- Place all monthly files (e.g. Sales_January.xlsx, Sales_February.xlsx) in one folder
- Go to the Data tab → Get Data → From File → From Folder
- Browse to the folder containing the Excel files
- Click Transform Data
- In Power Query Editor:
- Click Combine → Combine & Transform Data
- Select the sheet to combine from each file
- Power Query will generate a sample query and combine all files into one table
Importing from a Text File
Steps:
- Go to the Data tab → Get Data → From File → From Text/CSV
- Select the file ProductList.txt
- Choose delimiter: Tab
- Click Transform Data to edit it in Power Query
Managing Queries
In Power Query Editor, you can:
- Rename queries (right-click query name → Rename)
- Disable load (right-click query → uncheck Enable Load to Worksheet)
- View query dependencies: go to the View tab → click Query Dependencies
Merging Queries (Preview)
You’ll later learn how to join data sources together using merges and appends. For now, make sure you have both Sales and Employees queries loaded.
Return to Main Page
→ Continue to Module 3: Data Transformation Techniques