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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sebastian
Advocate II
Advocate II

Format date time field. Wrong name of month

Hallo Community,

 

I try to get the name of the month from a date-time field but it always shows the wrong Month.

 

Example:

 

customerdate                                shown month

15.07.2015 13:34:17                 Jan

 

I use the following function:

 

Name of Month= FORMAT(MONTH(Customer[Customerdate]);"MMM")

 

 

What's wrong? Any idea?

 

Thanks

Sebastian

1 ACCEPTED SOLUTION
Tsanka
Kudo Collector
Kudo Collector

I think you have to convert your date/time to date in order to correctly use the format function.

 

Edit: Missed the usage of month function - no need of it.

Month_Name = FORMAT([Date],"MMM")

 

 

 

View solution in original post

3 REPLIES 3
Tsanka
Kudo Collector
Kudo Collector

I think you have to convert your date/time to date in order to correctly use the format function.

 

Edit: Missed the usage of month function - no need of it.

Month_Name = FORMAT([Date],"MMM")

 

 

 

Thank's a lot.

That was the mistake, didn't know why I'm using the MONTH function.

 

Sebastian
Advocate II
Advocate II

It also happens if i try the function on a normal date field. Is there a bug in the latest update?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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