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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.