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.
Hola a todos
Estoy tratando de mostrar la diferencia de tiempo entre 'Tiempo creado' por el empleado. He encontrado soluciones que usan una columna calculada, pero estoy usando una consulta directa a un servidor SQL y esto parece impedirme poder usar columnas calculadas.
La nueva columna mostrará 7 min, 5 min, 5 min, etc.
Cualquier ayuda sería apreciada!
Solved! Go to Solution.
@thomas_p , no podrá crear una columna como se admite anteriormente.
Prueba una medida como esta
diff ?
maxx(summarize(Table, Table[Employee], Table[time created],"_1",
max(Table[time created]) -maxx(filter(allselected(Table), Table[employee] ?max(Table[employee]) && Table[time created] <max(Table[time created])),Table[time created])
),[_1])
Esto debería funcionar con el empleado y el tiempo creado. Vea si esto puede funcionar para usted
Pocas columnas compatibles que cubrí en la lista de reproducción - https://www.youtube.com/watch?v=My0bLn9voo4&list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA
Solución alternativa en SQL mediante la función De cliente potencial y la diferencia de fecha posterior de la siguiente manera
1. LEAD([Tiempo creado],1) OVER (PARTITION BY Employee ORDER BY [Time Created]) AS Lead
2. DATEDIFF(MINUTE,[Time Created],LEAD([Time Created],1) OVER (PARTITION BY Employee ORDER BY [Time Created])) AS [Difference]
@thomas_p , no podrá crear una columna como se admite anteriormente.
Prueba una medida como esta
diff ?
maxx(summarize(Table, Table[Employee], Table[time created],"_1",
max(Table[time created]) -maxx(filter(allselected(Table), Table[employee] ?max(Table[employee]) && Table[time created] <max(Table[time created])),Table[time created])
),[_1])
Esto debería funcionar con el empleado y el tiempo creado. Vea si esto puede funcionar para usted
Pocas columnas compatibles que cubrí en la lista de reproducción - https://www.youtube.com/watch?v=My0bLn9voo4&list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA
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 |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |