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

Conversion of text to date/time

Hi friends,

 

I have the following text column (order_dt) which I need to convert to date/time (Convert the text to date/time  format exactly how we see it as a text). Kindly assist with the dax for the new column I can create? The option to change from text to date/time does not work.

 

Thanks

 

Kratos_ZA_0-1663582528533.png

 

Thanks all

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Kratos_ZA,

What happens when you modify the data types on the power query side? Can you please share some more detail about these? 

How to Get Your Question Answered Quickly  

In addition, I check the snapshot and found they included the millisecond part. If the change type operation not works, you can try to use replace value feature to remove the '.0' before changing to data types.

Replace values (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Kratos_ZA,

What happens when you modify the data types on the power query side? Can you please share some more detail about these? 

How to Get Your Question Answered Quickly  

In addition, I check the snapshot and found they included the millisecond part. If the change type operation not works, you can try to use replace value feature to remove the '.0' before changing to data types.

Replace values (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
JorgePinho
Solution Sage
Solution Sage

Can't you change it in Power Query window?

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.