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
Anonymous
Not applicable

Sorting the slicer by defining the Position

Hi,

Need help on this:)

i have slicer with the values as below:

 

America (c)

Eroupe (a)

United Staes (b)

 

Here the catch is i need to sort by the values present in the Brackets(), but present sorting as happen on the names of the countries. Expected result should be as follow:

 

Eroupe (a)

United Staes (b)

America (c).

 

Could any one please suggest any way to achieve this. Thanks!

 

2 ACCEPTED SOLUTIONS
Singaravelu_R
Resolver III
Resolver III

Add the calculated column sort numbers which way you want as per screen shot column and selecte the country click sort by column

 

Singaravelu_R_0-1619697071353.pngSingaravelu_R_1-1619697087327.png

 

View solution in original post

v-shex-msft
Community Support
Community Support

HI @Anonymous,

You can create a new calculated table with extract raw field values and custom index values, then set up 'sort by column' properties based on the 'index' value. 

After these steps, link to a table field and use new table field to create a slicer, the new field 'sort order' will be changed to your index values.

Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Anonymous,

You can create a new calculated table with extract raw field values and custom index values, then set up 'sort by column' properties based on the 'index' value. 

After these steps, link to a table field and use new table field to create a slicer, the new field 'sort order' will be changed to your index values.

Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Singaravelu_R
Resolver III
Resolver III

Add the calculated column sort numbers which way you want as per screen shot column and selecte the country click sort by column

 

Singaravelu_R_0-1619697071353.pngSingaravelu_R_1-1619697087327.png

 

jlf81
Frequent Visitor

You should be able to do this by adding a sort by column, this link will take you through how to do it

 

https://radacad.com/sort-a-column-with-a-custom-order-in-power-bi

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.