Forum Discussion
Date Sorted Chronological Order based on initial
I want to sort the dates chronologically based on the initials of the months, like J for January, F for February, etc. I already have that column, but the problem is that every time I add it to a chart, it doesn’t appear in the correct order, even though I’ve sorted it in the Data view.
Hi DataNerd4820
See my blog post here, specifically solution 2 using Group By Columns:
There is a PBIX you can download from that blog post to see how it's set up.
Summary:
- Add a Month Number column if you don't have one already.
- In Tabular Editor, for the column Month Short Name, set Group By Columns & Sort By Column properties to Month Number.
- Also for column Month Name, set Sort By Column to Month Number.
Note: You can also set the Group By Columns property in TMDL View but Tabular Editor is easier in my opinion.
Are you able to get this working at your end?
4 Replies
- OwenAugerSuper User
Hi DataNerd4820
See my blog post here, specifically solution 2 using Group By Columns:
There is a PBIX you can download from that blog post to see how it's set up.
Summary:
- Add a Month Number column if you don't have one already.
- In Tabular Editor, for the column Month Short Name, set Group By Columns & Sort By Column properties to Month Number.
- Also for column Month Name, set Sort By Column to Month Number.
Note: You can also set the Group By Columns property in TMDL View but Tabular Editor is easier in my opinion.
Are you able to get this working at your end?
- v-csrikanthCommunity Support
HI DataNerd4820
Thank you for being part of the Microsoft Fabric Community.
As highlighted by OwenAuger , the proposed approach appears to effectively address your requirements. Could you please confirm if your issue has been resolved
If you are still facing any challenges, kindly provide further details, and we will be happy to assist you.If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth. - v-csrikanthCommunity Support
Hi DataNerd4820
I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?
If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.
Looking forward to your response!Best Regards,
Community Support Team _ C Srikanth. - v-csrikanthCommunity Support
Hi DataNerd4820
We haven't heard from you since last response and just wanted to check whether the solution provided has worked for you. If yes, please Accept as Solution to help others benefit in the community.
Thank you.If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.