Button, list and input slicers in Power BI

How the button slicer, list slicer and input slicer in Power BI work, button layouts and images, highlight labels with a measure, list hierarchies and dropdown mode, the input slicer's operators and numeric ranges, and when to use each.

Short answer: the three newer slicers each do one job better than the classic slicer. The button slicer shows values as styled buttons in a row, column or grid, with images and a highlight label (a measure under each button). The list slicer (in preview) is a list or dropdown with pictures, labels, hierarchies and search. The input slicer (called text slicer during preview) lets readers type values, which become filter pills, with operators like contains any and numeric ranges like 4-5 or >600.

The classic slicer is a plain list. A report for a sales team needs region buttons with the region's revenue under each name, a product list that opens by category, and a box to paste an order number. Each of those is now one visual.

What does each slicer look like?

Button slicer
  • four buttons in a grid: North, South, East, West
  • each shows its revenue as a highlight label
  • the selected one is filled
List slicer
  • a dropdown: Bikes opens to Mountain, Road, Touring
  • pictures next to items
  • selected items first
Input slicer
  • a text box: typing 10442 and 10519 makes two pills
  • the report filters to those orders
Three slicers on one page

How do you set up the button slicer?

  1. With nothing selected, pick Button slicer in Visualizations and select a field.
  2. Format visual, Multi-button layout: vertical, horizontal or grid. Fixed size sets each button's height and width in pixels; Fit to space (previously Autogrid) makes buttons grow or shrink to fill the visual, or, when off, reserves room for the set number of buttons.
  3. Add images or icons per button, and style the states (default, hover, pressed, selected).
  4. Drag a measure to Highlight label: each button shows the value below its name. When readers select something in another visual, the related buttons stay highlighted and the others dim.
  5. Conditional formatting colours the buttons by a measure, for example red for regions below target.

The highlight label measure works like any other:

Revenue = SUM ( Sales[Amount] )

Revenue vs Target Colour =
IF ( [Revenue] >= [Revenue Target], "#1A9E75", "#D64550" )

How do you set up the list slicer?

  1. Pick List slicer and drag a field to Values. Several fields make a hierarchy (Category, then Subcategory); readers expand and collapse groups.
  2. Choose list or dropdown mode: the dropdown opens a drawer whose height and width you set, and Show selected first keeps the current picks at the top.
  3. Add pictures and labels next to items, and set the item layout (fixed size or fit to space) as for buttons.

The list slicer is in preview, so check the preview status before relying on it in a production report.

How do you set up the input slicer?

The input slicer has two modes:

  • With a data column (filtering mode): typed values filter the report. Operators decide how text matches: for example Contains all or Contains any. Format, Slicer settings, Options sets single or multiple values.
  • Without a data column (input mode): the text is not a filter but an input, for example for translytical task flows that write back data; it can be limited to numbers.

For a numeric column, the input slicer reads expressions: a range 1-2, >2, <2 or a single value 1. Several pills combine, such as 1, 2, 4-5 and >600. Double-click a pill to edit it.

A typical use: support staff paste three order numbers and see those orders' details. Pair the input slicer with a table and a measure that says what was found:

Orders Found =
VAR N = DISTINCTCOUNT ( Orders[Order ID] )
RETURN IF ( ISFILTERED ( Orders[Order ID] ), N & " orders found", "Type an order number" )

Which one should you use?

The fieldSlicer
2 to 8 values people switch oftenbutton slicer
dozens to thousands of values, maybe with a hierarchylist slicer (or classic dropdown)
IDs and codes people already knowinput slicer
dates and numeric rangesclassic slicer: between, relative date, date picker

What goes wrong?

  • Too many buttons. Twenty buttons is a wall; use the list slicer.
  • Highlight labels that confuse. The measure under a button follows other filters on the page; label it ("Revenue, this year") in the title.
  • Preview in production. The list slicer may change before general availability.
  • Input slicer with the wrong operator. "Contains any" with a short word ("10") matches thousands of order numbers; use exact values or whole IDs.

Where can you check this?

Where do you start?

Turn the one or two most-used filters into button slicers with a highlight label, and add an input slicer wherever people look things up by ID. Slicers in Power BI covers syncing and Select all for all four kinds.

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.