Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
HenryJS
Post Prodigy
Post Prodigy

Cálculo del tiempo desde las horas de inicio y finalización

Hola a todos

¿Cómo puedo calcular las horas entre dos horas de inicio/finalización? La siguiente fórmula no calcula las horas de forma

Horas de activación por día ([Inicio]-[Fin])

time3.PNG

2 ACCEPTED SOLUTIONS
v-eachen-msft
Community Support
Community Support

Hola @HenryJS ,

Puede usar Time.Hour() en el editor de consultas.

if [Start]>[End] then
24-Time.Hour([Start])+Time.Hour([End])
else Time.Hour([End])-Time.Hour([Start])

Aquí está el resultado.

2-1.PNG

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

v-eachen-msft
Community Support
Community Support

Hola @HenryJS ,

¿Tiene sentido? Si tan amablemente marque mi respuesta como una solución para cerrar el caso. Gracias de antemano.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

16 REPLIES 16

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.