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
waleed111
Helper V
Helper V

YEAR and MONTH function

i write this formula:

Year A = YEAR('All Manufacturings (4)'[Added Time])
but when i try to covert it to date type it show wrong value, it show me 1900 for all value, what is the problem?
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @waleed111 ,

 

You may make sure the data type of 'All Manufacturings (4)'[Added Time] is Date or Date/Time, what's more, this date column should have at least Year, Month and Day level in it, for example like the format "9/20/2020".

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @waleed111 ,

 

You may make sure the data type of 'All Manufacturings (4)'[Added Time] is Date or Date/Time, what's more, this date column should have at least Year, Month and Day level in it, for example like the format "9/20/2020".

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@waleed111 

if you only have year value, then that's not a date. you can only set it to number or text.

1.PNG2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.