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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Date Conversion

I have a date format like this

 

Tuesday,25 March,2025

 

and wanted to convert like YrMth ex: 2025Mar MthYr ex: Mar2015

 

I tried various options in the formating but couldn't find the way what I wanted as mentioned above.

 

Thanks,

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi Thimma,

 

Have you ttied SabineOussi's solution? I have tested it which works fine. As SabineOussi said, you need to make sure the column is a date format. If it's a string data type, you need to get the year and month from the string manually. We can use Search function, Left and Right function to achieve this requirement.

https://msdn.microsoft.com/en-us/library/ee634235.aspx
https://msdn.microsoft.com/en-us/library/ee634781.aspx

 

Regards,

Charlie Liao

SabineOussi
Skilled Sharer
Skilled Sharer

Try creating theses columns

 

MthYr = FORMAT(Table[Date], "MMMYYYY")

YrMth = FORMAT(Table[Date], "YYYYMMM")

 

Where MMM refers to the first three letters of the month and YYYY correspond to the full year.

 

But first, make sure your Date column is of type Date or Date/Time.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors