I have 4 custom ticket fields:
Start Date - Date field.
End Date - Date field.
Start Time - Regex field with HH:MM format.
End Time - Regex field with HH:MM format.
I'm trying to calculate the time between the Start Date + Start Time and End Date + End Time. This is the formula I got so far. It works but the results are incorrect and I can't figure out why.
DATE_DIFF(DATE_ADD([Start Date - Timestamp], "minute", NUMBER(SUBSTR([Start Time (HH:MM)], 0, 2)) * 60 + NUMBER(SUBSTR([Start Time (HH:MM)], 3, 5))), DATE_ADD([End Date - Timestamp], "minute", NUMBER(SUBSTR([End Time (HH:MM)], 0, 2)) * 60 + NUMBER(SUBSTR([End Time (HH:MM)], 3, 5))), "nb_of_minutes")

Here is how it looks like if I use "minute" instead of "nb_of_minutes":

Calculated Start Date:
DATE_ADD([Start Date - Date], "minute", NUMBER(SUBSTR([Start Time (HH:MM)], 0, 2)) * 60 + NUMBER(SUBSTR([Start Time (HH:MM)], 3, 5)))
Calculated End Date:
DATE_ADD([End Date - Date], "minute", NUMBER(SUBSTR([End Time (HH:MM)], 0, 2)) * 60 + NUMBER(SUBSTR([End Time (HH:MM)], 3, 5)))
It feels like the DATE_DIFF function is not taking the whole timestamp. I can't make any sense of the results or what I'm doing wrong.
Obrigado por entrar em contato conosco. Me chamo Vladimir e farei seu atendimento.
Verifiquei sua conversa com o bot e vi que você está com problemas com métricas personalizadas, certo?
Nos artigos abaixo, você pode ver como trabalhar com porcentagem no Explore:
Vale ressaltar que a criação, edição ou correção de métricas e atributos personalizados está fora desse canal de suporte. Caso queira contratar um serviço personalizado junto à Zendesk, você pode entrar em contato com seu executivo de contas para entender a viabilidade de um upgrade em seu plano: felipe.donato@zendesk.com (
Espero que isso te ajude e, se necessário, estou à disposição.