Sub topic 2
Creating a Drill-Through Page
Assume you know Power BI Desktop, simple visuals, star-schema models, and basic DAX measures. A drill-through page lets a reader move from a summary visual to a detail page filtered to the selected item. For example, right-clicking a customer in a sales chart can open a customer-details page.
Creating a drill-through page
- Add a new report page and name it Customer Details.
- In the Visualizations pane, locate Drill-through.
- Drag the field that identifies the detail item, such as
Customer[Customer Name], into the drill-through field well. - Add cards, tables, and charts to the page. These visuals inherit the selected customer filter.
- On the source page, right-click a customer data point and choose Drill through > Customer Details.
The drill-through field must match the field used by the source visual or its filter context. A page can contain more than one drill-through field when the detail page needs a combination such as customer and year.
A context-aware title makes the destination clear:
Drill-through Title =
"Orders for "
& SELECTEDVALUE ( Customer[Customer Name], "multiple customers" )SELECTEDVALUE returns the customer when exactly one customer is in context. Otherwise, it returns the fallback text.
Adding a back button
On the drill-through page, choose Insert > Buttons > Back. Power BI creates a button that returns the reader to the page and visual that initiated the drill-through. Test the button from the published report as well as in Desktop.
Keep all filters and cross-report drill-through
Enable Keep all filters when the detail page should retain filters beyond the drill-through field, such as region, date, or product category. Without it, the page may show the customer correctly but lose important surrounding context.
Cross-report drill-through allows a detail page in another report to receive drill-through context. It requires compatible models, matching field names, and the required report and workspace configuration. Use it only when separate reports are necessary because it adds deployment and troubleshooting points.
Default tooltips and the Tooltips field well
A default tooltip appears when a reader hovers over a data point. Add measures or fields to the visual's Tooltips field well to provide useful context without changing the chart. Keep the values related to the hovered point and format percentages, dates, and currencies appropriately.
Exercise
A customer drill-through page shows the selected customer but loses the region slicer. Which setting should you check?
Show answer
Enable Keep all filters in the drill-through page settings, then test whether the region filter is included in the source context.