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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
BozPLR
Frequent Visitor

Trouble with Custom Sort

I am having trouble getting a custom sort to work. 

 

Following the great response here , I created a sort order table with my desired sort order for the statuses. 

sort table.jpg

 

I connected the sort table to the fact table via a relationship. 

relationship.jpg

 

I used the Status from the sort table in a visual, sorted by it, and it is still sorting alphabetically instead of the desired sort order. 

wrong sort.jpg

 

Could anyone advise me on how to troubleshoot why this is not working?

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hey, @BozPLR ,

Silly question, but do you have the column "Status" in the sort table, sorted by column "Order"? Because I can see you have Order sorted by Orded, which is good, but you primarily need to sort the thing you will display by the numeric value.

 

vojtechsima_0-1761343566360.pngvojtechsima_1-1761343585063.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

5 REPLIES 5
v-hjannapu
Community Support
Community Support

Hi @BozPLR,

I would also take a moment to thank @Ritaf1983 , @vojtechsima  for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Regards,
Coumminity Support Team.

Ritaf1983
Super User
Super User

Hi @BozPLR 

If the sort order is still not applied, it usually means the visual is using the Status column from the fact table instead of the one from your custom sort table.
The “Sort by Column” feature only works when both columns belong to the same table.

You can either duplicate the Status column inside the sort table and use it directly in your visuals, or merge the sort order column into your fact table.

You might also find this post helpful — it includes a working example and file:
https://community.fabric.microsoft.com/t5/Desktop/Need-to-break-out-a-matrix-outline-data-set-from-i...

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
vojtechsima
Super User
Super User

Hey, @BozPLR ,

Silly question, but do you have the column "Status" in the sort table, sorted by column "Order"? Because I can see you have Order sorted by Orded, which is good, but you primarily need to sort the thing you will display by the numeric value.

 

vojtechsima_0-1761343566360.pngvojtechsima_1-1761343585063.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

No silly questions here! The way that you phrased me made sense to me. We are functional now. Thank you much!

@BozPLR  love it.






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors
Top Kudoed Authors