10

I have a slicer with 4 values {daily, biweekly, monthly, annually}, and I want to sort them in that specific, custom order (that IS NOT alphabetical). My data query has them sorted correctly (by a numbered sort column), and they're sorted correctly in the table display. However the sort order does not transfer to the slicer itself where they are displayed alphabetically.

dav
  • 10,021
  • 5
  • 30
  • 52

2 Answers2

5

The key here is to use Sort by Column under the modeling tab where you sort by a column that defines the order.

Sort by Column

Once that is set, your slicer should automatically sort how you want.

Slicer Ordered

Alexis Olson
  • 275
  • 2
  • 9
2

This is really the same answer as the one from Alexis Olson, but with some more elaboration. The tricky part is that when viewing your table that holds the columns for the slicer, you must highlight the column that holds the values displayed in the slicer, but then go to the "Sort By Column" and select the OTHER column that you want to sort by. Step by Step

  1. Go to Data tab on the left ribbon
  2. Select the table you're using in the slicer on the table list on the right
  3. Click on the header for the column that is DISPLAYED in the slicer
  4. Click on "Sort by column" in the toolbar
  5. Choose the other column, the one that you want to sort by

enter image description here

Eric Barr
  • 133
  • 1
  • 7
  • oh geez, thanks so much for this! very unintuitive (at least to me) that I had to first select the column being *displayed* and THEN set the sort column. I had been messing with it for way too long – Rob3C Oct 20 '22 at 12:53