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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mrrobottelg
Frequent Visitor

Sort by WeekDay Names

Hi,

 

I am not able to sort WeekDay names. I want to sort by Mon to Sun. please help

 

mrrobottelg_0-1719660879724.png

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @mrrobottelg - In your date table, create one calculated column with Day Number as below and sort it on the top of column Week day with Day number.

 

calculated column as below:

 

DayNumber = WEEKDAY([Date], 2)
 
 
Once created new column sort the Name of the day (Week day in your case) with sort by column Day Number as below image:
 
rajendraongole1_0-1719666077333.png

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





View solution in original post

3 REPLIES 3
mrrobottelg
Frequent Visitor

It worked. Thank you.

Ashish_Mathur
Super User
Super User

Hi,

In the Calendar table, create a calculated column formula to extract the Day of week

DoW = format(calendar[date],"dddd")

In MS Excel, create a 2 column by 7 row table with day names in column 1 and order of those day names in column 2.  Name this table as doworder.

Day name Day order
Monday 1
Tuesday 2
Wednesday 3
Thursday 4
Friday 5
Saturday 6
Sunday 7

 

In the Calendar Table, write this calculated column formula to brin over the Order column from another table

Dow order = related(doworder[order])

Click on any cell in the Dow column of the Calendar table and under Sort by column, select Dow order.  to your visual, drag Dow from the Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
rajendraongole1
Super User
Super User

Hi @mrrobottelg - In your date table, create one calculated column with Day Number as below and sort it on the top of column Week day with Day number.

 

calculated column as below:

 

DayNumber = WEEKDAY([Date], 2)
 
 
Once created new column sort the Name of the day (Week day in your case) with sort by column Day Number as below image:
 
rajendraongole1_0-1719666077333.png

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.