Loading

Agregar tiempo

Fecha de publicación: Aug 24, 2022
Tarea
Agregar tiempo

Ejemplo:

La acción A llevó 1 h 20 min 5 sec, la acción B llevó 1 min 10 sec

ACCIÓN TIEMPO
Acción A      01:20:05
Acción B      00:01:10

Al agregar los tiempos usando sum([time]), el resultado debería ser 1 h 21 min 15 sec (01:21:15)
 
Pasos
Si los datos de tiempo y el resultado de la agregación son inferiores a 24 h

1. Cree el siguiente cálculo

DATETIME(
SUM(
FLOAT(
DATEPARSE ( "HH:mm:ss", [Time] )
)
)
)

2. Establezca el formato de fecha del cálculo como

custom: hh:nn:ss

Si los datos de tiempo o el resultado de la agregación son inferiores a 24 h

1. Cree el siguiente cálculo

INT(STR(INT(SUM(ZN(INT(SPLIT(STR([Time]),':',1)))*3600+ZN(INT(SPLIT(STR([Time]),':',2)))*60+ZN(INT(SPLIT(STR([Time]),':',3))))
/3600)))*10000
+
INT(RIGHT("0"+STR(INT((SUM(ZN(INT(SPLIT(STR([Time]),':',1)))*3600+ZN(INT(SPLIT(STR([Time]),':',2)))*60+ZN(INT(SPLIT(STR([Time]),':',3))))
%3600)/60)),2))*100
+
INT(RIGHT("0"+STR(INT((SUM(ZN(INT(SPLIT(STR([Time]),':',1)))*3600+ZN(INT(SPLIT(STR([Time]),':',2)))*60+ZN(INT(SPLIT(STR([Time]),':',3))))
%3600)%60)),2))

2. Establezca el formato de número del cálculo como

custom: ###0:00:00

 
Número del artículo de conocimiento

001456854

Archivos adjuntos

aggregate time.twbx

20 KB

 
Cargando
Salesforce Help | Article