cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
d_sandip59 Frequent Visitor
Frequent Visitor

How to sort the week day names as Monday, Tuesday and Wednesday like this at week day drop down?

Hi,

I have used the below DAX

WeekDay = format(Test[FIRST_TOUCH_DATE_TIME],"dddd")

and it gives me this:

Saturday, sunday, Monday i.e Week day names, but I nned to show the name in a sorted order like Monday, Tuesday, Wednesday..

Currently it is hown as below, so how can I achieve this?

Capture12.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
AngadK Regular Visitor
Regular Visitor

Re: How to sort the week day names as Monday, Tuesday and Wednesday like this at week day drop down?

Hi @d_sandip59

There is no direct option to sort week day, try to sort manually by the following way-

  1. Create a calculated column and write the below DAXWeekDay Sort = SWITCH(Table1[WeekDay],"Monday",01,"Tuesday",02,"Wednesday",03,"Thursday",04,"Friday",05,"Saturday",06,"Sunday",07,08)
  2. Sort "WeekDay Name" column by "WeekDay Sort" Column under the Modeling tab in ribbon palet.

Capture.PNG

For more details see the pbix file. Hope this will help you!!!

Download pbix file

2 REPLIES 2
LivioLanzo Super Contributor
Super Contributor

Re: How to sort the week day names as Monday, Tuesday and Wednesday like this at week day drop down?

hi @d_sandip59

 

Add a new column with the weekday number and then sort Weekday by WeekDay number in Table view

 


 


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


Proud to be a Datanaut!  

AngadK Regular Visitor
Regular Visitor

Re: How to sort the week day names as Monday, Tuesday and Wednesday like this at week day drop down?

Hi @d_sandip59

There is no direct option to sort week day, try to sort manually by the following way-

  1. Create a calculated column and write the below DAXWeekDay Sort = SWITCH(Table1[WeekDay],"Monday",01,"Tuesday",02,"Wednesday",03,"Thursday",04,"Friday",05,"Saturday",06,"Sunday",07,08)
  2. Sort "WeekDay Name" column by "WeekDay Sort" Column under the Modeling tab in ribbon palet.

Capture.PNG

For more details see the pbix file. Hope this will help you!!!

Download pbix file

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 27 members 1,032 guests
Please welcome our newest community members: