Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola, chicos
por favor, puede ayudar.
Tengo una fuente de datos de Excel que muestra la duración en hh:mm:ss cuando se tira en powerbi agrega fecha y también cambia la hora.
Sólo quiero que lo deje en paz!
¿cómo dejo de powerbi convirtiéndolo, o convertirlo de nuevo?
cada vez que intento cambiar el formato de nuevo a hh:mm me da la duración incorrecta
por favor ayuda
Lucy x
Hola a todos
la hora de inicio/fin no son los datos desde donde se calcula el tiempo de movimiento para que no funcione
No entiendo por qué powerbi puede mostrarlo como se muestra en Excel.
realmente molesto x
Hola @fstupot ,
Traje las dos veces a PQ y luego dejé que PQ creara la duración.
Avísame si tienes alguna pregunta.
Si esto resuelve sus problemas, márquelo como la solución, para que otros puedan encontrarlo fácilmente. Kudos 👍son agradables también.
Nathaniel
Proud to be a Super User!
Vehículo | Grupo | Empezar | Final | Tiempo total | conmovedor | % En movimiento | Ralentí | % de ensocupmiento | Detenido | % Detenido | Paradas | millas |
BF63XUV | Staff_Lichfield OPS | 02/11/2020 08:05 | 25/11/2020 14:31 | 77:46:09 | 24:29:53 | 31.5 | 22:03:16 | 28.36 | 24:30:55 | 31.52 | 59 | 457.6 |
BF67EUK | Staff_Leek OPS | 03/11/2020 07:27 | 25/11/2020 15:39 | 111:49:52 | 32:36:49 | 29.16 | 11:49:56 | 10.58 | 50:06:31 | 44.81 | 107 | 618.9 |
BF67EUU | Staff_Lichfield OPS | 02/11/2020 11:39 | 25/11/2020 13:52 | 86:52:07 | 24:43:01 | 28.45 | 29:13:47 | 33.65 | 17:42:52 | 20.39 | 69 | 460.4 |
BF67EUV | Staff_Gailey OPS | 02/11/2020 07:23 | 25/11/2020 15:00 | 125:52:20 | 39:36:51 | 31.47 | 08:05:15 | 6.43 | 61:00:30 | 48.47 | 145 | 804.7 |
BF67EUW | Staff_Lichfield OPS | 02/11/2020 06:44 | 25/11/2020 14:03 | 83:54:54 | 27:08:11 | 32.34 | 06:19:19 | 7.53 | 27:27:49 | 32.73 | 74 | 459.2 |
BF67EU | Tratamientos Staff_Surface | 02/11/2020 07:12 | 25/11/2020 14:03 | 123:06:28 | 23:28:00 | 19.06 | 10:27:26 | 8.49 | 84:39:28 | 68.77 | 133 | 480.3 |
Gracias por los datos @fstupot
No estoy completamente seguro de dónde se calcula su tiempo total, así que si @Nathaniel_C solución ayuda, genial. si no, puede intentar dividir columna por delimitador para convertir sus columnas de duración en columnas numéricas
pegar el siguiente código en el editor avanzado para ver lo que quiero decir
Dejar
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jZLLbhNRDIZfJZp15fpyrl4iAQuQQArhoiqqojIREYVFCQveHtsnNCPSRaWRxmP7+Hzz+7+5mV68KvJ583G6mtbH3X5/+/Zw921/mO+/rt69X1sW+ZrompFxhU0xW4rzY4qSClmqVk1FsXs1KXfNYqEQRD8rilLxsIGU0SSoOZ+a2N7ZD6dcoUzbq+CqLzdvzlzz/P0fkpyRqnL9Dymr+Cgi0mQgPltYpdiXd3YIklM1QoTcnAAVy/iflKBRlHx6oQZ9QbV5jlp2QXAs0WTgtGJvjdEmRBJFGtqkkKurNSavikDxFJm8PM4yQowtIVdBSAuw8xpf7w73858ndmiCyYVgiH4JZ8dij6W7YJnGfoIltq/kOAWShCx20PboIG00UfxBwwR1gfXpWe6yBaULd6Ff1Ey3ZI9XqxoIBRiDeMoOkknmelQI37G7Yqzbmqqnagp3deAF15dHrvXvh/3ubl59eJh3xx/zz+OvC9mIn4YjFrcNu4Ms5HZSswMOczkLe2gaOVIz7/fRXxrUkE0kRLTdTtvtXw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Vehicle = _t, Group = _t, Start = _t, End = _t, #"Total Time" = _t, Moving = _t, #"% Moving" = _t, Idling = _t, #"% Idling" = _t, Stopped = _t, #"% Stopped" = _t, Stops = _t, Miles = _t]),
"Tipo de cambio" - Table.TransformColumnTypes(Source,"Vehicle", tipo text, "Group", texto de tipo, "Inicio", escriba datetime, "End", escriba datetime, "Total Time", escriba text, "Moving", escriba text, "% Moving", tipo de número de tipo, "Idling", escriba text, "% Idling", número de tipo, "Detención", tipo "Detenido", escriba texto, "% Detenido", número de tipo, "Stops", Int64.Type",
"Resta de tiempo insertada" - Table.AddColumn(-"Changed Type", "Subtraction", each [End] - [Start], type duration),
"Columnas reordenadas" - Table.ReorderColumns("Insered Time Subtraction","Vehicle", "Group", "Start", "End", "Moving", "% Moving", "Idling", "% Idling", "Stopped", "% Stopped", "Stops", "Miles", "Subtraction", "Total Time")
"Dividir columna por delimitador" ? Table.SplitColumn('"Columnas reordenadas"", "Tiempo total", Splitter.SplitTextByDelimiter(":", QuoteStyle.Csv), ''Tiempo total.horas'', "Tiempo total.minutos", "Tiempo total.segundos"),
"Changed Type1" á Table.TransformColumnTypes('Dividir columna por delimitador",''Total Time.hours', Int64.Type', ''Total Time.minutes'', Int64.Type', ''Total Time.seconds'', Int64.Type'),
"Minutos Totales Insertados" - Table.AddColumn(-"Changed Type1", "Subtraction Total Minutes", cada Duration.TotalMinutes([Subtraction]), número de tipo),
"Added Custom" á Table.AddColumn(-"Inserted Total Minutes", "Total Time.Total minutes", cada [Tiempo Total.horas]*60 + [Tiempo Total.minutos]+[Tiempo Total.segundos]/60)
En
"Añadido personalizado"
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Borrar el formato en Excel - ¿cuál es el valor realmente introducido como? ¿Es fecha o texto?
Si puede proporcionar algunos datos de ejemplo en el formato real podemos ayudar mejor.
El tipo de datos de duración de Power BI se convierte en número decimal en el informe.
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-data-types#datetime-types
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |