Select to view content in your preferred language

How much time between two time fields should be displayed?

247
1
08-30-2022 02:53 PM
jamesbondss
New Contributor

 

Hello, i am James from Chicago and a business owner of a tech company.
One of my fields has a "Start" time, and the other has an "End" time. Is there a way to generate a table that shows the average time between those two fields?

I'm still learning how to use insights, so there are many things I want to do but don't yet know how to do them.

0 Kudos
1 Reply
JenniferAcunto
Esri Regular Contributor

If you click on the the three dots next to your data source name and open up the data table you can calculate a new field that shows the length of time between two dates. 

The calculation you would use is DATEDIF(start_date, end_date, [unit]). The Unit is the unit of measurement you want to calculate:

  • "ss" = seconds
  • "mm" = minutes
  • "h" = hours
  • "D" = days
  • "M" = months
  • "Y" = years

2022-08-31_6-55-49.png

Once this new field has been calculated, you can use it like any other numeric field in Insights to display the average length of time. 

2022-08-31_6-53-40.png

 

Calculate a field in the data table

Functions

- Jen