Forum Discussion
MalvikaBhasin
2 years agoHelper III
Text to Date
Hi, Why am I unable to change TEXT to DATE for a column. Regards Malvika
Ahmedx
2 years agoSuper 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