Power Query – Importing and Managing Data: Difference between revisions

From Training Material
Jump to navigation Jump to search
No edit summary
Line 55: Line 55:


----
----
 
Return to [[Power_Query_–_Basic|Main Page]]
Return to [[Power Query – Basic Level|Main Page]]


→ Continue to [[Power Query – Data Transformation|Module 3: Data Transformation Techniques]]
→ Continue to [[Power Query – Data Transformation|Module 3: Data Transformation Techniques]]

Revision as of 17:49, 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

Importing Data from Excel

Steps:

  1. Open Excel
  2. Go to the Data tab → Get DataFrom FileFrom Workbook...
  3. Select Sales_January.xlsx and click Import
  4. In the Navigator window, select the sheet and click Transform Data
  5. The data will open in Power Query Editor

Importing Data from CSV

Steps:

  1. Go to the Data tab → Get DataFrom FileFrom Text/CSV
  2. Select Employees.csv
  3. 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:

  1. Place all monthly files (e.g. Sales_January.xlsx, Sales_February.xlsx) in one folder
  2. Go to the Data tab → Get DataFrom FileFrom Folder
  3. Browse to the folder containing the Excel files
  4. Click Transform Data
  5. In Power Query Editor:
    • Click CombineCombine & Transform Data
    • Select the sheet to combine from each file
  6. Power Query will generate a sample query and combine all files into one table

Importing from a Text File

Steps:

  1. Go to the Data tab → Get DataFrom FileFrom Text/CSV
  2. Select the file ProductList.txt
  3. Choose delimiter: Tab
  4. 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