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
Shahinkmajeed
Helper I
Helper I

Month and Year (MMM-YYYY) from a date column

Dear All,

 

I am trying to create a new column with Month and Year in MMM-YYYY format from another date column. I tried the below expression for the new column, but getting the error as in the below screenshot. Kindly help.

 

MonthYr = CONCATENATE(FORMAT(MONTH(Query2[DEP_DATE]),"MMM"),YEAR(Query2[DEP_DATE]))

 

 

image.png

1 ACCEPTED SOLUTION

Dear All,

 

I got the solution. Just used the format option in the Modeling tab 🙂

 

Sorry for the confusion.

 

 

Regards,

 

View solution in original post

3 REPLIES 3
Prakash-1993
Regular Visitor

Will the column stay in date format or turns into text format.. I want to use it as monthyear slicer in my report.

Shahinkmajeed
Helper I
Helper I

For e.g I want the new column with the values like "AUG-2018". 

 

Looking forward for help. 

 

Dear All,

 

I got the solution. Just used the format option in the Modeling tab 🙂

 

Sorry for the confusion.

 

 

Regards,

 

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.

Top Solution Authors