cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Extract Month and Year from DateTime field to get MMM-YY

I have a date column As of Date in my table Status, I need to extract month and year from this column. How do I do that

1 ACCEPTED SOLUTION

Accepted Solutions
rocky09 Senior Member
Senior Member

Re: Extract Month and Year from DateTime field to get MMM-YY

customDate = FORMAT ( 'TABLENAME'[Date], "MMMYY" )

 

create New Column and use above

3 REPLIES 3
rocky09 Senior Member
Senior Member

Re: Extract Month and Year from DateTime field to get MMM-YY

customDate = FORMAT ( 'TABLENAME'[Date], "MMMYY" )

 

create New Column and use above

Community Support Team
Community Support Team

Re: Extract Month and Year from DateTime field to get MMM-YY

@ApurvaKhatri,

 

You could also add a custom column in Query Editor.

Date.ToText([As of Date], "MMM-yy")
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Extract Month and Year from DateTime field to get MMM-YY

This Date.ToText os not working in my case

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 153 members 1,800 guests
Please welcome our newest community members: