Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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 @Anonymous ,
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 @Anonymous ,
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 119 | |
| 117 | |
| 38 | |
| 36 | |
| 29 |