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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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"
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.