Hello, Fernando shake.
In response to your inquiry, I recommend that you query the database using the SQL view section of the maintenance app.
Here’s an example of a SQL query for per-user enrolment.
Select q.name as name1, p.name as name2, o.name, storedby as user, COUNT(storedby) as total_enrollment
FROM trackedentityattributevalue
INNER JOIN trackedentityinstance ON trackedentityattributevalue.trackedentityinstanceid = trackedentityinstance.trackedentityinstanceid
INNER JOIN organisationunit o ON trackedentityinstance.organisationunitid = o.organisationunitid
LEFT OUTER JOIN organisationunit p on p.organisationunitid = o.parentid
LEFT OUTER JOIN organisationunit q on q.organisationunitid = p.parentid
WHERE trackedentityattributeid IN
(SELECT trackedentityattributeid FROM trackedentityattribute WHERE trackedentityattribute.name = ‘Enrollment ID’)
AND trackedentityattributevalue.created BETWEEN ‘2000-03-01’ AND ‘2000-08-15’
GROUP BY storedby, q.name, p.name, o.name
ORDER BY q.name, storedby;
I hope our response is able to solve the issue you were facing.
With from the Dhistance Team.
DHISTANCE.com: The Easiest DHIS2 Setup. Up and running in 5 minutes!
No technical knowledge needed! Great Support with Data Security/Confidentiality.