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
Regular Visitor

I guess you can use the sort by column with date 

View solution in original post

rajendraongole1
Community Champion
Community Champion

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!!

 

 

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
Community Champion
Community Champion

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!!

 

 

PabloVallejo12
Regular Visitor

I guess you can use the sort by column with date 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors