Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hola
¿Cómo haría para eliminar todo el texto aparte de los valores de fecha de esta columna a continuación?
Cualquier ayuda será muy apreciada.
Estos son los pasos que necesitas
[to = Text.Combine (List.Transform (List.FirstN( Text.Split([DATA]," "),3), (x)=> Text.Replace(x,",","")),".")
][to]
Hola, Muchas gracias por el código anterior, ¿cómo lo usaría como último paso en los pasos a continuación?
Hola, Muchas gracias por el código anterior, ¿cómo lo usaría como último paso en los pasos a continuación?
Bastante simple si el formato de sus datos es consistente.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WciwoysxRMDIwMlaK1YFxjQ10QEImmEJmCuWZJRkKefkKrsH6oT6OYBVepXkweUOwgG9iUXKGgrEhWMgIqiYHLgAxoyAxMwVoio4C0BgdhfwiBVenYIXyxMyy1CKIvaXpUB2GZkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [DATA = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"DATA", type text}}),
#"Extracted Date" = Table.AddColumn(#"Changed Type", "Date", each Date.From(Text.BeforeDelimiter([DATA], " ", 2)))
in
#"Extracted Date"
Por favor, pruebe esto
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WciwoysxRMDIwMlaK1YFxjQ10QEImmEJmCuWZJRkKefkKrsH6oT6OYBVepXkweUOwgG9iUXKGgrEhWMgIqiYHLgAxoyAxMwVoio4C0BgdhfwiBVenYIXyxMyy1CKIvaXpUB2GZkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [DATA = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"DATA", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each [
to = Text.Combine (List.Transform (List.FirstN( Text.Split([DATA]," "),3), (x)=> Text.Replace(x,",","")),".")
][to]),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"Custom", type date}})
in
#"Changed Type1"