Forum Discussion
Month and Short Month Abbrev solution
Hello
We have a specific Calendar table for all date needs. Month day year Qtr MoM MMYYYY etc
I am looking to have a short month abbreviated column for graphs and such. I duplicated the date column (1/1/2015) and changed the type to TEXT in power query and did so in the front end in the model view under Data Type and changed format to Custom "mmm"
But now I have this issue where the month is Re-iterating. How do I fix this? I posted a pic of how its displaying and how it should look (right chart)
Don't duplicate the column and convert into text. In PQ, in a custom column named ShortMonth, use following formula
= Text.Start(Date.MonthName([Date]),3)If you want to do in DAX
ShortMonth = FORMAT([Date],"mmm")
3 Replies
- Vijay_A_VermaMost Valuable Professional
Don't duplicate the column and convert into text. In PQ, in a custom column named ShortMonth, use following formula
= Text.Start(Date.MonthName([Date]),3)If you want to do in DAX
ShortMonth = FORMAT([Date],"mmm")- AnonymousNot applicable
Hello
I tried the custom column formula but i get the following error:
Expression.Error: The name 'Text.start' wasn't recognized. Make sure it's spelled correctly.
What do i do with this?
- Vijay_A_VermaMost Valuable Professional
It is Text.Start not Text.start. PQ is super sensitive to case.