Sub topic 8
Choosing between a slicer and a filter
This chapter assumes you can add a slicer to a page, open the Filter pane, and tell visual-level, page-level, and report-level filter scopes apart. It also assumes you know what a measure is. The goal is to give you a decision process for picking the right tool each time, instead of defaulting to whichever one you reach for first.
Two tools, one underlying effect
Slicers and filters both narrow the rows that visuals use. A slicer is a visual on the canvas. A filter is a setting stored in the Filter pane. Both end up as filter context, and measures calculate against that context. The totals you see are the same whether a selection came from a slicer or a filter.
The difference lies in who controls the selection and how visible it is:
- A slicer takes up canvas space, shows its selection on the page, and invites the reader to change it.
- A filter in the Filter pane takes no canvas space. It can be fixed by the author, hidden, or locked, and a reader may or may not change it.
So the choice is about reader experience and report design, not about different results.
Comparing the two tools
| Question | Slicer | Filter pane |
|---|---|---|
| Where does it live? | On the report canvas, as a visual | In the Filter pane, outside the canvas |
| Is the current selection visible on the page? | Yes, always | Only if the reader opens the pane |
| Which scopes can it use? | The page it sits on. Synced slicers can reach other pages. | Visual, page, or report |
| Can it filter one visual only? | Only by using Edit interactions | Yes, with a visual-level filter |
| Can it filter on a measure? | No. A slicer needs a column field. | Yes, with a visual-level filter on a measure |
| Can the author lock or hide it? | Only by hiding or removing the visual | Yes, with lock and hide |
| Does it support Top N or relative date rules? | Relative date and relative time slicers exist. Top N does not. | Yes, all filter types |
| Does it cost canvas space? | Yes | No |
A few rows need explanation.
A slicer cannot be built on a measure because it lists the values of a column. A filter can restrict a visual by a measure result, such as "show only products where Total Sales is greater than 10,000". That rule belongs in the Filter pane.
Top N is a filter type only. If you want "top 10 customers by sales", set it on a visual-level filter. A slicer can offer a fixed list of values, but it cannot rank them.
Decision criteria
Work through these questions in order. The first clear answer usually decides the matter.
1. Does the reader need to change the selection?
If readers will explore, choose a slicer. A region or year selector is the standard case. If the condition is fixed and the reader should never change it, use a filter instead. Examples are "exclude test orders", "only current fiscal year", or "only active customers". Putting these in a slicer would invite changes that break the report's meaning.
2. Should the selection be visible on the page?
A printed or exported page has no Filter pane. A slicer shows its state in the picture itself. If a screenshot must show which region is selected, use a slicer, or add a card that displays the selection with SELECTEDVALUE (covered in the DAX chapter).
3. What scope does the condition need?
- One visual only: a visual-level filter.
- Every visual on one page: a page-level filter, or a slicer on that page.
- Every page: a report-level filter, or a slicer synchronized across pages.
If you want one visual to ignore a page slicer, you can turn that interaction off with Edit interactions. If instead you want the condition applied to one visual only, a visual-level filter is simpler and does not touch the rest of the page.
4. What kind of rule is it?
- Pick values from a short list: a slicer or a basic filter.
- Compare to a number or text pattern ("contains", "greater than"): an advanced filter, or a Between slicer for numeric ranges.
- Rank by a measure: a Top N filter.
- A rolling window such as "last 30 days": a relative date filter, or a relative date slicer if the reader should choose the window.
5. How much space and complexity can the page take?
Each slicer adds a visual that renders, queries data, and competes for attention. Five slicers across the top of a page leave little room for charts and can overwhelm readers. Move rarely used conditions into the Filter pane.
The following diagram sums up the flow.
Worked scenario
A sales report has three pages: Overview, Products, and Regions. The requirements are:
- Readers choose a year on every page.
- Readers choose a product category on the Products page only.
- Test orders must never appear anywhere.
- A bar chart on Overview must always show the top 5 customers by sales.
- A card on Regions must show total sales for all years, as a benchmark.
Each requirement maps to a different tool:
| Requirement | Tool | Reason |
|---|---|---|
| Year on every page | Slicer on Overview, synchronized to the other pages | Readers change it, and the selection should be visible |
| Category on Products only | Slicer on Products, not synced | The condition matters on one page only |
| No test orders | Report-level filter, hidden or locked | The reader must not change it |
| Top 5 customers | Visual-level Top N filter on the bar chart | Ranking by a measure is a filter job, and it applies to one visual |
| All-years benchmark | A measure using `REMOVEFILTERS` | A filter would be removed from one visual only if the rest of the page still needs it |
The last row shows a case where neither tool is right. The card sits on a page where the year slicer applies, and you want it to ignore that slicer. You could turn off the interaction with Edit interactions. A measure is often safer, because the behavior travels with the measure wherever it is used:
Total Sales = SUM ( Sales[SalesAmount] )
Total Sales All Years =
CALCULATE ( [Total Sales], REMOVEFILTERS ( 'Date'[Year] ) )This measure assumes a Date table with a Year column. If your model names the table differently, adjust the reference. The measure ignores any filter on Date[Year], whether it comes from a slicer or the Filter pane. It does not ignore filters on other fields such as Product[Category].
Edge cases
Slicer and filter on the same field
A slicer for Product[Category] plus a page-level filter on the same field combine with AND logic. Only categories that satisfy both appear. If a page filter limits categories to Bikes and Clothing, the slicer still lists all categories in the model, but selecting Accessories returns a blank page. This is confusing for readers. Avoid putting both on one field unless the filter is a deliberate restriction that you also reflect in the slicer's list.
Hidden filters still apply
Hiding a filter in the Filter pane removes it from the reader's view, but it keeps filtering. Document any hidden filter in a visible place such as a text note, or readers will wonder why numbers differ from other reports.
Filters set by readers may not persist
By default, a reader's changes in the Filter pane in the Power BI service are saved for that reader as a personal view, depending on how the report is opened and configured. Slicer selections also persist by default. Do not rely on either as a way to hand a fixed state to every user. Use an author-set filter for that.
Slicers are not security
A slicer or a hidden filter limits what a visual shows. It does not stop a reader from seeing other data, because anyone who can edit the report or use Analyze in Excel can remove it. Use row-level security when some people must not see some rows at all.
Performance
Each slicer and each visual sends queries when selections change. A slicer on a high-cardinality column, such as a customer ID with hundreds of thousands of values, loads slowly and is awkward to use. A better design is a Dropdown slicer with search, or a filter in the pane with search enabled, or a lower-cardinality grouping field.
Common mistakes
- Using a slicer for a fixed business rule, so a reader can switch it off.
- Using a page-level filter where readers expect to choose, so they cannot find the control.
- Adding a slicer for every dimension "just in case", which crowds the canvas.
- Forgetting that a slicer only affects its own page unless you synchronize it.
- Expecting a slicer to filter by a measure.
Exercise
A report has a page with a bar chart of sales by product. You want that chart alone to show only the 10 products with the highest sales, and you do not want readers to change this. Which tool and scope do you use, and why not a slicer?
Show answer
Use a visual-level Top N filter on the bar chart, ranked by the Total Sales measure, and lock it so readers cannot change it. A slicer cannot rank by a measure, it has no Top N option, and it would apply to the whole page unless you restricted it with Edit interactions.
Exercise
A page-level filter limits Product[Category] to Bikes and Clothing. The same page has a Category slicer that lists all categories. A reader selects Accessories and sees a blank page. Why does this happen, and what are two ways to fix it?
Show answer
The page filter and the slicer selection combine with AND, and no row is both Accessories and in the allowed set. Fix it by removing the page filter and relying on the slicer, or by removing the slicer and keeping the filter as a fixed restriction. A third option is to remove the Accessories rows from the model or from the slicer's source.