Re: [Dhis2-users] Analytics query - filter on org unit group

2017-01-20 Thread Martin Van Aken
This is exactly what I needed. Just tested it. I did not expect to have to specify the group set (even if I can understand). Great, thanks. On Fri, Jan 20, 2017 at 4:30 PM, Jan Henrik Øverland wrote: > Hi Martin, > > Keep Sierra Leone as the "ou" and simply add

Re: [Dhis2-users] Analytics query - filter on org unit group

2017-01-20 Thread Lars Helge Øverland
Small correction: Facility type - org unit group set - id: J5jldMd8OHv CHC - org unit group - id: CXw2yu5fodb https://play.dhis2.org/demo/api/analytics.json?dimension=dx:fbfJHSPpUQD=pe:LAST_12_MONTHS=ou:ImspTQPwCqd=J5jldMd8OHv:CXw2yu5fodb On Fri, Jan 20, 2017 at 5:22 PM, Lars Helge Øverland

Re: [Dhis2-users] Analytics query - filter on org unit group

2017-01-20 Thread Lars Helge Øverland
Hey Martin, I suggest that you use (if necessary create) an organisation unit group set-based dimension in your request. The group in question needs to be part of the group set. In this case we can use the org unit group set called "facility type" as an example, where CHC is one of the groups.

[Dhis2-users] Analytics query - filter on org unit group

2017-01-20 Thread Martin Van Aken
Hello everyone, I've a question on the analytics API. If I want to get a result for a single org unit, I can do something like this: https://play.dhis2.org/demo/api/analytics.json?dimension=dx:fbfJHSPpUQD=pe:LAST_MONTH=ou:ImspTQPwCqd (in this case, asking for the ANC 1st visit result for the