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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
PabloVallejo12
Frequent Visitor

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!





PabloVallejo12
Frequent Visitor

I guess you can use the sort by column with date 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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