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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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