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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sorting slicer values based on a separate field

We have a project report that is split by the overall RAG status for the projects, Red and Amber appear on one page, with Green on a separate page.  That side of it is controlled by a filter on the RAG field.  On the Red/Amber report page we have a slicer, listing the Red/Amber RAG projects,  that allows you to deep-dive each project, to display a whole bunch of visuals for the selected project.

 

What I'd like to do is sort the slicer to have the Red projects at the top of the pick list, followed by the Amber projects.

 

I've seen a number of queries, but most of these are centred on date sorting, is there a way to sort a slicer based on a totally separate field ?

 

Thanks in advance for any suggestions

Regards

Fred

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amitchandak 

 

Found a solution, and now understand the Youtuve video you referenced.

 

I went to the Data view, selected the table/field I needed to sort and then, on the Column tools tab, used the "Sort by column" option.  In the list of fields, I selected the field I needed the Project Names to be sorted by, Overall RAG.  That gave me a partial success (we have Green=1, Amber=2, Red=3), so with the page filtered to show only Red & Amber (3 & 2) the order of the projects was wrong as the "Sort by column" doesn't have the ascending/descending option available and only sorts ascending, meaning that the Amber projects were listed before the Red. 

 

With a little DAX I created a "reverse sort" column and used that as my "Sort by column" allowing the slicer to show Red projects first, followed by Amber.

 

SUCCESS !

 

Thanks for the ppointer to the video, it set me on the right path

 

Fred

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @amitchandak ,

Unfortunately there's no Tooltips option on a Slicer visual, which is where I want to apply a Sort.  The Sort option on the slicer only shows the field you are slicing on, nothing else, which is my problem.
The Youtube, interesting, but it makes no mention of sorting a slicer on an alternative field, which is what I'm trying to achieve.  Instead it, like so many other solutions, relates to dates in visuals, which is not what I am trying to do.

MitieFred_0-1639497662396.png

I would like to sort the project names, in the slicer, based on a Project Rag field, but there appears to be no way to select an alternative sort field.  I've tried using the Hierarchical slicer, but that simply gives Sort Ascending/Descending but no field options to select.

 

Stumped 🙂

 

Regards

Fred

amitchandak
Super User
Super User

@Anonymous , A visual can be sorted on tooltip measure too.

 

But slicer will sort on the column or the sort column

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

 

Found a solution, and now understand the Youtuve video you referenced.

 

I went to the Data view, selected the table/field I needed to sort and then, on the Column tools tab, used the "Sort by column" option.  In the list of fields, I selected the field I needed the Project Names to be sorted by, Overall RAG.  That gave me a partial success (we have Green=1, Amber=2, Red=3), so with the page filtered to show only Red & Amber (3 & 2) the order of the projects was wrong as the "Sort by column" doesn't have the ascending/descending option available and only sorts ascending, meaning that the Amber projects were listed before the Red. 

 

With a little DAX I created a "reverse sort" column and used that as my "Sort by column" allowing the slicer to show Red projects first, followed by Amber.

 

SUCCESS !

 

Thanks for the ppointer to the video, it set me on the right path

 

Fred

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors