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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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