Forum Discussion
Sort in matrix months?
- 4 years ago
Hi Azaterol,
This is how I would do it:
Go to data
In your Date table I would create 2 additional columns called 'MonthDesc' and 'MonthDescKey'.
MonthDesc = FORMAT('Date'[Date], "MMM")
MonthDescKey = 32 + (-1*MONTH('Date'[Date]))
Then sort 'MonthDesc' by 'MonthDescKey' (Option: Sort By column)
Once that is done you can go to report view open a table with 'Year' and 'MonthDesc' and sort by 'Year'.
There might be easier solution.
Hope this helps!
Hi Azaterol,
This is how I would do it:
Go to data
In your Date table I would create 2 additional columns called 'MonthDesc' and 'MonthDescKey'.
MonthDesc = FORMAT('Date'[Date], "MMM")
MonthDescKey = 32 + (-1*MONTH('Date'[Date]))
Then sort 'MonthDesc' by 'MonthDescKey' (Option: Sort By column)
Once that is done you can go to report view open a table with 'Year' and 'MonthDesc' and sort by 'Year'.
There might be easier solution.
Hope this helps!