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
MPetramalo214
Helper I
Helper I

How to make weekly line chart show in date order, not alphabetical order

I have a line chart that uses rolling 90 days of data - now that there is a new year of data in the set though; the line chart shows this week at the front instead of the end.  I've tried sorting the column by date, but because there is more than one date per week; it won't let me.  Does anyone know of a way to sort this the way I need to?

 

Graph:

MPetramalo214_0-1641398897841.png

^ Notice how Week 0 is shown at the front of the graph, instead of at the end; where it falls in relation to the other dates

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@MPetramalo214 , you should sort week name on week start date

 

example

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

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

Share with Power BI Enthusiasts: 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

Our weeks start on Tuesday for all of our reporting - is there a way to make the formula reflect that?  I tried adjusting it to 'Date'[Date]+1-1*WEEKDAY('Date'[Date],2)+1 which makes it reflect that weeks Tuesday as the first day of the week; but still includes the previous weeks Monday.

MPetramalo214_0-1641400537377.png

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@MPetramalo214 , you should sort week name on week start date

 

example

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Our weeks start on Tuesday for all of our reporting - is there a way to make the formula reflect that?  I tried adjusting it to 'Date'[Date]+1-1*WEEKDAY('Date'[Date],2)+1 which makes it reflect that weeks Tuesday as the first day of the week; but still includes the previous weeks Monday.

MPetramalo214_0-1641400537377.png

 

Nevermind, I was able to figure it out! For anyone curious - change the Weekday formula to reflect WEEKDAY('Date'[Date] -2)

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.

Top Solution Authors