Power Query – Summary and Exercises: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Module 6: Summary and Final Exercises = | |||
== Objective == | |||
In this final module, you'll apply the knowledge from previous modules in a guided challenge. | |||
The goal is to consolidate your skills using real-world data transformation scenarios. | |||
== Files Used == | |||
* [[Media:Sales_January.xlsx|Download Sales_January.xlsx]] | |||
* [[Media:Sales_February.xlsx|Download Sales_February.xlsx]] | |||
* [[Media:Employees.csv|Download Employees.csv]] | |||
== Final Exercise – Sales Data Cleanup and Analysis == | |||
'''Goal:''' Combine two months of sales data, clean it, and calculate total revenue per region. | |||
'''Steps:''' | |||
# Load both '''Sales_January.xlsx''' and '''Sales_February.xlsx''' into Power Query | |||
# Combine them using '''Append Queries''' | |||
# Remove unnecessary columns | |||
# Ensure data types are correct (e.g. Date, Text, Whole Number) | |||
# Group data by '''Region''' and calculate total sales | |||
# Sort results by descending revenue | |||
== Final Exercise – Employee Filtering and Export == | |||
'''Goal:''' Filter active employees from the HR system and export the data. | |||
'''Steps:''' | |||
# Load '''Employees.csv''' into Power Query | |||
# Remove unnecessary columns | |||
# Filter rows where '''Status''' equals '''Active''' | |||
# Rename columns as needed | |||
# Load the cleaned data into a new worksheet | |||
== Optional Bonus Task == | |||
Try to convert the combined sales data to a PivotTable using Power Pivot: | |||
* Load the combined query to the Data Model | |||
* Add a calculated measure (e.g. Total Revenue) | |||
* Use PivotTable to analyze revenue by Region and Product | |||
---- | |||
Return to [[Power_Query_–_Basic|Main Page]] | Return to [[Power_Query_–_Basic|Main Page]] | ||
Revision as of 09:18, 19 June 2025
Module 6: Summary and Final Exercises
Objective
In this final module, you'll apply the knowledge from previous modules in a guided challenge. The goal is to consolidate your skills using real-world data transformation scenarios.
Files Used
Final Exercise – Sales Data Cleanup and Analysis
Goal: Combine two months of sales data, clean it, and calculate total revenue per region.
Steps:
- Load both Sales_January.xlsx and Sales_February.xlsx into Power Query
- Combine them using Append Queries
- Remove unnecessary columns
- Ensure data types are correct (e.g. Date, Text, Whole Number)
- Group data by Region and calculate total sales
- Sort results by descending revenue
Final Exercise – Employee Filtering and Export
Goal: Filter active employees from the HR system and export the data.
Steps:
- Load Employees.csv into Power Query
- Remove unnecessary columns
- Filter rows where Status equals Active
- Rename columns as needed
- Load the cleaned data into a new worksheet
Optional Bonus Task
Try to convert the combined sales data to a PivotTable using Power Pivot:
- Load the combined query to the Data Model
- Add a calculated measure (e.g. Total Revenue)
- Use PivotTable to analyze revenue by Region and Product
Return to Main Page