cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User II
Super User II

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
Super User II
Super User II

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


Super User II
Super User II

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

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors