Sub topic 12
Designing effective tooltips
This chapter assumes you can build a report page tooltip and assign it to a visual, and that you can write simple DAX measures. Here you decide what goes on a tooltip and how to make it read well in a few seconds.
What a tooltip is for
A tooltip answers a question the reader has while pointing at a data point: "What is this, and how does it compare?" It does not replace a detail page. If the reader needs to filter, scroll, or click, use drill-through instead.
Good tooltip content falls into three groups:
- Identity: the name of the item under the pointer, such as the product or month.
- Comparison: the same value against a benchmark, such as last year or target.
- Composition: a small breakdown of the value, such as sales by channel.
Keep it small and fast
A tooltip page appears each time the reader hovers, and its visuals run queries each time. Heavy pages feel slow and make the report seem unresponsive.
- Use two to four visuals at most.
- Set the page size to Tooltip, or a custom size near 320 x 240 pixels.
- Avoid slicers, long tables, and visuals with many data points.
- Hide the page from the page tabs, since readers should reach it only by hovering.
Use measures that follow context
A tooltip page receives the filter context of the hovered point. Any measure on the page is evaluated in that context, so one tooltip page can serve many visuals. The year-over-year measures from the spine work well here:
Sales PY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Sales YoY % =
DIVIDE ( [Total Sales] - [Sales PY], [Sales PY] )Place [Total Sales], [Sales PY], and [Sales YoY %] on a tooltip page, or add them to the Tooltips field well of a visual. Hovering over March 2025 then shows March 2025 sales, March 2024 sales, and the change.
You can also label the tooltip by hierarchy level, using the Level Label measure from the previous chapter. Hovering over a bar at the Category level shows "Category", and after a drill-down it shows "Subcategory" or "Product".
Match the tooltip to the question
| Visual | Useful tooltip content |
|---|---|
| Monthly sales column chart | Sales, prior-year sales, YoY % |
| Sales by category bar chart | Share of total, top three products in that category |
| Map of stores | Store name, sales, target attainment |
| Scatter plot | Name of the point and the values behind each axis |
Design guidelines
- Lead with the most important number, in a larger font than the rest.
- Label every value. A bare number forces the reader to guess.
- Use the same colors and number formats as the main report.
- Keep one tooltip page per kind of question, not one per visual.
- Test with a real hover in Reading view, since the Desktop canvas does not show how the page is sized.
Common mistakes
- Repeating what the visual already shows. A tooltip that lists the category and value on a chart that has data labels adds nothing.
- Putting a full table on the page. Readers will not scroll inside a tooltip.
- Forgetting to set the visual's tooltip type to Report page. The visual then shows the default tooltip.
- Using a measure that ignores the filter, for example one that wraps
ALL. The tooltip then shows the same value for every point.
Exercise
A column chart shows monthly sales. You want its tooltip to show sales, prior-year sales, and YoY %, but you do not want to build a separate page. Which feature do you use, and which measures do you add?
Show answer
Use the Tooltips field well of the visual, and add [Total Sales], [Sales PY], and [Sales YoY %]. The default tooltip then lists those values for the hovered month. A tooltip page is needed only if you want charts or custom layout.
Exercise
A tooltip page shows the same sales total no matter which bar the reader hovers over. Name one likely cause.
Show answer
A measure on the page removes the incoming filter, for example with ALL, so it ignores the hovered point. Another possible cause is that the field used for the hover is not related to the tooltip page's measure through the data model.