Forum Discussion
Analitika
Post Prodigy
4 years agoSorting year weeks in Power BI
Hello, I would like to ask how to properly sort year week because in visual it seems unsorted: Here is the view of it Is possible to fix it?
ddpl
Solution Sage
4 years agoHi
Changed data type as Date and format as below
- Analitika4 years ago
Post Prodigy
I am getting this
- rohit_singh4 years ago
Solution Sage
Hi Analitika ,
Please create a new column on your date table like below :YearWeekIndex = dim_date[Year] * 100 +dim_date[Week of Year]Then select your YearWeek column, go to sort by column and click on 'YearWeekIndex'. Your yearweek field will now be sorted using this column.Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊