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! Request now

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

 

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

 

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

@BozPLR  love it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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