Slicers in Power BI: the four kinds, sync and Select all

The four slicers in Power BI (slicer, button, list and input), when a slicer beats the Filters pane, syncing slicers across pages and in groups, how Select all really filters, slicers that filter each other, and the DAX to show what is selected.

Short answer: a slicer is a filter on the report page that readers click. Power BI has four: the classic Slicer (vertical list, tiles, dropdown, date range and date picker), the Button slicer (values as styled buttons in a grid), the List slicer (list or dropdown with pictures, hierarchies and search, in preview) and the Input slicer (type text or numbers to filter). Put the filters people use all the time on the page as slicers, and the rest in the Filters pane. Sync slicers carries a selection across pages.

A report that opens on "all years, all regions, all products" makes every reader do the same three clicks. Slicers placed where people look, with sensible defaults and synced across pages, decide whether a report feels quick or tedious.

Which slicer for which field?

SlicerShows values asBest for
Slicerlist, tiles, dropdown, between (range), date pickerdates and numeric ranges, long lists in a dropdown
Button slicerbuttons in a row, column or grid, with images and iconsfew values people switch often: year, region, channel
List slicer (preview)list or dropdown with pictures, labels and hierarchylong lists with search, product hierarchies
Input slicera text box: typed values become filter pillsfinding one order number, customer or SKU
The four slicers

Slicer or Filters pane?

Microsoft's reasons to use a slicer: common filters on the canvas for quick access, the current filter state visible at a glance, filtering by columns that are hidden in the data tables, and focused pages with slicers next to the visuals they affect. The Filters pane is better for filters that rarely change, for many filters at once (it takes no canvas space), and for filters readers should not change (lock or hide them).

How do you build and sync one?

  1. Select the slicer type in Visualizations and drag a field to it.
  2. Format visual, Slicer settings: the Style (for the classic slicer: vertical list, tile, dropdown, between, relative date) and Selection (single select, multi-select with Ctrl, Show "Select all").
  3. To use the same slicer on several pages: View, Sync slicers. For each page, tick Sync (the selection applies there) and Visible (the slicer appears there). A slicer synced but not visible still filters that page.
  4. To sync two different slicers (in composite models, for example, a Year from two sources), give both the same group name in Sync slicers, Advanced options.

Slicers filter other slicers on the page by default, so picking "Austria" leaves only Austrian cities in the city slicer. Format, Edit interactions changes which visuals a slicer filters.

What does Select all really do?

Microsoft documents a behaviour that surprises many: selecting Select all filters nothing, like clearing the slicer. Clearing one item after Select all creates an inverted filter ("Segment is not Midmarket") rather than a list of everything else. That means:

  • Values that another slicer filters out stay included when that other slicer changes.
  • New values arriving with the next refresh are included automatically.

For "everything except X, now and in the future", that is what you want. For "exactly these values", select them one by one.

How do you show what is selected?

A title or a card can say which values the slicer holds:

Selected Regions =
VAR N = COUNTROWS ( VALUES ( Region[Region] ) )
VAR All = COUNTROWS ( ALL ( Region[Region] ) )
RETURN
    SWITCH (
        TRUE (),
        NOT ISFILTERED ( Region[Region] ), "All regions",
        N = 1, SELECTEDVALUE ( Region[Region] ),
        N <= 3, CONCATENATEX ( VALUES ( Region[Region] ), Region[Region], ", ", Region[Region] ),
        N & " of " & All & " regions"
    )

It returns "All regions", "North", "North, South, West" or "5 of 8 regions". Use it in a visual's title with Title, fx, Field value: "Revenue by month: North, South".

What goes wrong?

  • Slicers on every page that disagree. Unsynced slicers with different selections confuse everyone; sync the shared ones.
  • A hierarchy column from auto date/time. For relative date and range styles, use the date column itself, not the auto date hierarchy.
  • Slow pages. Each slicer is a query, and slicers filtering each other add more. Keep five or fewer on a page; move the rest to the Filters pane.
  • Expecting Select all to list values. It is "no filter", and a cleared item is an "is not" filter (see above).
  • A slicer on a measure. Slicers take columns; to slice by a measure's range (customers with revenue over 1,000), build a band column or a what-if parameter.

Where can you check this?

Where do you start?

Pick the two or three filters people change most, make them slicers with good defaults, sync them across pages, and put the rest in the Filters pane. Button, list and input slicers covers the newer slicers, and the relative date slicer keeps "last 30 days" up to date.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.