Forum Discussion
Sort a Month Year Column
- 3 years ago
Hi,
One of ways to create a sort column for the Month Year Num column is to create a ENDOFMONTH column by using a DATE column and EOMONTH DAX formula.
EOMONTH function (DAX) - DAX | Microsoft Learn
I hope this helps.
- Anonymous3 years agoMonth and Year = FORMAT([Date], "YYYY") & MONTH('Calendar'[Date])try this, let me know if it works 🙂
Can we get more info on how you're trying to sort it? I can see you've made a sort column.
Can you select the sort column from here?
- Anonymous3 years agoNot applicable
Thanks, I am looking for sth different, which is to sort a Month Year Num. Your Solutions is for a fiscal year.
I have a Bar chart that shows the last 3 months. So I want to sort that column so that October 2022 comes fast- Anonymous3 years agoNot applicable
Create a Month number + Year column
Year('Date') & Month(date).
Put this column in the Tooltip part of your visual
Then in the top right of your visual, sort by that column
Hope this helps!
- Anonymous3 years agoNot applicable
It has ordered but not correctly...
2023 Jan comes at the right position but 2022 months are not ordered...