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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MalvikaBhasin
Helper III
Helper III

Text to Date

Hi,

 

Why am I unable to change TEXT to DATE for a column.

 

Texttodate.JPG

 

Regards

Malvika

 

9 REPLIES 9
Anonymous
Not applicable

Hi All,

Fisrtly, thanks to all for your kind replies!
And @MalvikaBhasin ,

Has your problem been solved after all this time, or has a new problem arisen, if there are any other questions on this issue, feel free to contact me and I'll get back to you as soon as I receive the message.

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Ahmedx
Super User
Super User

pls try this code in power query

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTQNTDWNTIwtFCK1QFyDVG5RqhcYwQ3FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t]),
    Custom1 = Table.TransformColumns( Source, {"Date",(x)=> Date.FromText(x,[Format="dd-MM-yyyy"])})
in
    Custom1
Thennarasu_R
Responsive Resident
Responsive Resident

Hi @MalvikaBhasin 

Go to tranform data and change the column data type 

Thennarasu_R_0-1722588070785.png

Thanks,
Thennarasu R

Thanks. But why is it working partially for me? Can you help identify issue from below image?

 

Texttodate1.JPG

 

Regards

Malvika

Joe_Barry
Super User
Super User

Hi @MalvikaBhasin 

 

Go to Transform data to the table, highlight the column and convert to Date

 

Joe




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn


Let's connect on LinkedIn


Thanks. But why is it working partially for me? Can you help identify issue from below image?

 

Texttodate1.JPG

 

Regards

Malvika

Your data contains dates in the format dd/mm/yyyy.

For instance the input date 13/01/2024 is formatted as day/month/year. But the report expects dates in the format mm/dd/yyyy where the month value should not exceed 12. So when the report encounters a date with a month value greater than 12 it would create an error.



Regards,
Sachin
Check out my Blog

Hi, Perhaps the cells where you see errors, the date format there is m/d/y. Since your system is formatted to only understand d/m/y dates, those cells are returning errors.

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

How does the column look like before the transformation? i guess the "dates" are in a format which the function cannot handle by default. maybe you have to adjust the function call with an optional culture parameter or a format specification.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.