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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
user83
Helper II
Helper II

sorting by column

hello,

 

I try to sort using "column sorting" on weekdays but this column sorting option doesn't make me the right sort to have Monday, Tuesday, 'Wednesday' 'Thursday' 'Friday' 'Saturday' 'Sunday' it sorts me  Sunday Thursday Monday Friday' 'Saturday

have you an idea please

 

thank you🙂 

2 ACCEPTED SOLUTIONS
edhans
Super User
Super User

You need a "Day of the Week" column in your date chart that is from 1 to 7 that corresponds to Sunday to Saturday, or From Monday to Sunday, or whatever you want it to be. Next, I would sort the "Day of the Week" by the "Day of the Week" column.

Next, you need to make sure that the visual is sorted by that. Often, a visual is sorted by default by the data themselves. CLick on the ellipses for the visual and sort area and make sure it is sorted by your day of the week. Otherwise, it will be apparently random if they are by the data values.

2020-05-01 16_47_50-Removing Filtering on VAR Tables - Power BI Desktop.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

amitchandak
Super User
Super User

@user83 , You can create Weekday with option 2

Week day =Weekday = WEEKDAY([Date],2)

 

Mark it as the sort column

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@user83 , You can create Weekday with option 2

Week day =Weekday = WEEKDAY([Date],2)

 

Mark it as the sort column

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

thank you @amitchandak 

edhans
Super User
Super User

You need a "Day of the Week" column in your date chart that is from 1 to 7 that corresponds to Sunday to Saturday, or From Monday to Sunday, or whatever you want it to be. Next, I would sort the "Day of the Week" by the "Day of the Week" column.

Next, you need to make sure that the visual is sorted by that. Often, a visual is sorted by default by the data themselves. CLick on the ellipses for the visual and sort area and make sure it is sorted by your day of the week. Otherwise, it will be apparently random if they are by the data values.

2020-05-01 16_47_50-Removing Filtering on VAR Tables - Power BI Desktop.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

thank you 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.