Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hola a todos
Tengo una fecha como texto de tipo de datos. Quiero extraer la fecha y la hora de ese texto. Mi fecha es como "Mim 13 de mayo 12:06:29 UTC 2020". Intenté cambiar el tipo de datos desde el escritorio de Power BI, pero muestra un error y intenté con la función Text.Middle, pero tampoco funcionó para mí.
Ahora, ¿cómo puedo extraer la fecha y la hora del texto de la mención?
Gracias
Jay
Solved! Go to Solution.
Hola @jaypatel
Pruebe el siguiente script o vea el adjunto para el ref.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCk9NUfBNrFQwNFYwNLIyMLMyslQIDXFWMDIwMlCKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [DateTimeColumn = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each
let split =
Text.Split( [DateTimeColumn], " " ),
dateTime = DateTime.FromText( split{5} & " " & split{1} & " " & split{2} & " " & split{3} )
in
dateTime
)
in
#"Added Custom"
Hola @jaypatel
Pruebe el siguiente script o vea el adjunto para el ref.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCk9NUfBNrFQwNFYwNLIyMLMyslQIDXFWMDIwMlCKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [DateTimeColumn = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each
let split =
Text.Split( [DateTimeColumn], " " ),
dateTime = DateTime.FromText( split{5} & " " & split{1} & " " & split{2} & " " & split{3} )
in
dateTime
)
in
#"Added Custom"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!