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! Learn more

Reply
sgallo
Advocate V
Advocate V

Sorting Columns in Matrix by Day Part

Hi all,

 

I am trying to order the columns in a Matrix by the Day Part so that the order is Morning-Lunch-Afternoon and not as below alphabetically A-Z:

 

sgallo_0-1723455350762.png

 

I tried to opend the semantic model and try to order in various ways the table where the day part is in it - both in Power Query and in the table view.
Note that DayPart and Weekpart are form 2 different tables but are needed to be shown together in a drill down as in the screenshot.

Is there a way to change the order for the day part?

Thanks!

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @sgallo 

Could you in the data or in a seperate table create a sort id:

SamWiseOwl_0-1723456309668.png

Then tell Power BI to sort the Day by this value:

SamWiseOwl_1-1723456349964.png

 

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Super User
Super User

Hi @sgallo 

Could you in the data or in a seperate table create a sort id:

SamWiseOwl_0-1723456309668.png

Then tell Power BI to sort the Day by this value:

SamWiseOwl_1-1723456349964.png

 

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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