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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.