Sub topic 5
What drill-through does
This chapter explains what drill-through does and how it relates to filter context. It assumes you can build bar charts, tables, and matrices in Power BI Desktop, you know a star-schema model with a date table, and you can read simple DAX measures. Setup steps come in the next chapter.
The idea
Drill-through lets a reader right-click a data point and jump to a different report page that shows detail for that item. The destination page is filtered to the item they clicked. Drill-down stays inside one visual and moves along a hierarchy. Drill-through leaves the visual and opens a page built for one entity, such as a customer, a product, or a region.
A typical use is a summary page with a bar chart of sales by customer. The reader right-clicks the bar for "Contoso Ltd", chooses Drill through, then picks a page named "Customer Detail". That page opens showing only Contoso's orders, trend, and contact information.
How it works with filter context
Drill-through is a way to hand filter context from one page to another. When the reader right-clicks a bar, Power BI collects the filters that apply to that data point. It passes the ones that match the destination page's drill-through fields. Every visual on the destination page then evaluates under those filters, as if the reader had selected the value in a slicer.
Two consequences follow from this model:
- The field on the clicked data point must be the same column as the drill-through field, or Power BI must be able to match it. Clicking a bar that shows
Customer[Customer Name]can drill to a page whose drill-through field isCustomer[Customer Name]. - The destination page is an ordinary page. Its visuals, measures, and slicers work as they do anywhere else. Only the incoming filter is special.
Drill-through compared with other navigation
| Feature | Where the reader ends up | What carries over |
|---|---|---|
| Drill-down | Same visual, next hierarchy level | The clicked item becomes a filter on the next level |
| Drill-through | A different page | The clicked item's filters, for the matching drill-through fields |
| Tooltip | A hover popup, no navigation | The hovered point's filter context |
Making the page aware of the selection
Because the page receives a filter, a measure can read it. SELECTEDVALUE returns the value when exactly one remains in filter context and a fallback otherwise. This makes a dynamic page title:
Drill-through Title =
"Orders for " & SELECTEDVALUE ( Customer[Customer Name], "multiple customers" )Place this measure in a card or text box title. When a reader arrives from the Contoso bar, the title reads "Orders for Contoso Ltd". If they open the page directly with no filter, it reads "Orders for multiple customers". That fallback tells you the page was reached without drilling.
Common errors
- Drill through is missing from the right-click menu. The clicked field does not match any drill-through field. Check that the visual uses the same column, not a similarly named column from another table.
- The detail page looks unfiltered. The reader opened the page from the page tabs instead of drilling. Pages with drill-through fields still open from the tabs, with no filter applied.
- Only some visuals respond. A visual may have its interactions turned off, or it may use a measure that removes filters with
ALL.
Exercise
A reader right-clicks a bar showing Product[Category] and the Drill through menu is empty. The detail page has Product[Product Name] as its drill-through field. Why, and what could you change?
Show answer
The clicked point carries only Product[Category], which does not match the drill-through field Product[Product Name]. Either add Product[Category] as a drill-through field on the page, or drill from a visual that shows Product Name, for example after drilling down to the product level.