Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
sabeensp
Helper IV
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.

2020-02-28_7-35-12.png

1 ACCEPTED SOLUTION
devenchj
Helper I
Helper I

Hello @sabeensp ,

 

you can setup sort order as below 

 

slicersort2.png

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

View solution in original post

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

You need another column and use Sort By



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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

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

 

Any Idea?

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

 

Sorting1.pngsorting2.png

Look at PBIX here 

https://drive.google.com/open?id=1A-k8A61_GMmDRwGp5o_gQswsnJebZ5Lv

 

-Devendra

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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
devenchj
Helper I
Helper I

Hello @sabeensp ,

 

you can setup sort order as below 

 

slicersort2.png

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.