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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

When week on the Y axis not lined up in order (Screenshots attached)

Hello!

 

I am wondering how can I rearrange y-axis the weeks in order? For example, week 1, week 2, week 3, week 4... As you can see from the screenshot, the order of the week is a little messed up. I am using line chart if that helps 🙂 

 

Weeks not in order.JPG

Thank you!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Anonymous 

You need to add a numeric column to your table that has the week field on it.  1, 2, 10, 22, 37, etc.  Then you set the sort order on your week field to use the WeekNum column.  You can see a solution for a similar problem here.

https://community.powerbi.com/t5/Desktop/Issue-with-Table-Not-Sorting-by-Month-Day/td-p/773279

 

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi, the best way to do this is like jdbuchanan71 said. You can also solve this from other perspective. You can transform your data with two values for the int in order to order correctly. Like this:

Week 01

Week 02

...

Week 10

Week 11

 

Saving the data as text like this will order in correct way.

 

Hope this helps too.

 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

jdbuchanan71
Super User
Super User

Hello @Anonymous 

You need to add a numeric column to your table that has the week field on it.  1, 2, 10, 22, 37, etc.  Then you set the sort order on your week field to use the WeekNum column.  You can see a solution for a similar problem here.

https://community.powerbi.com/t5/Desktop/Issue-with-Table-Not-Sorting-by-Month-Day/td-p/773279

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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