Forum Discussion

SNik's avatar
SNik
Helper I
10 years ago
Solved

Slicer Sort Issue

Hi i have a table like  Field1    field2   1            qrs   2            abc   3            xyz   4            lmn   i want to use a slice and display the field2 but i want it to be sorted b...
  • greggyb's avatar
    10 years ago

    SNik, your verbiage gives me pause as to how you applied the sort. I will err on the side of being overly explicit, as I am unable to reproduce the behavior you describe. When I set a Sort By attribute on a field in PBI Desktop, that sort order is respected in any slicer I create.

     

    1. Select [field2]
    2. With [field2] selected choose Sort By Column
    3. In drop-down menu that appears, place a check mark next to [Field1]

    As I said, the specific verbiage you used gave me pause, and it sounded like you might be selecting [Field1] and applying a sort order to it.

     

     

    Sort By Column is essentially saying "sort the currently selected field using the order defined by the associated values in another field."

    It is not saying "apply the values of the selected field to another when sorting."

     

    I hope I am being clear, and again I apologize if I'm only telling you things you already know. I just want to make sure we're performing the same steps and getting different results.

  • Anonymous's avatar
    Anonymous
    10 years ago

    SNik Return a single value per combination. All "Under 1000" will = 1, all "[01  -2  K]" will = 2

    row  price pricebracket

    1      1       Under 1000

    2      1       Under 1000

    3      1       Under 1000

    4      1       Under 1000

    5      2      [01  -2  K]