Sub topic 13
Choosing the right feature
This chapter assumes you can build bar charts, tables, and matrices in Power BI Desktop. It also assumes you have a star-schema model with a date table, and that you have written simple DAX measures. You have now seen three ways to move from summary to detail: drill-down, drill-through, and tooltips. Each one answers a different kind of question. This chapter gives you a way to pick among them, and shows what goes wrong when you pick badly.
Three features, three questions
All three features work by changing filter context, which is the set of filters that decide which rows a visual or measure sees. They differ in where the new context appears and how much the reader must do to get it.
| Feature | Where the detail appears | Reader action | Reader keeps their place? |
|---|---|---|---|
| Drill-down | In the same visual | Click a drill button or a data point | Yes. The visual changes, the page does not. |
| Expand down | In the same visual, with the higher level kept | Click the expand button | Yes |
| Drill-through | On a different page, filtered to the selected item | Right-click a data point and choose Drill through | No. The reader navigates away and uses a back button to return. |
| Report page tooltip | In a small pop-up over the visual | Hover (or tap and hold on touch devices) | Yes. The pop-up disappears when the pointer moves. |
| Default tooltip | In a small text pop-up | Hover | Yes |
A useful rule is to match the feature to the reader's next question:
- "What is inside this bar?" points to drill-down, because the answer is the same measure at a finer grain.
- "Tell me everything about this customer." points to drill-through, because the answer needs many visuals, not one.
- "What is this number, exactly?" points to a tooltip, because the answer is a quick fact that should not interrupt reading.
A decision flow
Start with how much detail the reader needs and whether it belongs in the same visual.
The flow is a starting point. Real reports often combine features, which the next section covers.
Comparing the features on the dimensions that matter
What changes in filter context
- Drill-down adds filters for the hierarchy levels above the current one. Moving from Category to Subcategory in a visual adds a filter on the chosen category only inside that visual. Other visuals on the page are not affected unless you use cross-filtering.
- Drill-through applies the filter to the whole target page, for every visual on it. Only the fields you placed in the drill-through well are carried over, unless you turn on Keep all filters.
- A tooltip page receives the filter context of the hovered data point. This includes the fields on the axis and legend plus any filters that applied to the source visual.
Reader effort
Tooltips cost the reader nothing, but readers cannot click inside them. Drill-down needs a click and an understanding of the drill buttons. Drill-through is the least discoverable, because the option hides in a right-click menu. If your report depends on drill-through, tell readers it exists. A button or a short text hint on the source page works well.
Page real estate and design cost
- Drill-down needs no extra pages, only a hierarchy.
- Tooltips need one small page each, with the page size set to Tooltip and the page marked as a tooltip.
- Drill-through needs a full page, a drill-through field, and a back button. It costs the most to build and maintain.
Where context-aware measures help
Measures can make one visual serve several levels. The ISINSCOPE pattern below returns the level the visual currently shows. You can use it to change a title, a format, or a calculation as the reader drills.
Level Label =
IF (
ISINSCOPE ( Product[Product Name] ), "Product",
IF (
ISINSCOPE ( Product[Subcategory] ), "Subcategory",
IF ( ISINSCOPE ( Product[Category] ), "Category", "Total" )
)
)For a drill-through page, SELECTEDVALUE can read the item the reader chose. It returns the fallback text when no single value is in context, which also covers the case where the reader opens the page directly.
Drill-through Title =
"Orders for " & SELECTEDVALUE ( Customer[Customer Name], "multiple customers" )For tooltips, a measure like year-over-year growth gives context without a second visual.
Sales PY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Sales YoY % =
DIVIDE ( [Total Sales] - [Sales PY], [Sales PY] )You can add Sales YoY % to the Tooltips field well of a visual for a quick default tooltip, or place it on a tooltip page.
Worked scenarios
Scenario 1: Sales by category on an executive page
The reader sees a column chart of sales by Category. They want to know which subcategory drives a spike.
Use drill-down on a Category > Subcategory > Product hierarchy. If the reader needs to compare the subcategory against the category total at the same time, use expand down instead, because it keeps the parent level visible next to its children. Add a tooltip showing Sales YoY % so the reader sees growth without leaving the chart.
Scenario 2: A customer list for the account team
The page lists customers with sales totals. The account team wants order history, returns, and contact details for one customer.
Use drill-through. The content needs several visuals, and a tooltip is too small to hold them. Create a page with Customer[Customer Name] in the drill-through well, add the detail visuals, and add a back button. Use the Drill-through Title measure to confirm which customer is shown.
Scenario 3: A map of store locations
Each bubble represents a store. The reader wants the manager name and last month's sales when they point at a store.
Use a report page tooltip. The information is brief, it is tied to a single data point, and the reader should not lose their place on the map.
Scenario 4: Combining all three
A product dashboard can use all three at once. A matrix supports drill-down by product hierarchy. Hovering over a value shows a tooltip with a trend. Right-clicking a product opens a drill-through page with the full product profile. The features do not compete here, because each answers a different question.
Common mistakes when choosing
- Using drill-through for a single number. The reader leaves the page for a fact that a tooltip could show.
- Using a tooltip for content that needs interaction. Tooltip pages cannot be clicked, filtered, or scrolled by the reader.
- Drilling through to a page that needs fields the source does not provide. The drill-through page only filters on the fields in its drill-through well, so a source visual that lacks those fields will not show the Drill through option.
- Building a deep hierarchy where levels are not related. Drill-down assumes each level narrows the one above it.
- Forgetting the way back. A drill-through page without a back button leaves readers stuck, because many do not know the browser-style Back shortcut.
Quick troubleshooting tied to the choice
If a feature does not appear, check the pairing between the feature and its requirements.
| Symptom | Likely cause | Check |
|---|---|---|
| Drill buttons do not appear | The visual has only one field in the axis, or does not support drilling | Add a hierarchy or more than one field to the axis |
| Drill through is missing from the right-click menu | The source visual lacks the drill-through field, or you right-clicked an empty area | Confirm the source has the field and click a data point |
| Tooltip page shows all data, not the hovered point | The tooltip page does not receive the fields from the source visual | Check that the visual's fields match the tooltip page's fields |
| Tooltip falls back to default text | The tooltip is not set to Report page, or the page is not named in the visual's format options | Set Tooltip type to Report page and pick the page |
Summary
Pick drill-down when the reader wants the same measure at a finer grain inside one visual, and expand down when the parent level must stay in view. Pick drill-through when the reader needs a full page of detail about one item. Pick a tooltip when the reader needs a quick fact without leaving the spot. Combine them when each answers a different question, and give each feature one clear job.
Exercise
A sales manager reviews a bar chart of revenue by region. She wants to see revenue by country inside each region, with the region totals still visible. Which feature fits, and why not drill-through?
Show answer
Expand down fits, using a Region > Country hierarchy. It adds the country level while keeping the region level visible in the same visual. Drill-through would send her to another page and is meant for a multi-visual detail page about one selected item, not for a finer grain of the same measure.
Exercise
A reader hovers over a store on a map and you want to show the store manager and the year-over-year sales change. Name the feature, name the DAX measure from this chapter you would reuse, and say one limitation of the feature.
Show answer
Use a report page tooltip. Reuse Sales YoY %, which is built from Sales PY. A tooltip page cannot be clicked, filtered, or scrolled by the reader, so it suits short facts only.
Exercise
You built a customer detail page with Customer Name in the drill-through well. Users report that Drill through never appears when they right-click a bar in a chart of sales by Product Category. What is the likely cause and the fix?
Show answer
The chart does not contain Customer Name, so it cannot supply a value for the drill-through field. Right-click a visual that includes Customer Name, such as a customer table, or add that field to the source visual's data.