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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
shastie
Regular Visitor

Sum Times

Hola a todos

Usé con éxito una columna calculada usando DAX para sumar los tiempos que se formatearon en Excel a un formato personalizado [h]:mm:ss.

La fórmula que se utilizó:

Formateado a 
VAR _DaysInHours á INT('Table'[DateTime]) * 24
VAR _Hours? INT('Table'[DateTime],1) * 24)
VAR _Minutes ? FORMAT('Table'[DateTime],1),"nn:ss")
RETURN _DaysInHours + _Hours
    & ":" & _Minutes

Sin embargo ahora no tengo la opción de sumar estos en mi visualización, sólo cuentan.

¿Alguien puede ayudar?

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hola @shastie ,

Creo que no puede seleccionar No resumir.

3.png

Saludos

Stephen Tao

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

mahoneypat
Employee
Employee

La variable que utiliza FORMAT y la devolución son de tipo de texto, por lo que no se puede sumar. Usaría un enfoque similar para sumar todo en minutos y luego dividir por 60 para obtener el total de horas en forma decimal.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.