Forum Discussion
Date Format
- 7 years ago
- 7 years ago
CMSINFO You can convert the date fields using FORMAT function. Try adding a new column as below
DateMMMYY = FORMAT(TableName[DateColumn],"MMMYY")
CMSINFO Add an another new column (if table doesn't have one as below) and call it as SortKey
SortKey = FORMAT(Table[DateColumn],"YYYYMM")
Select the field that you want to sort on (in this case it is the field that you have created earlier i.e. MMMYY format) then click on "Sort By Column" option under "Modelling" tab use SortKey field
It sorted the column in the Data but my report remains in alphabetical order, why?
- PattemManohar7 years agoCommunity Champion
- CMSINFO7 years agoFrequent Visitor
The months on my matrix still in alphabetical order...
- ChrisMendoza7 years agoResident Rockstar
CMSINFO -
Is your calculated column [MMMYY] in the 'Date' Table (a proper date table) and the fact table with measures/etc. related to that 'Date' Table? Or are you trying to do all this within the fact table?
I'm guessing you need to share more of your model cause what's been suggested should work.
Fact Table