Locked lesson.
About this lesson
If you ever need to audit your models, you'll find this tool can be helpful. It shows how the queries link together and flow from one to the other.
Exercise files
There are no related exercise files for this lesson.
Quick reference
Viewing Query Dependencies
An overview of the Query Dependencies Viewer.
When to use
When you need to audit a file to see where and how various queries within it are being used.
Instructions
Activating the query dependencies viewer
- Open the Query Editor by editing any query in the workbook
- Go to the View tab --> Query Dependencies
- The Query Dependencies window will open, depicting the connections between the various queries
- The connections between the various tables are indicated with arrows
Using the query dependencies viewer
- Click any query box to highlight all of its precedent and dependent queries
- Scale the interface to show all the queries by using the Fit To Screen button in the bottom right
- Use the Layout button to adjust the model layout to show in different ways (left to right, right to left, top to bottom, etc…)
Query dependencies viewer shortcomings
- Tasks that cannot be performed in the Query Dependencies viewer
- Select arrows to trace their connections
- Individually move the boxes that represent each query
- Show relationships one connection at a time
- Print the view
Hints & tips
- The Query Dependencies viewer is available in:
- Excel 2010 and 2013
- Subscription versions of Excel 2016 (may not be in non-subscription versions)
- Power BI Desktop
- To print the Query Dependencies view, use the Windows Snipping Tool to take a screenshot (which can then be printed)
- Press the Windows key on your keyboard --> type “Snipping” to locate the snipping tool
Lesson notes are only available for subscribers.