Forum Discussion
Date Format
- 9 years ago
Create 2 columns (1 to display and to sort it)
Custom Column = FORMAT('Calendar'[Date], "MMM YY") Custom Column Sort Order = INT ( CONCATENATE ( YEAR ( 'Calendar'[Date] ), FORMAT ( 'Calendar'[Date], "MM" ) ) )Then Select the Custom Column => Modeling Tab => Sort Column By => select the Custom Column Sort Order column
That should do it.
Good Luck! :smileyhappy:
Create 2 columns (1 to display and to sort it)
Custom Column = FORMAT('Calendar'[Date], "MMM YY")
Custom Column Sort Order =
INT (
CONCATENATE ( YEAR ( 'Calendar'[Date] ), FORMAT ( 'Calendar'[Date], "MM" ) )
)Then Select the Custom Column => Modeling Tab => Sort Column By => select the Custom Column Sort Order column
That should do it.
Good Luck! :smileyhappy:
Thank you Sean. That worked for me also. Any idea how we can do it for a YTD chart?
I am using a measure that use monthly sales cost and date to get YTD for each month. Something like this.
YTD = TOTALYTD(SUM(Sales[Cost]),Sales[Date])
But when I use, Date(MMM YYYY) = FORMAT(Sales[Date],"MMM YYYY") in the charts, it messes up my YTD chart.
Any ideas how to can we make it work?
Thanks!
- Anonymous5 years agoNot applicable
select the column and go to column tools.
Select the data type and set it as "Date"
select format and type as mmm-yy