Sub topic 3
Building a Report Page Tooltip
Assume you can build basic Power BI visuals, use a star-schema model with a date table, and write simple DAX measures. A report page tooltip is a page that appears when a reader hovers over a data point. It can contain several visuals instead of only the standard text tooltip.
Building a report page tooltip
Create a new page, then open Format page > Canvas settings. Set Page size to Tooltip. Add a small chart, card, or table that explains the hovered value.
In the page's Tooltip settings, enable the tooltip option. Add the field that identifies the data point to the page's Tooltip fields well. For example, add Product[Category] when the source visual shows product categories.
Assign the page to the source visual:
- Select the source visual.
- Open Format visual > General > Tooltips.
- Set Type to Report page.
- Select the tooltip page.
Power BI passes the hovered data point's filter context to the tooltip page.
DAX measures that adapt to context
A measure can read the current filter context. SELECTEDVALUE returns one value when exactly one value is selected and a fallback otherwise.
Drill-through Title =
"Orders for "
& SELECTEDVALUE ( Customer[Customer Name], "multiple customers" )ISINSCOPE detects the hierarchy level currently displayed by a visual. This helps a tooltip label its detail correctly.
Level Label =
IF (
ISINSCOPE ( Product[Product Name] ), "Product",
IF (
ISINSCOPE ( Product[Subcategory] ), "Subcategory",
IF ( ISINSCOPE ( Product[Category] ), "Category", "Total" )
)
)Designing effective tooltips
Show information that answers the next question, such as prior-year sales, margin, or order count. Keep the page small and readable. Avoid repeating the exact value already visible in the source visual.
Choosing the right feature
| Need | Use |
|---|---|
| Move through levels in one chart | Drill-down |
| Open a detailed page for a selected item | Drill-through |
| Add compact context on hover | Tooltip |
Troubleshooting common problems
- If no tooltip appears, confirm that the page size is Tooltip and that the page is assigned to the visual.
- If values are blank, check relationships and whether the tooltip receives the expected field.
- If a measure shows the wrong label, provide a fallback to
SELECTEDVALUE. - If the tooltip is cluttered, remove visuals and keep only decision-relevant measures.
Exercise
A tooltip should show sales for the hovered category, but it shows total sales for every category. What should you check first?
Show answer
Check that the category field is present in the source visual and that the model relationship allows its filter context to reach the sales table.