Sub topic 14
Cross-filtering, slicers, drill-down and tooltips
This chapter assumes you can build a basic bar, column and line chart in Power BI Desktop and that your model has a marked date table. Interactivity changes which visual you pick, because a visual that looks simple can answer many follow-up questions when readers can click it.
Four ways readers interact
| Feature | What it does | Best used for |
|---|---|---|
| Cross-filtering | Clicking a data point on one visual filters the other visuals on the page | Linking a ranked bar chart to a trend line |
| Slicer | A visible filter control that applies to the page or to selected visuals | Date ranges, regions, or any field every reader will filter |
| Drill-down | Moves down a hierarchy inside one visual, such as Year to Quarter to Month | Trends and comparisons with natural levels |
| Tooltip | Shows extra values when the reader hovers over a data point | Detail that would clutter the visual |
Cross-filtering and cross-highlighting
By default, selecting a bar highlights related parts of the other visuals. Column and bar charts usually cross-highlight, which shows the selected portion against the whole. Other visuals filter. Use Format > Edit interactions to change this per visual pair.
This is also where measure design matters. A share-of-total measure behaves differently under a selection:
Sales % of Total =
DIVIDE (
[Total Sales],
CALCULATE ( [Total Sales], ALL ( Product[Category] ) )
)Because ALL ( Product[Category] ) removes the category filter, the denominator stays at the overall total. Selecting a category on another visual therefore does not change what 100% means.
Slicers
Use a slicer for fields that readers filter often. Choose the style by field type:
- Dates: a between slider or relative-date slicer.
- Few categories: a list or tile buttons.
- Many categories: a dropdown, to save space.
Avoid slicers on high-cardinality fields such as product name. A search box or a table is more usable.
Drill-down
Drill-down needs a hierarchy in the Axis well. Drag Year, Quarter and Month into one line chart axis, then use the drill arrows. Turn on drill mode, then click a point to go to the next level for only that point. Use "Expand all down one level" to show the next level for every point.
Tooltips
The default tooltip shows the category and the values in the visual. You can add fields to the Tooltips well. For example, add Sales YoY % to a bar chart of sales. Readers see the growth rate without a second series. For richer detail, create a report page and set it as a tooltip page.
Common errors
- Slicers that silently filter a visual you expected to stay fixed. Check Edit interactions.
- Drill-down on a hierarchy with a single level, so the arrows do nothing.
- Key numbers placed only in tooltips.
Exercise
A page has a bar chart of sales by category and a line chart of sales by month. Readers click a bar and the line chart should show only that category's monthly trend. A second line chart showing company-wide monthly sales should stay unchanged. How do you set this up?
Show answer
Click a bar to cross-filter, then select the company-wide line chart and use Format > Edit interactions to set the bar chart's effect on it to None. The first line chart stays on Filter.