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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Cómo restar la hora de 2 columnas de fecha/hora

Hola a todos,
Estoy aprendiendo Power Bi desde cero, viendo tutoriales y leyendo algunas de las bases en foros.


En este caso me encontré con un problema, quiero restar la hora de mi columna "Fecha de inicio" y "Fecha de finalización", así que básicamente acabo de hacer en poder Consultar la fórmula: = Table.AddColumn(#"Changed Type", "Timeoff", each ([StartDate]- [EndDate]))
Lo que pasa es que el resultado es negativo no sé si hay otra forma de obtener el mismo resultado pero sin el valor negativo o estoy haciendo algo mal.

In this scenario the TimeOff calculation is the one at the end named "Tiempo muerto""In this scenario the TimeOff calculation is the one at the end named "Tiempo muerto""En este escenario, el cálculo de TimeOff es el que está al final llamado "Tiempo muerto"

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@grantsamborn Hola.
Sí, eso es correcto, acabo de probarlo después de publicar esto, creo que solo tenía sueño jaja, pero gracias por tu ayuda, compañero.

Syndicate_Admin
Administrator
Administrator

@Luiwujamak

Dado que StartDate siempre precede a EndDate, ¿no querría restar StartDate de EndDate?

= Table.AddColumn(#"Changed Type", "Timeoff", each ([EndDate] - [StartDate]))

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors