This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hola estimados , soy nuevo en el uso del Power BI y tengo un problema que no puedo solucionar, me podrían ayudar a modelar una columna con FECHA / HORA y tiene Formato 24 horas y quisiera pasarlo a formato Fecha / HORA 00:00, ya
que el Power BI y Query no reconocen este formato.
Dejo Ejemplo de las columnas de entrada y también los intentos con una función encontrada en Internet, y me arroja error
gracias quien me pueda ayudar
Solved! Go to Solution.
You can use DateTime.ToText as below
= DateTime.ToText([YourTimeColumn], "h:mm tt")
You can use DateTime.ToText as below
= DateTime.ToText([YourTimeColumn], "h:mm tt")
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjLWNzDSNzIwMlAwMrAyNFWK1UEVNLEyMFCKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Fecha/Hora(Hasta)" = _t]),
#"Split Column by Delimiter" = Table.SplitColumn(Source, "Fecha/Hora(Hasta)", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Fecha/Hora(Hasta).1", "Fecha/Hora(Hasta).2"}),
#"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Fecha/Hora(Hasta).1", type date}, {"Fecha/Hora(Hasta).2", type duration}},"es-MX"),
#"Replaced Errors" = Table.ReplaceErrorValues(#"Changed Type", {{"Fecha/Hora(Hasta).2", #duration(1, 0, 0, 0)}}),
#"Added Custom" = Table.AddColumn(#"Replaced Errors", "Fecha/Hora(Hasta)", each DateTime.From([#"Fecha/Hora(Hasta).1"]) + [#"Fecha/Hora(Hasta).2"],type datetime),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Fecha/Hora(Hasta)"})
in
#"Removed Other Columns"
How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the entire Source step with your own source.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |