Forum Discussion
Anonymous
6 years agoNot applicable
sort date in slicer
hi all any idea how i can sort the date , so that the lastest month is on the top? Thanks so much.
- 6 years ago
Hi Anonymous
your column [Calendar Month Number] stores month number without leading 0.
to fix it you should either change format this field or rewrite column like this
yyyymmdigit = if('Date'[Calendar Month Number]<10;CONCATENATE('Date'[Calendar Year];concatenate("0";'Date'[Calendar Month Number]));CONCATENATE('Date'[Calendar Year];'Date'[Calendar Month Number]))do not hesitate to give a kudo to useful posts and mark solutions as solution
Anonymous
6 years agoNot applicable
so sorry, i got the same problem again, it was ok yesterday, where i have gone wrong in this file?
az38
Community Champion
6 years agoHi Anonymous
your column [Calendar Month Number] stores month number without leading 0.
to fix it you should either change format this field or rewrite column like this
yyyymmdigit = if('Date'[Calendar Month Number]<10;CONCATENATE('Date'[Calendar Year];concatenate("0";'Date'[Calendar Month Number]));CONCATENATE('Date'[Calendar Year];'Date'[Calendar Month Number]))do not hesitate to give a kudo to useful posts and mark solutions as solution
- Anonymous6 years agoNot applicable
I finally got it....thank you so much 😃