Sub topic 1
How Visuals Get Their Data: Filters and Interactions
Prerequisites
Assume you can navigate Power BI Desktop, build basic charts and matrices, use a star-schema model with a date table, and write simple DAX measures.
Filters and visual interactions
A visual shows data after Power BI applies its filter context. Filter context is the set of filters currently affecting a calculation. It can come from slicers, page and report filters, filters on the visual, and selections in other visuals.
By default, selecting a bar or data point cross-filters or cross-highlights related visuals. You can change this behavior with Format > Edit interactions. A relationship in the data model also determines whether a filter can travel between tables.
Total Sales = SUM ( Sales[Sales Amount] )This measure returns a different value when the visual's filter context changes.
Building hierarchies for drilling
A hierarchy is an ordered set of fields that moves from broad categories to detailed values. A date hierarchy might contain Year, Quarter, Month, and Date. A product hierarchy might contain Category, Subcategory, and Product.
In the Fields pane, create a hierarchy by placing related fields under a hierarchy name. Add the hierarchy to a chart axis or matrix rows. The order determines the drilling path.
Drilling down and up in a visual
Turn on the visual's drill mode, then select a data point to move to the next hierarchy level. Drill up returns to the previous level. The visual keeps the relevant context while replacing the displayed grouping.
For example, drilling from a year to a quarter shows quarters for the selected year. The same visual and measure remain in use.
Expand down versus drill down
Drill down replaces the current level with the next level. Expand down keeps the parent level visible and adds child values beneath it. Use drill down to focus on one level. Use expand when comparisons between parent and child levels matter.
What drill-through does
Drill-through opens another report page filtered to the selected value. It is useful when a summary page needs a detailed customer, product, or transaction view. The destination page must contain the matching field in its Drill-through filters well.
This differs from drill-down: drill-down changes a visual in place, while drill-through navigates to a purpose-built page.
Exercise
A user wants to compare a product category with its subcategories in the same matrix. Should they use drill down or expand down?
Show answer
Use expand down because it keeps the category visible while showing its subcategories.