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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
I am trying to convert a text column to a date format.
The original column contains the date in this format: wednesday 2 october 2018.
I want to have a column with the date in this format: 02-10-2018
Any suggestions?
thanks
Solved! Go to Solution.
If you split the column by the first instance of a space, i.e. getting rid of the day of the week, does that get it into a close enough format that it can automatically recognise it's a date?
If you split the column by the first instance of a space, i.e. getting rid of the day of the week, does that get it into a close enough format that it can automatically recognise it's a date?
that worked! Thanks!
This should work, the bold text can be added after your source code
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKk9NyUstTkmsVDBSyE8uyU9KLVIwMjC0UIqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type text}}),
#"Inserted Text After Delimiter" = Table.AddColumn(#"Changed Type", "Text After Delimiter", each Text.AfterDelimiter([Date], " "), type text),
#"Changed Type1" = Table.TransformColumnTypes(#"Inserted Text After Delimiter",{{"Text After Delimiter", type date}})
in
#"Changed Type1"
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 121 | |
| 103 | |
| 47 | |
| 30 | |
| 24 |