Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Power Query for Data Analysis ยท Lesson 4 of 17

Module Three

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Module 3 ยท Power Query โ€“ Combining & Shaping Data Like a Pro

๐Ÿ“Š Module 3: Power Query โ€“ Combining & Shaping Data Like a Pro

Hello, amazing data explorer! ๐Ÿ‘‹ You have already learned how to clean messy data in Modules 1 and 2. Now, we are going to become data shapers! Imagine you are a sculptor with a big block of clay. You can cut it, join pieces, and shape it into anything you want. Power Query lets you do the same with data. In this module, we will learn how to combine data from many different sources, shape it exactly the way we need, and even automate the whole process. By the end, you will be able to handle data like a true expert! Let's jump in! ๐ŸŠโ€โ™‚๏ธ


๐ŸŽฏ Learning Objectives

  • โœ… Combine data from multiple Excel files.
  • โœ… Combine data from different folders.
  • โœ… Use the "Combine Files" feature.
  • โœ… Create parameters to make your queries flexible.
  • โœ… Use functions to reuse steps.
  • โœ… Understand query dependencies.
  • โœ… Optimise query performance.
  • โœ… Create a dynamic data refresh.
  • โœ… Build a complete data transformation workflow.

๐Ÿ“– Warm-up Story: The School Project

In a big school in Abuja, Nigeria, the principal, Mrs. Okafor, needed to combine exam results from all 30 classes. Each class teacher had sent an Excel file with marks. Mrs. Okafor was worried because she had to open each file, copy the data, and paste them into one big sheet. That would take hours! Her son, Tunde, who was 11 years old and loved computers, said, "Mummy, let me try something." He used Power Query to combine all the files from a folder with just a few clicks. He also used a parameter so that if new files were added, the query would automatically include them. In just 5 minutes, Tunde had a complete master sheet with all the results. Mrs. Okafor was so proud! ๐Ÿ†

This module will teach you the magic Tunde used!


๐Ÿ“š Main Lessons

Lesson 1: Combining Data from Multiple Excel Files

Definition: Combining data from multiple files means taking information from several workbooks and putting it into one table.

Why important: Often data is split across many files (e.g., sales per month). Combining saves you from copying and pasting.

Simple explanation: It's like collecting all your Lego sets and putting all the bricks into one big box.

Real-life example: A shop owner has a separate Excel file for each day's sales. Power Query can combine them into one file.

School example: Your teacher has exam scores in separate files for each class. You can combine them.

Home example: Your family has a budget file for each year. You can combine them.

Nigerian example: A farmer has crop yield data for each month in separate files. Combine them to see the whole year.

Illustration:

   File1: Jan Sales   File2: Feb Sales   File3: Mar Sales
        \                  |                  /
         \                 |                 /
          V                V                V
         +-----------------------------------+
         |    Combined Sales (All Months)    |
         +-----------------------------------+

Mini summary: Combining files brings scattered data together.


Lesson 2: Combining Data from a Folder

Definition: This is a special feature where Power Query combines all files of a certain type (e.g., Excel or CSV) inside a folder.

Why important: It's super efficient โ€“ you don't even need to open the files.

Simple explanation: Like telling your friend to bring all the books from a shelf, not just one book.

Real-life example: You have a folder with 365 daily sales files. Power Query can combine them all.

School example: A folder with all student attendance sheets for the term.

Home example: A folder with photos (but for data, it's files!).

Nigerian example: A bank has transaction files for each branch in one folder.

Illustration:

   ๐Ÿ“ Folder
   โ”œโ”€โ”€ Jan.csv
   โ”œโ”€โ”€ Feb.csv
   โ”œโ”€โ”€ Mar.csv
   โ””โ”€โ”€ ...
   [Power Query] โ†’ One big table

Mini summary: Combining from a folder is like a bulk action.


Lesson 3: Using the "Combine Files" Feature

Definition: Power Query has a built-in button called "Combine Files" that does everything automatically.

Why important: It saves you from setting up steps manually โ€“ it's a shortcut.

Simple explanation: Like a one-click magic wand.

Real-life example: Click "Combine Files" and Power Query detects the structure.

School example: Combine all class files with one click.

Home example: Combine your allowance records.

Nigerian example: Combine branch sales files easily.

Illustration:

   Get Data โ†’ From Folder โ†’ Combine & Transform Data

Mini summary: "Combine Files" is a quick way to merge many files.


Lesson 4: Introduction to Parameters

Definition: A parameter is a value you can change easily, like a year or a product name, to make your query flexible.

Why important: Instead of editing the query every time, you change the parameter.

Simple explanation: Like a variable in a video game โ€“ you can change it to get different results.

Real-life example: Create a parameter for "Year" โ€“ change it from 2025 to 2026 and the query updates.

School example: Parameter for "Class" โ€“ change to see results for different classes.

Home example: Parameter for "Month" โ€“ change to see expenses for that month.

Nigerian example: Parameter for "Region" โ€“ change to see data for Lagos, Abuja, or Kano.

Illustration:

   Parameter: Year = 2025
   Query uses Year to filter data.
   Change to 2026 โ†’ Query updates automatically.

Mini summary: Parameters make queries dynamic and reusable.


Lesson 5: Creating Parameters in Power Query

Definition: You create a parameter by going to Home โ†’ Manage Parameters โ†’ New Parameter.

Why important: It's easy to do and very powerful.

Simple explanation: You name the parameter and give it a default value.

Real-life example: Parameter "MinSales" = 1000.

School example: Parameter "PassMark" = 70.

Home example: Parameter "Budget" = 5000.

Nigerian example: Parameter "State" = "Lagos".

Illustration:

   Manage Parameters โ†’ New
   Name: Year
   Type: Number
   Current Value: 2025

Mini summary: Creating parameters is simple and useful.


Lesson 6: Using Parameters in Your Queries

Definition: You can use parameters in filter, custom columns, or file paths.

Why important: This makes your query answer different questions without changing steps.

Simple explanation: Like using a variable in math โ€“ x + 2, where x is the parameter.

Real-life example: Filter sales where Year = [Year Parameter].

School example: Show only students with Score >= [PassMark].

Home example: Show expenses where Amount <= [Budget].

Nigerian example: Filter data for [State] = "Lagos".

Illustration:

   Filter Rows โ†’ Where [Year] = [YearParam]

Mini summary: Parameters let you control your query from one place.


Lesson 7: Introduction to Functions

Definition: A function is a reusable set of steps that you can apply to different data.

Why important: Instead of writing the same steps again and again, you use a function.

Simple explanation: Like a recipe that you can use for different ingredients.

Real-life example: A function that cleans any table you give it.

School example: A function to calculate total marks for any subject.

Home example: A function to convert currencies.

Nigerian example: A function to calculate VAT on any price.

Illustration:

   Function: CleanData (Input Table) โ†’ Returns Cleaned Table
   Apply to Table1, Table2, Table3.

Mini summary: Functions are reusable cleaning machines.


Lesson 8: Creating a Function

Definition: You create a function by writing M code, but Power Query can help you create it from a query.

Why important: You can automate repetitive tasks.

Simple explanation: You build a machine that does the same job on different inputs.

Real-life example: Create a function that removes duplicates from any table.

School example: Create a function that standardises names.

Home example: Create a function that categorises expenses.

Nigerian example: Create a function that formats phone numbers.

Illustration:

   Query1 (cleans data) โ†’ Convert to Function
   Name: CleanFunction
   Parameter: InputTable

Mini summary: Functions are custom tools you build.


Lesson 9: Using Functions in Queries

Definition: Once you have a function, you can invoke (call) it with different tables.

Why important: It saves time and ensures consistency.

Simple explanation: You call the function like you call a friend to help.

Real-life example: Invoke CleanFunction on SalesData.

School example: Invoke StandardiseName on student list.

Home example: Invoke CurrencyConverter on prices.

Nigerian example: Invoke PhoneFormatter on customer list.

Illustration:

   Invoke Custom Function โ†’ Select Function โ†’ Apply

Mini summary: Using functions is like delegating work.


Lesson 10: Query Dependencies

Definition: Dependencies show how queries are connected โ€“ which query uses which.

Why important: If you change one query, you know which others will be affected.

Simple explanation: Like a family tree โ€“ if grandma changes, everyone is affected.

Real-life example: Query A is used by Query B and C.

School example: ClassData is used by Report and Dashboard.

Home example: Expenses used by Summary and Chart.

Nigerian example: SalesData used by Profit and Revenue queries.

Illustration:

   [BaseData] โ†’ [CleanedData] โ†’ [FinalReport]
       |              |
       V              V
   [Backup]       [Summary]

Mini summary: Dependencies help you manage your queries.


Lesson 11: Optimising Query Performance

Definition: Optimising means making your query run faster and use less memory.

Why important: Large data can be slow โ€“ you want it to be quick.

Simple explanation: Like cleaning your room quickly by putting things in the right place.

Real-life example: Only load columns you need, not all columns.

School example: Only load the student names and scores, not their photos.

Home example: Only load the current year's expenses.

Nigerian example: Only load data for the current region.

Illustration:

   โœ… Good: Load only needed columns.
   โŒ Bad: Load all columns.

Mini summary: Optimisation makes queries faster.


Lesson 12: Dynamic Data Refresh

Definition: Dynamic refresh means your query updates automatically when the source data changes.

Why important: You always have the latest data without doing anything.

Simple explanation: Like a news ticker that updates automatically.

Real-life example: Sales data refreshes every morning.

School example: Attendance refreshes each period.

Home example: Budget refreshes when you add new expenses.

Nigerian example: Stock data refreshes every hour.

Illustration:

   Data Source โ†’ Power Query โ†’ Refresh (scheduled) โ†’ Updated Report

Mini summary: Dynamic refresh keeps data current.


Lesson 13: Building a Complete Workflow

Definition: A workflow is a series of steps from start to finish โ€“ load, clean, transform, combine, and output.

Why important: It gives you a structured way to handle data projects.

Simple explanation: Like a recipe โ€“ first gather ingredients, then chop, cook, and serve.

Real-life example: Load daily files โ†’ Clean โ†’ Combine โ†’ Generate report.

School example: Load class files โ†’ Standardise โ†’ Merge โ†’ Calculate averages.

Home example: Load receipts โ†’ Categorise โ†’ Summarise by month.

Nigerian example: Load branch data โ†’ Clean โ†’ Combine โ†’ Create dashboard.

Illustration:

   1. Get Data (from Folder)
          |
          V
   2. Combine Files
          |
          V
   3. Clean & Transform
          |
          V
   4. Group & Pivot
          |
          V
   5. Load to Excel

Mini summary: A workflow organises your entire data process.


Lesson 14: Error Handling

Definition: Error handling means managing problems when data is missing or in the wrong format.

Why important: Sometimes files are corrupt or have different structures โ€“ you can handle it gracefully.

Simple explanation: Like when you drop a glass, you clean it up instead of crying.

Real-life example: If a file is missing, Power Query can skip it and continue.

School example: If a student's data is missing, use a default value.

Home example: If a receipt is missing, estimate the amount.

Nigerian example: If a branch file is missing, use previous month's data.

Illustration:

   Try: Load File
   If error โ†’ Skip file

Mini summary: Error handling makes your queries robust.


Lesson 15: Documenting Your Queries

Definition: Documenting means adding notes or descriptions to your queries so others (or you) can understand them later.

Why important: After a few months, you might forget what a step does. Documentation helps.

Simple explanation: Like writing labels on storage boxes.

Real-life example: Add a comment in the M code: "This step removes duplicates".

School example: Write notes on your project steps.

Home example: Label your queries: "Jan Expenses", "Feb Expenses".

Nigerian example: Add comments to explain logic to colleagues.

Illustration:

   // This step splits Full Name into First and Last
   // This step filters out rows with missing values

Mini summary: Documentation helps you and others understand your work.


๐Ÿ“– Key Vocabulary (with simple definitions)

  • Combine: To bring together from different sources.
  • Folder: A place on your computer where files are stored.
  • Parameter: A value you can change to make your query flexible.
  • Function: A reusable set of steps.
  • Dependency: When one query uses another.
  • Optimise: To make faster and more efficient.
  • Dynamic Refresh: Automatic update of data.
  • Workflow: A series of steps from start to finish.
  • Error Handling: Managing problems gracefully.
  • Documentation: Adding notes to explain your work.

๐Ÿง  Important Concepts

  • Data integration is the process of combining data from different sources.
  • Automation reduces manual work and errors.
  • Flexibility is key โ€“ parameters and functions make queries adaptable.
  • Performance matters โ€“ always aim for fast queries.
  • Maintainability โ€“ document and structure your queries well.

๐Ÿ“ Step-by-Step Explanations

Combine Files from a Folder:

  1. Go to Data โ†’ Get Data โ†’ From File โ†’ From Folder.
  2. Browse to your folder and click OK.
  3. Power Query shows a list of files. Click "Combine & Transform Data".
  4. Select the sample file and click OK.
  5. Power Query combines all files automatically.

Create a Parameter:

  1. Go to Home โ†’ Manage Parameters โ†’ New Parameter.
  2. Name: "Year".
  3. Type: Number.
  4. Current Value: 2025.
  5. Click OK.

Use a Parameter in Filter:

  1. Select the column "Year".
  2. Click dropdown โ†’ Number Filters โ†’ Equals.
  3. In the value box, click the parameter icon (fx) and select "Year".

Create a Function from a Query:

  1. Right-click on the query in the Queries pane.
  2. Select "Create Function".
  3. Give it a name and click OK.

Optimise a Query:

  1. Remove unnecessary columns early.
  2. Filter rows as early as possible.
  3. Use "Keep Rows" instead of "Remove Rows" when it's fewer rows.

๐ŸŒ Real-life Examples

  • Retail chain: Combine daily sales from 100 stores into one report.
  • Education: Combine term results from all subjects into a single mark sheet.
  • Healthcare: Combine patient records from multiple hospitals.
  • Finance: Combine monthly budgets from all departments.

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • Bank: Combine daily transaction files from all branches in Nigeria.
  • Agriculture: Combine crop yield data from all states.
  • School: Combine exam scores from all primary schools in a local government.
  • Market: Combine sales data from different markets in Lagos.

๐Ÿงธ Fun Examples Children Can Relate To

  • Game scores: Combine high scores from all your friends into one list.
  • School projects: Combine research from different websites into one document.
  • Pocket money: Combine weekly allowance records from the whole year.
  • Toys: Combine lists of toys from different siblings.

๐Ÿ  Everyday Examples

  • Grocery: Combine shopping lists from different stores.
  • Chores: Combine chore lists from all family members.
  • Photos: Combine photo file names into a single index.
  • Books: Combine book titles from different shelves.

๐Ÿ‘ฉโ€๐Ÿซ Teacher Notes

  • Use the school story to relate to students.
  • Show live demo of combining files from a folder.
  • Have students create their own parameters.
  • Introduce functions gradually โ€“ they can be complex.
  • Emphasize the importance of error handling and documentation.

๐Ÿ‘ช Parent Tips

  • Help your child create a folder with multiple Excel files.
  • Let them practice combining files.
  • Show them how to use parameters to change results.
  • Encourage them to document their queries.

๐Ÿ’ก Interesting Facts

  • Power Query can combine data from over 40 different data sources.
  • The "Combine Files" feature can handle hundreds of files at once.
  • Parameters can be used in M code to create dynamic queries.
  • Functions in Power Query are stored in the "M" language.
  • Power Query is used by many large companies to save hours of work.

๐Ÿค” Did You Know?

  • Did you know you can combine data from PDF files? Yes, Power Query can extract tables from PDFs!
  • Did you know you can combine data from web APIs? Power Query can connect to online services.
  • Did you know you can schedule a refresh so your data is always up-to-date?

๐Ÿ”” Remember This

  • ๐Ÿ“‚ Combine files from a folder to save time.
  • ๐Ÿ”ง Parameters make your queries flexible.
  • ๐Ÿ“ฆ Functions are reusable tools.
  • ๐Ÿ”— Dependencies show how queries are connected.
  • โšก Optimise to make queries fast.
  • ๐Ÿ”„ Dynamic refresh keeps data current.
  • ๐Ÿ“ Document your work for future reference.

โš ๏ธ Common Mistakes

  • Mistake 1: Forgetting to change the data type after combining.
  • Mistake 2: Not filtering before merging large files โ€“ slows down performance.
  • Mistake 3: Using wrong file extension โ€“ e.g., combining CSV with Excel files.
  • Mistake 4: Not handling errors โ€“ queries fail if a file is missing.
  • Mistake 5: Overcomplicating with too many steps โ€“ keep it simple.
  • Mistake 6: Not documenting โ€“ later you forget what you did.

โœ… Best Practices

  • Always combine files from a folder to keep your process automatic.
  • Use parameters for values that might change (like year, region).
  • Create functions for repetitive tasks.
  • Optimise early: remove columns and filter rows as soon as possible.
  • Handle errors gracefully โ€“ use the "try" and "otherwise" logic.
  • Add comments to your M code for clarity.

๐Ÿ“Š Illustrations

Flowchart: Combining Data from Folder

   [Start] 
      |
      V
   [Get Data from Folder]
      |
      V
   [Combine Files]
      |
      V
   [Clean & Transform]
      |
      V
   [Load to Excel]

Timeline: Data Integration Workflow

   1. Load Files   โ†’   2. Combine   โ†’   3. Clean   โ†’   4. Transform
        โ†“                  โ†“              โ†“              โ†“
   5. Group/Pivot   โ†’   6. Load   โ†’   7. Refresh (optional)

Comparison: Manual vs Power Query Combine

FeatureManualPower Query
Time for 10 files30 minutes2 minutes
ErrorsHighLow
ReusabilityNoYes
AutomationNoYes

Comparison: Parameters vs Hard-coded Values

FeatureHard-codedParameter
Change valueEdit queryChange parameter
FlexibilityLowHigh
ReusabilityLowHigh

๐Ÿ“Œ End-of-Module Summary

Fantastic work! ๐ŸŽ‰ You have completed Module 3. You now know how to:

  • Combine data from multiple files and folders.
  • Use parameters to make queries flexible.
  • Create and use functions.
  • Understand query dependencies.
  • Optimise query performance.
  • Set up dynamic refresh.
  • Build a complete workflow with error handling and documentation.

You are now a Power Query integration expert! You can handle data from anywhere and shape it perfectly.


โ“ Frequently Asked Questions (10)

  1. Can I combine files with different structures? Yes, but you need to handle columns carefully.
  2. What file types can I combine? Excel, CSV, TXT, XML, JSON, and many more.
  3. How many files can I combine? Practically unlimited.
  4. Can I combine files from different folders? Yes, but it's easier if they are in one folder.
  5. What is a parameter used for? To make your query dynamic.
  6. Can I have multiple parameters? Yes, as many as you need.
  7. What is a function? A reusable set of steps.
  8. Can I share functions? Yes, you can copy them to other workbooks.
  9. How do I optimise a query? Remove unnecessary columns and filter early.
  10. Can I schedule a refresh? Yes, using Power BI or Excel's refresh options.

๐Ÿ“ Review Questions (15)

  1. What does "combine files" mean?
  2. How do you combine files from a folder?
  3. What is the "Combine Files" feature?
  4. What is a parameter?
  5. How do you create a parameter?
  6. How do you use a parameter in a query?
  7. What is a function?
  8. How do you create a function?
  9. What is a query dependency?
  10. Why is optimisation important?
  11. How do you optimise a query?
  12. What is dynamic refresh?
  13. What is a workflow?
  14. Why is error handling important?
  15. Why should you document your queries?

โœ๏ธ Fill-in-the-Blank

  1. Combining files brings data from different _______________ together. (sources)
  2. To combine files from a folder, use the "From _______________" option. (Folder)
  3. A _______________ is a value you can change easily. (parameter)
  4. A _______________ is a reusable set of steps. (function)
  5. Query _______________ show how queries are connected. (dependencies)
  6. To make a query faster, you _______________ it. (optimise)
  7. Dynamic refresh _______________ data automatically. (updates)
  8. A _______________ is a series of steps from start to finish. (workflow)
  9. _______________ handling manages problems gracefully. (Error)
  10. _______________ your queries helps others understand them. (Document)

โœ… True or False

  1. You can only combine Excel files. (False โ€“ many types)
  2. Parameters make queries flexible. (True)
  3. Functions are not reusable. (False โ€“ they are reusable)
  4. Dependencies are not important. (False โ€“ they are important)
  5. Optimising makes queries faster. (True)
  6. Dynamic refresh updates data automatically. (True)
  7. A workflow has only one step. (False โ€“ many steps)
  8. Error handling is optional. (False โ€“ it's best practice)
  9. Documentation is a waste of time. (False โ€“ it's very useful)
  10. You cannot combine files from a folder. (False โ€“ you can)

๐Ÿ”˜ Multiple Choice Questions

  1. Which option combines files from a folder?
    A) From Workbook B) From Folder C) From Database D) From Web
    Answer: B
  2. A parameter is used to:
    A) Delete data B) Make a query flexible C) Sort data D) Filter data automatically
    Answer: B
  3. A function is:
    A) A single step B) A reusable set of steps C) A type of data D) A filter
    Answer: B
  4. Query dependencies show:
    A) How queries are connected B) The size of data C) The file path D) The data type
    Answer: A
  5. Optimising a query means:
    A) Making it slower B) Making it faster C) Making it larger D) Deleting it
    Answer: B
  6. Dynamic refresh means:
    A) Data is deleted B) Data updates automatically C) Data is sorted D) Data is filtered
    Answer: B
  7. A workflow is:
    A) A single step B) A series of steps C) A type of file D) A parameter
    Answer: B
  8. Error handling helps with:
    A) Making errors bigger B) Managing problems C) Deleting errors D) Ignoring errors
    Answer: B
  9. Documentation is important for:
    A) Making it hard to understand B) Explaining your work C) Deleting data D) Sorting data
    Answer: B
  10. What is the first step in combining files from a folder?
    A) Clean data B) Get Data โ†’ From Folder C) Sort data D) Create parameter
    Answer: B
  11. Which is a best practice?
    A) Load all columns B) Filter early C) Skip error handling D) Never document
    Answer: B
  12. What can you combine in Power Query?
    A) Only Excel files B) Excel, CSV, XML, JSON C) Only CSV D) Only databases
    Answer: B
  13. How do you create a function?
    A) From a query B) From a parameter C) From a filter D) From a sort
    Answer: A
  14. What is the benefit of parameters?
    A) They make queries static B) They make queries dynamic C) They delete data D) They sort data
    Answer: B
  15. Why should you document your queries?
    A) To confuse others B) To help yourself and others C) To delete them D) To make them slow
    Answer: B

๐Ÿ”— Matching Exercise

Column AColumn B
1. CombineA. Reusable steps
2. ParameterB. Dynamic value
3. FunctionC. Bring data together
4. OptimiseD. Make faster
5. WorkflowE. Series of steps

Answers: 1-C, 2-B, 3-A, 4-D, 5-E


๐Ÿ“ Short Answer Questions

  1. Explain how to combine files from a folder.
  2. What is a parameter and why is it useful?
  3. Describe the process of creating a function.
  4. Why is optimisation important in Power Query?
  5. What is dynamic refresh and how does it benefit you?

๐Ÿ“– Scenario-based Exercises

  1. Scenario: You have a folder with 12 monthly sales files (Jan-Dec). Describe how to combine them into one annual sales report using Power Query.
  2. Scenario: You need to combine files from 5 different branches, but each branch has a slightly different column order. How would you handle this?
  3. Scenario: You want your query to automatically include new files added to the folder. How would you set that up?

๐Ÿ‘ฅ Group Activity

Activity: In groups, create a folder with 5 different Excel files containing fictional sales data. Each group member creates one file. Then, use Power Query to combine all files, clean the data, and create a summary table. Present your results.


๐Ÿง‘ Individual Activity

Activity: Create a folder with 3 Excel files (e.g., Jan, Feb, Mar). Each file should have at least 10 rows of data. Use Power Query to combine them, then create a parameter for "Year" and filter the data accordingly. Save your query.


๐Ÿ—ฃ๏ธ Classroom Discussion Questions

  1. How would you handle combining files from different sources (Excel, CSV, text)?
  2. Why is it important to have a dynamic refresh?
  3. What challenges might you face when combining files?
  4. How can you ensure your query is optimised for large datasets?
  5. How would you document a complex query for your team?

๐Ÿ› ๏ธ Mini Project

Project: Create a Power Query solution that combines data from at least 5 different Excel files in a folder. The files should have sales data for different regions. Clean the data, add a conditional column for "High" or "Low" sales, group by region, and create a summary. Load the final table into Excel. Document your steps.


๐Ÿ’ป Practical Assignment

Assignment: Your teacher will provide a folder with 10 Excel files containing student grades. Your task:

  1. Combine all files using Power Query.
  2. Clean the data (remove blanks, trim spaces).
  3. Create a parameter for "Minimum Pass Mark" (default 70).
  4. Create a conditional column for "Pass/Fail".
  5. Group by subject to find average scores.
  6. Load the final report into Excel.
  7. Submit the Excel file with your queries.

๐Ÿ† Challenge Exercise

Challenge: Use Power Query to combine data from a folder of CSV files. But some files have extra columns. Write a function that cleans any file you give it, and then apply that function to all files while combining. This will test your skills in parameters and functions. Show your final combined table.


๐Ÿ”‘ Quiz Answers

All answers are provided within each exercise section above.


๐ŸŽ Key Takeaways

  • Combining data from multiple files is easy with Power Query.
  • Parameters and functions make your queries flexible and reusable.
  • Optimising and documenting are essential for professional work.
  • Dynamic refresh keeps your data current.
  • You can build complete workflows to automate data processing.

๐Ÿ“š Preparation for Module 4

In Module 4, we will dive into Advanced Data Analysis with Power Query โ€“ we will learn about complex calculations, data modelling, and creating interactive dashboards. We will also explore how to use Power Query with Power BI. You are now ready to take on more complex data challenges. Keep practising and stay curious!


๐ŸŽ‰ End of Module 3 โ€“ You are now a data combining champion! ๐ŸŽ‰

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’