Locked lesson.
About this lesson
This lesson shows how to create query groups so that you can keep your queries organized. Super useful for creating a self-documenting query chain.
Exercise files
Download this lesson’s related exercise files. You can download source data files for the course from the resources section of your Lessons page.
Grouping queries.xlsx30.6 KB Grouping queries - Completed.xlsx
31.1 KB
Quick reference
Grouping Queries
An overview of creating groups of queries.
When to use
When you need to organize a list of many queries by grouping certain ones together.
Instructions
Getting started
- You can group queries in the queries pane inside the Power Query editor, or via Excel
- To show Excel’s Query Pane:
- Excel 2016: Go to the Data tab and select “Show Queries” or “Queries & Connections”
- Excel 2010/2013: Go to the Power Query tab and select “Show Pane”
Creating a new group
- Right click on a query --> Move To Group --> New Group…
- When the New Group dialog opens, name the group
Adding to an existing group
- Right click on a query --> Move To Group --> choose the existing group
- Drag and drop the query into an existing group (inside the Power Query editor only)
Creating sub-groups
- Method 1:
- Create a new group by right clicking on a query --> Move To Group --> New Group…
- Right click the group --> Move To Group --> choose the existing group
- Method 2:
- Right click the desired parent group --> New Group...
- Move the desired queries into the new sub-group
Hints & tips
- Groups can be used to keep queries organized
- Creating a “Raw Data”, “Staging Queries” and “Load” group can allow you to quickly scan the queries pane and make sure queries are loading to the correct destinations
Lesson notes are only available for subscribers.