Forum Discussion

sabeensp's avatar
sabeensp
Helper IV
6 years ago
Solved

Slicer Order Alpha Numeric

Hello,

I have a table with Column CurrentValues(Text Field) column has over 2000 unique values, I have a slicer on this column. I need to order slicer values as desired in the image below. Numeric first and then Alphabetical. Please help.

  • Hello sabeensp ,

     

    you can setup sort order as below 

     

    1. Create 2 new calculated columns in addition to currentvalue column.

     

    NumCheck
    VAR a = value(if(ISERROR(VALUE('Table'[CurrentValue])),"9999",'Table'[CurrentValue]))
    RETURN a
     
    currentvaluecopy = 'Table'[CurrentValue]
     
    2. Now select column currentvaluecopy from Data tab and use "Sort By Column" --> NumCheck
     
    3. Create Slicer using column currentvaluecopy.
     
    Please note, I tried creating sort by column on CurrentValue column but then sort by column is not working, so just duplicated column to use into Slicer.
     
    Please mark solution as Accepted if it helps.
     
    Regards,
    Devendra

6 Replies

  • Hello sabeensp ,

     

    you can setup sort order as below 

     

    1. Create 2 new calculated columns in addition to currentvalue column.

     

    NumCheck
    VAR a = value(if(ISERROR(VALUE('Table'[CurrentValue])),"9999",'Table'[CurrentValue]))
    RETURN a
     
    currentvaluecopy = 'Table'[CurrentValue]
     
    2. Now select column currentvaluecopy from Data tab and use "Sort By Column" --> NumCheck
     
    3. Create Slicer using column currentvaluecopy.
     
    Please note, I tried creating sort by column on CurrentValue column but then sort by column is not working, so just duplicated column to use into Slicer.
     
    Please mark solution as Accepted if it helps.
     
    Regards,
    Devendra
    • devenchj's avatar
      devenchj
      Helper I

      Greg_Deckler , I Believe thats the issue that sabeensp  does not have another column available like Index to use into Sort By Column. column should be converted into number first. I already provided solution with required steps in this post.

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        devenchj Right, sometimes I open multiple windows as I am replying to messages and someone replies before I get to that tab.