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
Rince91
Helper I
Helper I

Format date error

Hey,

 

I have an open time for tickets we recieve formated like the below:

 

OPEN_TIME

01/10/2017 00:07:07

 

I then need this formatted as Month and Year. I have created a new column with the below formula:

 

Open_Month = FORMAT(ServiceReview[OPEN_TIME],"mmmm-yy")

 

However for some date it works fine, for the above date it prints October 2018. Should be 2017, any ideas what is causing this issue?

 

2 REPLIES 2
Gokul
Helper IV
Helper IV

make sure that  your data type is in date format 

ServiceReview[OPEN_TIME] is of type date so that u can get correct value..

Yep i definitely have the original columns formated correctly as Date under the modeling tab.

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.