Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
harsin
Frequent Visitor

How to shorten Months into Mmm format for visuals

I have created visuals with date on the x-axis, due to space I want to shorten the months to Mmm format on the visual (ideally mmm-yy is possible).

 

I have tried creating a new column that shows this format but when I use it to build the visual it shows the month name in full.

harsin_0-1706653110719.png

 

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi, @harsin

Based on your question, here are my answers.

First create a table including Month and Year columns.

vyilongmsft_0-1706673222726.png

Then use the DAX code to create a New Column.

Column = LEFT('MonYear'[Month],3) &"-" & RIGHT('MonYear'[Year],2)

vyilongmsft_2-1706673452154.png

This will give you the results you want.

vyilongmsft_3-1706673550237.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yilong-msft
Community Support
Community Support

Hi, @harsin

Based on your question, here are my answers.

First create a table including Month and Year columns.

vyilongmsft_0-1706673222726.png

Then use the DAX code to create a New Column.

Column = LEFT('MonYear'[Month],3) &"-" & RIGHT('MonYear'[Year],2)

vyilongmsft_2-1706673452154.png

This will give you the results you want.

vyilongmsft_3-1706673550237.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Idrissshatila
Super User
Super User

Hello @harsin ,

 

if you create a calculated column that says 

 

month = format ('YourTableName'[Date],"mmm")

this should return month short like Jan and Feb



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks Idrissshatil, I tried this poreviously and it did not work

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.