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
En primer lugar, gracias por su apoyo y asistencia,
Por favor, tengo esta tabla a continuación:
Y quiero calcular el tiempo medio de resolución en este formato "hh:mm:ss" pero sólo para el número de solicitud que se han creado entre 06h y 19h?
Solved! Go to Solution.
No @ayoubb
Cree una medida como:
Measure =
var _table=
SUMMARIZE('Table','Table'[Request number],"start",
var _start=
CALCULATE(
MAX('Table'[creation date]),
FILTER(
ALL('Table'),
'Table'[Request number]=MAX('Table'[Request number]) && 'Table'[Status]="resolved" && HOUR('Table'[creation date])>6
)
)
var _end=
CALCULATE(
MAX('Table'[update date]),
FILTER(
'Table',
'Table'[Request number]=MAX('Table'[Request number]) && 'Table'[Status]="resolved" && HOUR('Table'[update date])<19
)
)
return DATEDIFF(_start,_end,SECOND)
)
return SUMX(_table,[start])/COUNTROWS(_table)
Aquí está la salida:
Aquí está la demo, por favor pruébela:DATEDIFF ENTRE DOS FECHAs con el fin de calcular el tiempo de resolución
Saludos
Enlace
No @ayoubb
Cree una medida como:
Measure =
var _table=
SUMMARIZE('Table','Table'[Request number],"start",
var _start=
CALCULATE(
MAX('Table'[creation date]),
FILTER(
ALL('Table'),
'Table'[Request number]=MAX('Table'[Request number]) && 'Table'[Status]="resolved" && HOUR('Table'[creation date])>6
)
)
var _end=
CALCULATE(
MAX('Table'[update date]),
FILTER(
'Table',
'Table'[Request number]=MAX('Table'[Request number]) && 'Table'[Status]="resolved" && HOUR('Table'[update date])<19
)
)
return DATEDIFF(_start,_end,SECOND)
)
return SUMX(_table,[start])/COUNTROWS(_table)
Aquí está la salida:
Aquí está la demo, por favor pruébela:DATEDIFF ENTRE DOS FECHAs con el fin de calcular el tiempo de resolución
Saludos
Enlace
@ayoubb Si puede publicar esos datos como texto podría proporcionar una solución específica. Pero, mientras tanto aquí hay una serie de artículos sobre cálculos de duración:
(1) Duración de Chelsie Eiden - Microsoft Power BI Community
Duración a Segundos Converter - Microsoft Power BI Community
Simplemente restando sus dos entradas de tiempo como esta ([fecha de actualización] - [fecha de creación]) * 1. , obtendrá un valor decimal donde la parte entera es el número de días y la parte decimal son fracciones de un día. Así que 1/24 horas, 1/60 es minutos, 1/3600 segundos, etc.
ES esto correcto:
Columna
&& DATEDIFF('table'[fecha de creación],'table'[fecha de actualización],MINUTE)
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 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |