Forum Discussion
Week sorting issue
- Anonymous4 years ago
Hi Ramesh4321,
You need to create an index column for the [week_year] column. For example.
Index = YEAR('Table'[Date])*1000+WEEKNUM('Table'[Date])Then select the [week_year] column and sort by index.
If the amount of data is large, you can use the SUMMARIZE function to create a summary table.
This is the table I used for testing.
This is the final sorting result.
Attached PBIX file for reference.
Best Regards,
Community Support Team_GaoIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi Ramesh4321,
You need to create an index column for the [week_year] column. For example.
Index = YEAR('Table'[Date])*1000+WEEKNUM('Table'[Date])
Then select the [week_year] column and sort by index.
If the amount of data is large, you can use the SUMMARIZE function to create a summary table.
This is the table I used for testing.
This is the final sorting result.
Attached PBIX file for reference.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data