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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to change text to date format

Hi guys,

 

Power BI neewbie here ... and I am in need of some help. I have a dataset with a "month" column which has short month names (jan, feb, mar, apr, may etc...) ONLY as values. These are in Text format and I need to change them to date format. 

 

What is the best way to get this done? I can't seem to just change the type to date because it will give me errors...

 

Thx in advance for all help!! 

1 ACCEPTED SOLUTION

can you guess the year ?

month_as_date.png

I've created a calculated column which has a year hard coded, it combines the year with the text month name and transforms them into a date

Every time I answer a question I learn something
I'm a personal Power BI trainer 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


View solution in original post

4 REPLIES 4
kentyler
Solution Sage
Solution Sage

Do you also have a column that tells what year you are in ?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Anonymous
Not applicable

No unfortunately not.. I literally only have this column to work with...

can you guess the year ?

month_as_date.png

I've created a calculated column which has a year hard coded, it combines the year with the text month name and transforms them into a date

Every time I answer a question I learn something
I'm a personal Power BI trainer 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Anonymous
Not applicable

Thx Ken,

This solution indeed works, however I can't guess the year... This dataset runs across two year periods... so hardcoding the year isn't an option.

 

I am however going to keep this in mind and see if I can tweak it to work 🙂

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.