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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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