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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

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

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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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