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
Nella
Frequent Visitor

Cómo restar tiempo

Hola

Soy bastante nuevo en Power Bi y agradecería la assiste en lo siguiente:

Estoy tratando de averiguar la diferencia entre el tiempo planificado y el tiempo real.

Como se puede ver en la imagen de abajo :

  • SEGUNDA FILA ? 40 minutos
  • PRIMERA FILA ? -15 minutos

POWER BI COMM.PNG

Mi problema es con la primera fila. Debido a que es un negativo, aparece como 'error'.

No lo necesito para mostrar el símbolo negativo, pero la diferencia en formato HH:MM

La tabla anterior es una que creé en el escritorio de Power Bi

¿Hay alguna manera de evitar esto?

Nota: Tengo una hoja de Excel que muestra exactamente lo que necesito sin embargo cuando subo, todas las fórmulas se estropean. ¿Puedo conservar mis fórmulas?

Gracias Heaps!

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

hola @Nella

Para su caso, le suplicaría que agregue una columna de cálculo por dax como se muestra a continuación

Difference=FORMAT([Arrived]-[Planned],"HH:MM")

https://docs.microsoft.com/en-us/dax/custom-date-and-time-formats-for-the-format-function

saludos

Lin

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

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hola @Nella

Para su caso, le suplicaría que agregue una columna de cálculo por dax como se muestra a continuación

Difference=FORMAT([Arrived]-[Planned],"HH:MM")

https://docs.microsoft.com/en-us/dax/custom-date-and-time-formats-for-the-format-function

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

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.