Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Why am I unable to change TEXT to DATE for a column.
Regards
Malvika
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.
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
Thanks. But why is it working partially for me? Can you help identify issue from below image?
Regards
Malvika
Go to Transform data to the table, highlight the column and convert to Date
Joe
Proud to be a Super User! | |
Date tables help! Learn more
Thanks. But why is it working partially for me? Can you help identify issue from below image?
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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |