Deactivated user - thanks for the reply. I'll dig through the Ruby code on GitHub and see what I can figure out.
In the meantime, here are a couple queries and their corresponding results, as well as the results that are displayed on the Account Analytics page in case that helps us troubleshoot.
-- attempt to count courses for spring 2016
-- result is 2,412 courses; Analytics page shows 2,413... so this is really close
select count(id)
from course_dim
where enrollment_term_id = '10430000000000078'
and workflow_state = 'available';
-- attempt to count files uploaded spring 2016
-- result is 224,084; Analytics page shows 175,939... so this is way off
select count(f.id)
from file_dim f
join course_dim c
on f.course_id = c.id
and c.enrollment_term_id = '10430000000000078'
where f.file_state ~ 'hidden'
or f.file_state ~ 'available';
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.