-
-
Notifications
You must be signed in to change notification settings - Fork 487
Metrics [prod]
https://firelemons.github.io/casaMetricsComparison/
-
case contact count per org https://data.heroku.com/dataclips/idfolumrbaubogbmewdoeyahhdtj
-
volunteers assigned to supervisors per org https://data.heroku.com/dataclips/ymbdlyldhiiqcmsslbjfjdjmzwco
-
volunteer invitations accepted per org https://data.heroku.com/dataclips/ibzctyhepsfsgpiobxrltuhejxds
-
number of notifications by org https://data.heroku.com/dataclips/xsikhducnqfdrmfcntvdhtehuuwp
-
cases with emancipation entries per org https://data.heroku.com/dataclips/cnluraqwatwiupkkhkpueonwqcfz
-
cases with mandates per org https://data.heroku.com/dataclips/fairemyutljnkjgwldlaqtpecvvt
-
total hours in case contacts for ALL orgs https://data.heroku.com/dataclips/vgblwvzhclatsdxzdbihypqulckq
-
x case contacts by y volunteers per casa org https://data.heroku.com/dataclips/zjwklxzqruwfquvzbsovbsodipqd
select casa_org_id, sum(volunteer_count), sum(case_contacts_count)
from (
select casa_cases.casa_org_id,
count(distinct case_assignments.volunteer_id) as volunteer_count,
count(*) as case_contacts_count
from case_contacts
join casa_cases
on case_contacts.casa_case_id = casa_cases.id
join case_assignments on casa_cases.id = case_assignments.casa_case_id
where case_contacts.created_at > NOW() - INTERVAL '14 days'
group by casa_cases.casa_org_id, case_assignments.volunteer_id
order by casa_cases.casa_org_id
) as x
group by casa_org_id