Hi @here Query is giving different results but the...
# announcements
h
Hi @here Query is giving different results but the analysis engine is showing bit different cc: @future-teacher-7046 @fresh-football-47124
f
Which numbers are different?
h
@fresh-football-47124 count is 55/52 but its showing 477/365 in variation 0/1.
f
how have you defined that metric?
h
This is the metric query as count.
Copy code
SELECT 
c_user_id, cuserid as value,
experimentvariationid AS variation_id,
max(timestamp) AS timestamp,
FROM `EXPERIMENTS_*` 
WHERE cuserid is not null
group by experimentvariationid,cuserid
f
"count" in the query result actually refers to the denominator and is usually the same as the number of users. The 477/365 part comes from multiplying the mean by the count.
1
h
@future-teacher-7046 why we apply it with mean?
f
We could have selected sum and then divided by the denominator to get the mean if we wanted. No real reason why we went with the method we did.
1