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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
wherdzik
Helper III
Helper III

How do I get Day of Week in the Proper Order?

I cannot get this to work, not sure why it is not already sorting this for me especially with all the AI stuff being implemented.  Can someone please help?  I was reaing in some articles to index them? or to sort them? but I do not see anywhere where I can sort in PowerQuery.  If someone can kindly nudge me in the right direction I would greatly appreciate it. Thanks and Happy Monday.

 

wherdzik_0-1698074023031.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @wherdzik 
You need to add a column with a numeric value of the weekday :

Ritaf1983_0-1698076552285.png

And then sort your text on weekdays by this column:

Ritaf1983_1-1698076619447.png

I attached the PBIX you can follow my steps from it.

Please note :
The best practice for working with days is to use a date table, which includes all needed columns.

For more information please refer :

https://radacad.com/all-in-one-script-to-create-calendar-table-or-date-dimension-using-dax-in-power-...

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

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @wherdzik 
You need to add a column with a numeric value of the weekday :

Ritaf1983_0-1698076552285.png

And then sort your text on weekdays by this column:

Ritaf1983_1-1698076619447.png

I attached the PBIX you can follow my steps from it.

Please note :
The best practice for working with days is to use a date table, which includes all needed columns.

For more information please refer :

https://radacad.com/all-in-one-script-to-create-calendar-table-or-date-dimension-using-dax-in-power-...

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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