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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Year/month/week column is not sorting correctly & its text format not converting to number

Hi there,

 

So i have a year/month/week column in a report where i want to see the trend of the values over time.

 

The problem that I have been facing is that the 10th month (oct) kept showing up after Jan (1st month) instead of September (9th month). This was messing up the trendlines. So at that time, I changed the order of the values to show year/week/month instead (where week is week of the year). Now I am facing the same issue - the 10th week is not showing up after the 9th one but after the 1st one. 

 

After some research, I figured out that this is because this column is in the text format. But when I try to convert it to a number format, it doesn't work [I have combined values with the delimiter "/" so it keeps saying the format cannot be converted]. 

 

When I try to sort the column w.r.t the week of year column it gives me this error:

 

k_deck_0-1647417641408.png

 

I really just want the x axis to be sorted correctly. I'll appreciate the help!

 

Thanks!

 

1 REPLY 1
Thejeswar
Super User
Super User

Hi @Anonymous ,

The Column Week of year that you are trying to sort the date column is having duplicates. i.e Multiple dates having same Week of year, which is expected. So it cannot sort by this column

 

Instead you can introduce a new column that you can use for sorting the Column that you are using in your axis. 

 

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
Top Kudoed Authors