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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.