Select to view content in your preferred language

How to get a sum of time?

1207
4
Jump to solution
03-16-2023 08:19 AM
Labels (3)
Davec43
Regular Contributor

I'm trying to get a summary of the duration for ID's using summary statistics. Data type is text with no number format.

IDDuration
ABCD1:08:47
XYZ0:09:23
XYZ0:07:31
ABCD0:04:30

 

When I try to do sum of the Duration Field, I get this error:

ERROR 000315 Field Formated_Total_Duration only supports statistic types MIN, MAX, MEAN, COUNT, FIRST, LAST, UNIQUE.

Is there a work around or another tool I should be using?

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You can use Arcade to do that. Take a look at this solution.

View solution in original post

0 Kudos
4 Replies
KenBuja
MVP Esteemed Contributor

Can you convert that to a numeric time, such as minutes or seconds, and get the statistics for field instead?

Davec43
Regular Contributor

If I convert it into seconds in excel before importing the data over, it works.  Is there a way in arc to convert seconds to hh:mm:ss?

0 Kudos
KenBuja
MVP Esteemed Contributor

You can use Arcade to do that. Take a look at this solution.

0 Kudos
DuncanHornby
MVP Notable Contributor

You don't say anything about how the time is stored, as you show it, it could be as a string, so summing a string makes no sense. You need to edit your question and add more detail, especially data format and what it is you are doing.