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! Request now

Reply
Anonymous
Not applicable

Dax Sorting weekday in Chronological order

zxasS.PNG
Hello World,

I have created a visualization where I sort the axis by weekday. But it is not giving me the weekday in chronological order. How do I fix this. I want the starting day of the week from Sunday (USA weekday).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create columns like below:

t_weekdays = WEEKDAY('Table'[date],1)

t_day = FORMAT('Table'[Date], "dddd")

Put t_day in x-asix field, t_weekdays in tooltips field.

Then sort the visual by tooltips column.

vjaywmsft_0-1669714202905.png

 

Best Regards,

Jay

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Create columns like below:

t_weekdays = WEEKDAY('Table'[date],1)

t_day = FORMAT('Table'[Date], "dddd")

Put t_day in x-asix field, t_weekdays in tooltips field.

Then sort the visual by tooltips column.

vjaywmsft_0-1669714202905.png

 

Best Regards,

Jay

Jihwan_Kim
Super User
Super User

Hi,

In the calendar table, try to create a new column for the sorting purpose. like the attached pbix file.

And then, click Weekday column -> sort by Weekday sort CC.

 

 

Please check the attached pbix file.

 

 

Weekday sort CC = 
WEEKDAY([Date],1)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

I have a column "Day". I created a new column. But it's giving me an error

Calendar =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2022, 1, 1 ), DATE ( 2022, 12, 31 ) ),
    "Weekday", FORMAT ( [Date], "dddd" )
)

Hi @Anonymous 
Please try new column then use it a sort by column

Weekday Number =
WEEKDAY ( 'Calendar'[Date], 1 )

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.