Sub topic 3
Choosing Between a Slicer and a Filter
Assume you know Power BI Desktop, can work with tables and columns, and understand basic measures. This chapter focuses on choosing filtering tools and diagnosing their results.
Choosing Between a Slicer and a Filter
Use a slicer when readers should actively choose a value on the report canvas. Slicers make the current selection visible and are useful for common choices such as region, product category, or date.
Use a Filter pane filter when the condition is less central, should apply at a specific scope, or needs filter types such as Top N or relative date.
- Use a visual-level filter for one visual.
- Use a page-level filter for every visual on one page.
- Use a report-level filter for every page.
- Use a slicer when readers need an obvious, interactive control.
Controlling Interactions Between Visuals
By default, selecting a data point or slicer value can filter or highlight other visuals. Select a visual, choose Format > Edit interactions, and set each target visual to filter, highlight, or show no effect.
Synchronizing Slicers Across Pages
Open View > Sync slicers. Select a slicer, then choose the pages where it should be synchronized. You can make it visible on each page or keep it hidden while preserving its selection. Synchronization is useful for a shared date or region choice.
Configuring the Filter Pane for Readers
In the Filter pane, rename filters with reader-friendly labels, remove unnecessary filters, and lock or hide filters that readers should not change. Keep the visible set small. A hidden filter still affects results, so document important hidden conditions.
> callout note > A filter’s scope and visibility are separate. A hidden report-level filter can still change every visual.
How DAX Measures Respond to Filters
A measure is recalculated in the current filter context, which is the set of active slicer and filter selections.
Total Sales = SUM ( Sales[SalesAmount] )
Selected Category =
SELECTEDVALUE ( Product[Category], "All categories" )
Total Sales All Products =
CALCULATE ( [Total Sales], REMOVEFILTERS ( Product ) )The first measure responds to active filters. The second reports one selected category, or a fallback when there are zero or multiple selections. The third ignores filters on Product and provides a fixed comparison.
Troubleshooting Unexpected Filter Results
Check these causes in order:
- The filter has the wrong scope.
- Edit interactions disables the expected target.
- A slicer is synchronized from another page.
- The selected column comes from a disconnected or incorrectly related table.
- A DAX measure removes or replaces the filter.
- The visual contains cached-looking results after a refresh or model change.
Exercise
You need a region choice visible on every page, but a benchmark card must ignore it. What should you configure?
Show answer
Synchronize the region slicer across the required pages, disable its interaction with the benchmark card, and use a measure with REMOVEFILTERS for a benchmark that must ignore Product or another specified table.