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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jeve
Frequent Visitor

Sort Slicer Values

power bi - task type abbrev.JPG

I have a list of data with 3 possible values - B-CS, C-CS and LT.

When applying the slicer it defaults to sorting alphabetically; is it possible to sort by - LT, B-CS and then C-CS?

1 ACCEPTED SOLUTION

hi, @jeve 

If the rank is a column not a measure? Measure won't show in it.

If you still have the problem, please share a simple pbix file for us have a test.

 

By the way, the column should be created in edit queries, not a calculate column.

and here is my sample pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

HI, @jeve 

Try this simple way:

Step1:

Create a rank column for this column in Edit Queries

3.JPG

Step2:

Then select [Task Type] filed, click Modeling->Sort by column->selected [Rank]

4.JPG

 

Result:

5.JPG

 

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

https://radacad.com/sort-by-column-in-power-bi

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you. It helps a lot.

Hi Lin,

 

Thanks for the reponse. I've done all the steps but when I click on "Sort by Column" there's no drop down option? Any idea what could be the cause of that?

power bi - task type abbrev2.jpg

hi, @jeve 

If the rank is a column not a measure? Measure won't show in it.

If you still have the problem, please share a simple pbix file for us have a test.

 

By the way, the column should be created in edit queries, not a calculate column.

and here is my sample pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
domingom
Frequent Visitor

Hi @jeve . For me, the "Sort by Column" drop-down only becomes enabled when I select both the slicer and the associated table in the Fields pane. Also, the "Sort by Column" drop-down does not show all fields within the table. It shows columns but no measures. I hope this is helpful.

Anonymous
Not applicable

hi @jeve 

What you can do is add a number infront of the sort order that you prefer. Then you can sort it. Its  workaround.

Else you can create an index for the sort in edit query. While visualising try to select the column ( i.e. the column which you want to sort and then goto modeling tab and specify the Sort Order --> Index column.

Thats all i can think of 🙂

Capture9.GIF

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.