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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Mountainfly
Regular Visitor

Showing different month names for months using format(). How to get the correct month names??

Hello,

 

I am trying to extract the month name from the date column using the format([date], "MMMM"). But I am getting different month names. Help me to get the correct month name.

Pls refer to the image attached:

powww.png

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

FORMAT('Date'[Date], "MMM")

View solution in original post

5 REPLIES 5
talespin
Solution Sage
Solution Sage

I am no expert, I think this is what is happening.

"mmm" format is applicable for Date data type whereas MONTH(Date[Date]) doesn't return date, but a number and "mmm" is no longer relevant and returns incorrect result.

 

FORMAT function (DAX) - DAX | Microsoft Learn

 

  • The format strings supported as an argument to the DAX FORMAT function are based on the format strings used by Visual Basic (OLE Automation), not on the format strings used by the .NET Framework. Therefore, you might get unexpected results or an error if the argument doesn't match any defined format strings. For example, "p" as an abbreviation for "Percent" isn't supported. Strings that you provide as an argument to the FORMAT function that aren't included in the list of predefined format strings are handled as part of a custom format string, or as a string literal.

@talespin Thank you for the explaination

talespin
Solution Sage
Solution Sage

FORMAT('Date'[Date], "MMM")

Thank you @talespin 

@talespin can you tell me why I got Dec instead??

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.