Sub topic 10
Building a report page tooltip
A report page tooltip is a small report page that appears when a reader hovers over a data point. It replaces the default tooltip, which shows only the category and value. This chapter assumes you can build basic visuals, you know what filter context is, and you can write simple DAX measures. It also assumes you have seen the Tooltips field well. Earlier chapters covered that field well and the default tooltip.
What a report page tooltip is
A report page tooltip is an ordinary report page with a special setting turned on. When a reader hovers over a visual, Power BI renders that page inside the tooltip popup. It passes the hovered data point's filter context to the page. Every visual on the tooltip page then recalculates for that context.
Suppose a column chart shows sales by Category, and the reader hovers over the "Bikes" column. The tooltip page receives the filter Category = Bikes. A card on the tooltip page that shows [Total Sales] shows sales for Bikes. A line chart on the page shows the Bikes trend by month.
This works through the same filter context you already know from visual interactions. The tooltip page is not a separate query. It is another set of visuals that receive filters from the hovered point.
Creating the tooltip page
Follow these steps in Power BI Desktop.
- Add a new page and name it something clear, such as
Tooltip - Category. A naming convention helps later, because the page name appears in a drop-down list. - Select the page, open the Format pane, and expand Page information. Turn Allow use as tooltip on.
- Expand Canvas settings. Set Type to Tooltip. This sets the page size to a small canvas of 320 by 240 pixels.
- In Page view, choose Actual size so you see how the tooltip will look. Fit-to-page makes the canvas look larger than it is.
- In the Fields area of the Format pane's page section, or in the Filters pane, add the fields the tooltip should accept. This is described in the next section.
- Add visuals sized to fit the small canvas.
The tooltip canvas is small on purpose. A popup that covers half the report defeats the point of a hover.
Choosing the tooltip fields
A tooltip page responds to the hovered point's fields automatically when those fields exist in the model, but you can control this explicitly with the Tooltip field well on the page's filter area. Drag the fields the tooltip should respond to into the tooltip filter area. For a visual that shows Category, add Product[Category].
This choice has two effects:
- When the hovered visual uses a field you listed, Power BI filters the tooltip page by that field's value.
- When the hovered visual does not use any listed field, Power BI does not use the page as a match. It falls back to the default tooltip or to the page you assigned with filters that do apply.
Listing the field is a design decision. A tooltip page that lists Category suits visuals grouped by category. A visual grouped by Region will not filter the page by region unless Region is also listed.
Assigning the tooltip to a visual
Building the page does nothing until a visual uses it.
- Go back to the report page and select the visual.
- Open Format visual, then General, then Tooltips.
- Set Type to Report page.
- In Page, choose your tooltip page.
- Leave Use default settings off if you want to control the page. Turn it on to reset to the standard behavior.
Hover over the visual to test it. The tooltip should show data for the hovered point. If it shows the default tooltip, check that the page has Allow use as tooltip on and that its fields match the visual.
Power BI can also pick the tooltip page automatically. In Auto mode, it looks for a tooltip page whose listed fields match the fields on the visual. This is convenient when you have several tooltip pages. It can surprise you when two pages both match, so assign a page explicitly when behavior matters.
Adding useful content
A good tooltip answers the question the hover raises: "What is behind this number?" The reader should understand the point in a second or two.
Reasonable contents for a sales tooltip:
- A card with the hovered value and a comparison, such as year over year.
- A small line chart showing the trend for the hovered item.
- A short text line identifying what is hovered.
The year-over-year measure from the plan works well here:
Sales PY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Sales YoY % =
DIVIDE ( [Total Sales] - [Sales PY], [Sales PY] )SAMEPERIODLASTYEAR needs a proper date column from a date table that is marked as a date table. If the hovered point has no date context, the function still works, but the result reflects whatever date filter exists on the page. Add [Sales YoY %] to a card on the tooltip page. When the reader hovers over "Bikes" in a chart, the card shows the year-over-year change for Bikes.
You can also place measures directly into a visual's Tooltips field well. This adds values to the default tooltip without a page. Use that when a few extra numbers are enough. Use a report page when you need a chart, a card layout, or formatting.
Table: tooltip options compared
| Approach | Setup | Good for | Limits |
|---|---|---|---|
| Default tooltip | None | Showing the category and value | No extra detail |
| Tooltips field well | Drag measures into the field well | A few extra numbers | Text only, no charts |
| Report page tooltip | Build a page and assign it | Charts, cards, and layout | More work, small canvas |
Edge cases and common errors
- The tooltip does not appear. Confirm that Allow use as tooltip is on and that the visual's tooltip Type is Report page. Confirm the correct page is chosen in Page.
- The tooltip shows the whole total, not the hovered item. The tooltip page is not receiving a filter. The hovered visual's field is probably not listed in the tooltip page's fields, or the tooltip visuals use a measure that ignores filters, such as one that uses
ALL. Check both. - The popup is cut off or has a large blank area. The canvas size does not match the content. Resize the visuals, or switch the page's canvas type back to Custom and set a width and height.
- A tooltip page is visible as a normal tab. Tooltip pages stay in the page list while you edit. Hide the page by right-clicking the tab and choosing Hide page. A hidden page still works as a tooltip.
- The tooltip shows blank values. The measure may return blank for the hovered context. Test the measure in a table with the same field and see what it returns.
- Tooltips do not work on a touch device the way they do with a mouse. On touch devices, readers tap a data point to see the tooltip. A tap may also select the point, which can change other visuals through cross-filtering.
Remember that the tooltip page's own filters still apply. A page-level or visual-level filter on the tooltip page combines with the hovered context. A filter such as Year = 2024 on the tooltip page limits all its visuals, even when the hovered point is from another year.
Putting it together
For a bar chart of sales by Category:
- Create the page
Tooltip - Categorywith Allow use as tooltip on and the canvas type set to Tooltip. - Add
Product[Category]as a tooltip field. - Add a card with
[Sales YoY %]and a line chart of[Total Sales]by month. - Hide the page.
- On the bar chart, set Tooltips to Report page and choose
Tooltip - Category. - Hover over each bar and check that the card and the line change.
Test at least one data point that has little or no data. This shows how the tooltip behaves for blank results.
Exercise
A reader hovers over a "Road Bikes" bar. The tooltip page opens, but its card shows the total sales for all products. Name two likely causes.
Show answer
First, the hovered field (for example Subcategory) may not be listed in the tooltip page's tooltip fields, so the page receives no matching filter. Second, the card's measure may remove the filter, for example by using ALL on the product table. A third possibility is that the tooltip page was assigned to a visual that uses a field from an unrelated table, so no relationship passes the filter.
Exercise
You want a hover to show a trend line and a year-over-year card for the hovered category. Should you use the Tooltips field well or a report page tooltip? Why?
Show answer
Use a report page tooltip. The Tooltips field well can add measures as text values, but it cannot show a chart. A line chart needs a visual on a tooltip page.