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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Gawain
Frequent Visitor

Table data sorting problem

Gawain_0-1728378734671.pngGawain_1-1728378930438.png

As you can see, my data looks like this, but as you can see, first of all, there's something wrong with the order of the dates, now they're in character order, and second, we want to change the order to Enterprise > Partner > Mentor, which will also change the normal alphabetical order, how can I change that? My final expectation is to sort by date ascending, then Enterprise > Partner > Mentor. I hope someone will help me. Thank you very much

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Gawain ,

Based on the testing, please try the following methods:

1.Create the new column to filter the month name.

Month number = MONTH('Table test'[Date])

2.Select the Month name column and select sort by month number column.

vjiewumsft_2-1728461399418.png

vjiewumsft_1-1728461389801.png

3.Create the new table to filter the category.

vjiewumsft_3-1728461406932.png

4.Drag the new table category field to the matrix visual.

vjiewumsft_4-1728461412994.png

5.Select new table category field and sort by column 1.

vjiewumsft_5-1728461419450.png

vjiewumsft_6-1728461425250.png

 

Best Regards,

Wisdom Wu

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Gawain ,

Based on the testing, please try the following methods:

1.Create the new column to filter the month name.

Month number = MONTH('Table test'[Date])

2.Select the Month name column and select sort by month number column.

vjiewumsft_2-1728461399418.png

vjiewumsft_1-1728461389801.png

3.Create the new table to filter the category.

vjiewumsft_3-1728461406932.png

4.Drag the new table category field to the matrix visual.

vjiewumsft_4-1728461412994.png

5.Select new table category field and sort by column 1.

vjiewumsft_5-1728461419450.png

vjiewumsft_6-1728461425250.png

 

Best Regards,

Wisdom Wu

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

ryan_mayu
Super User
Super User

maybe you can try create dim tables and manually create a order column. 

creating relationship between dim tables and fact tables. 

At last, use the columns from dim table in the matrix visual





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Joel-CG
Frequent Visitor

Hello @Gawain ,

You can sort a text column using a number column for reference. You can refer to this link: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto... 

As ryan mentioned you can make use of a custom table or something similar to order Enterprise > Partner > Mentor, maybe you can have on the same table or another "Enterprise = 1, Partner = 2, Mentor = 3" and use it to order.

Best regards,

Joel

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.