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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
EsterBR
Helper II
Helper II

Order Week Year Chronologically

Hi,

 

I have the following table:

EsterBR_1-1718116106840.png

I would like to order the field W Week Year chronologically, since when I add it to a visual appear in the following order. The calendar table contains dates for 2023 and 2024.

EsterBR_0-1718116004864.png

How can I order it chronologically? Thank you so much!

3 ACCEPTED SOLUTIONS

I guess you can use the sort by column with date 

View solution in original post

rajendraongole1
Super User
Super User

Hi @EsterBR - thanks @PabloVallejo12  for sharing your inputs,I  just want to few points,

 

@EsterBR  select the column Weekyear and sort the column based on weeknumber and order will get automatically based on on

 

rajendraongole1_1-1718116998222.png

 

It works , please check .

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

ryan_mayu
Super User
Super User

your week year column is text type. try to change it to year(date)*100+weeknum(date)

then sorty the W week year column by week year column

https://learn.microsoft.com/ms-my/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

your week year column is text type. try to change it to year(date)*100+weeknum(date)

then sorty the W week year column by week year column

https://learn.microsoft.com/ms-my/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




rajendraongole1
Super User
Super User

Hi @EsterBR - thanks @PabloVallejo12  for sharing your inputs,I  just want to few points,

 

@EsterBR  select the column Weekyear and sort the column based on weeknumber and order will get automatically based on on

 

rajendraongole1_1-1718116998222.png

 

It works , please check .

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I guess you can use the sort by column with date 

Helpful resources

Announcements
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.

May 2025 Monthly Update

Fabric Community Update - May 2025

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