cancel
Showing results for
Did you mean:
Highlighted
Helper IV

## 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.

1 ACCEPTED SOLUTION

Accepted Solutions
Helper I

## Re: Slicer Order Alpha Numeric

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 6
Helper I

## Re: Slicer Order Alpha Numeric

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
Super User IV

## Re: Slicer Order Alpha Numeric

You need another column and use Sort By

---------------------------------------

Not the Power BI thought police...

##### I have NEW book! DAX Cookbook from Packt
Over 120 DAX Recipes!

Proud to be a Datanaut!

Helper I

## Re: Slicer Order Alpha Numeric

@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.

Super User IV

## Re: Slicer Order Alpha Numeric

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

---------------------------------------

Not the Power BI thought police...

##### I have NEW book! DAX Cookbook from Packt
Over 120 DAX Recipes!

Proud to be a Datanaut!

Helper IV

## Re: Slicer Order Alpha Numeric

@devenchjthis did not work, because it is droping Alphabets values not showing ZX AB and etc. Only showing numeric values.

Any Idea?

Helper I

## Re: Slicer Order Alpha Numeric

Hello @sabeensp  ,  I don't see any issue with slicer, It is showing all the records.

Look at PBIX here

-Devendra

Announcements

#### New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

#### ‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

#### Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

#### Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

#### Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors