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.
Tengo dos columnas en el siguiente formato
04/06/2020 05:02:00 así dd/mm/aaaa hh/mm/ss y me gustaría restar uno del otro para obtener la duración en hrs - ¿puede alguien ayudar por favor
Gracias de antemano
@kenblack - Si necesita la duración neta del trabajo, puede utilizar esto: https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Duration-Working-Hours/m-p/481543#M...
[Fecha1]-[fecha2] dará a Duarion
datediff([Date1],[Date2], hour) dará diff en horas
@kenblack También puede hacerlo en DAX con la función DATEDIFF https://docs.microsoft.com/en-us/dax/datediff-function-dax
Diferencia de horas: DATEDIFF([Inicio],[Fin],HORA)
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Sí, si necesita esto en una medida, DATEDIFF() funcionará bien. Si necesita una columna, Power Query suele ser una mejor opción para el rendimiento que una columna calculada. Así que depende de cómo se está utilizando esto.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUtilice la función Duration.TotalHours() en Power Query. Simplemente reste la columna 1 de la columna 2. Devolverá el total y las horas fraccionarias.
Si solo necesita horas, redondee usando Number.Round(fórmula, 0)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCovering 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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |