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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.