cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AA622
Helper I
Helper I

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)

AA622_0-1653429134358.png

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

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")

View solution in original post

3 REPLIES 3
Vijay_A_Verma
Super User
Super User

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")

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?

It is Text.Start not Text.start. PQ is super sensitive to case. 

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors