https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
o

orange-train-515

11/02/2021, 1:55 PM
So there is a "duration" metric type with the example query
Copy code
SELECT
  user_id as user_id,
  anonymous_id as anonymous_id,
  duration as value,
  received_at as timestamp
FROM
  sessions
What happens if there are several entries with the same user id? Do we sum all the values of the same user or calculate their average?
f

future-teacher-7046

11/02/2021, 1:56 PM
It does a SUM when there are multiple rows
o

orange-train-515

11/02/2021, 2:01 PM
Great, thanks! Just exactly what I need
12 Views