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
Anonymous
Not applicable

Convert TImeDate field to output Year & Month

Hello Community

Issue

I have a Created column coming in from a SharePoint list and it displays as time and date. I would like to create a custom column that will display 2018 for all dates within 2018 and also another column to display month if possible.

05/08/2015 13:41:19 would ideally become 2015 for example. I'd then like to add a Year slicer to my visual.

I would very much appreciated if someone could help me with this.

Thanks, M

1 ACCEPTED SOLUTION
Matt_Alexander
Advocate III
Advocate III

Hi @Anonymous,

 

I would duplicate the column and then on each one use the built in functions in Edit Queries to extract what you want, month, year etc in each copy of the original column. 

 

Time Functions.PNG

 

Hope that helps!

 

Matt

View solution in original post

3 REPLIES 3
Matt_Alexander
Advocate III
Advocate III

Hi @Anonymous,

 

I would duplicate the column and then on each one use the built in functions in Edit Queries to extract what you want, month, year etc in each copy of the original column. 

 

Time Functions.PNG

 

Hope that helps!

 

Matt

Anonymous
Not applicable

Thank you very much for this. It worked perfectly.

Easy when you know how 🙂

PattemManohar
Community Champion
Community Champion

@Anonymous Are you looking for YEAR and MONTH functions to extract year and month values from the Date Time field ?




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

Proud to be a PBI Community Champion




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.