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.
Estimados,
Necesito calcular la diferencia de fecha (meses, días y horas) entre el inicio y final de una actividad, el punto es que las horas y fechas se acumulan en una misma columna, tengo como llave la ID de la tarjeta que tiene la actividad, pero no se como poder realizar el modelo.
Ambas columnas estan en una misma tabla.
Por favor su ayuda chicos.
Solved! Go to Solution.
Hi @acharalamby ,
You can use the following mquery to transform your date column to datetime type:
#"Added Custom" = Table.AddColumn(#"Changed Type", "DATETIME", each DateTime.From (Text.Start([Column1],Text.PositionOf ([Column1],"."))))
Then you can use datediff dax function to calculate date difference , please refer to https://docs.microsoft.com/en-us/dax/datediff-function-dax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @acharalamby ,
You can use the following mquery to transform your date column to datetime type:
#"Added Custom" = Table.AddColumn(#"Changed Type", "DATETIME", each DateTime.From (Text.Start([Column1],Text.PositionOf ([Column1],"."))))
Then you can use datediff dax function to calculate date difference , please refer to https://docs.microsoft.com/en-us/dax/datediff-function-dax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Covering 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 |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |