Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Date Formula for MMM


I have a Date field which I broke down using DAX for Day = day({fieldname]), Month = month([fieldname]) and Year = year([fieldname]).  I now want to format my numerical months in my charts to MMM, i.e. Jan, Feb etc... but the problem is:-

 1. I can't seem to convert my Month to MMM using Format([date], "MMM")- any pointers?

 2. How can I get my months in order, i.e. Jan, Feb etc....?





Hi @SachinC,


To sort your month in visual, click on the Modelling tab, and where it says Sort by Column, click on the Drop Down and select the Month Number column you created above.



Charlie Liao

This is really odd, it doesn't work for me.

I've followed exactly what you've said, but it's strange I click my new DateID field, click Sort By in the ribbon bar but nothing happens.

Please help. Thanks.

Hi @SachinC


You have to have the field selected in the menu, or the column selected in the data view,  Then the Sort By Column should offer a dropdown.

To learn more about DAX visit :

Proud to be a Datanaut!

really odd, still doesn't work. zzzzzzzzzz.PNG

really odd, still doesn't work. zzzzzzzzzz.PNG


Hi @SachinC


Please try adding these two columns to your table.


MonthName = FORMAT({fieldname},"MMM YY")

MonthID = INT(FORMAT({fieldname},"YYYYMM")

The first column should be formatted the way you want, but I would use the Sort by column feature to have it sorted by the other column.  


If it were me, I'd be doing this in the Date/Calendar table 🙂



To learn more about DAX visit :

Proud to be a Datanaut!

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors