dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41256
Re: Org Unit count
Okay, but what does your indicator denominator look like? Can you post the
exact formula?
There is no such thing as a general org unit count - you can insert the
count of org units within a group into the formula.
regards,
Lars
On Tue, Nov 10, 2015 at 12:37 PM, Mugeni Harold <hmugeni@xxxxxxxxx> wrote:
> Hi Lars,
>
>
>
> I am not using an org unit group. The hierarchy of my instance is as
> follows:- MoH, Zone, District, Health Facility. Now for this particular
> indicator which is supposed to calculate the percentage of health
> facilities that have a functional water supply or a functional
> communication system or electricity (each of these is its own indicator),
> there are data elements reporting the number of health facilities with
> either water or communication or electricity. These data elements would
> serve as the numerators. For the denominator, I need to be able to retrieve
> the number of health facilities in that particular district. So what I am
> doing is actually selecting the district, but the result I am getting is
> always with an extra 1 added to it.
>
>
>
> Harold
>
>
>
> *From:* Lars Helge Øverland [mailto:larshelge@xxxxxxxxx]
> *Sent:* Tuesday, November 10, 2015 12:32 PM
> *To:* Mugeni Harold
> *Cc:* Alex Tumwesigye; DHIS 2 Users list; DHIS 2 developers
>
> *Subject:* Re: [Dhis2-devs] Org Unit count
>
>
>
> Hi Mugeni,
>
>
>
> here is a guess: You need to use a group for your indicator which contains
> facilities only, not facilities and districts. I suspect you are using an
> org unit group which contains the districts as well.
>
>
>
> regards,
>
>
>
> Lars
>
>
>
>
>
> On Tue, Nov 10, 2015 at 10:46 AM, Mugeni Harold <hmugeni@xxxxxxxxx> wrote:
>
> Hi Alex,
>
>
>
> Yes, it seems to be doing that. Is that by design or is it a bug?
>
>
>
> Harold
>
>
>
> *From:* Alex Tumwesigye [mailto:atumwesigye@xxxxxxxxx]
> *Sent:* Tuesday, November 10, 2015 11:41 AM
> *To:* Mugeni Harold
> *Cc:* dhis2-users@xxxxxxxxxxxxxxxxxxx; DHIS 2 developers
> *Subject:* Re: [Dhis2-devs] Org Unit count
>
>
>
> Dear Harold,
>
>
>
> Sounds like it counts the root/parent organisation unit.
>
>
>
> Alex
>
>
>
> On Tue, Nov 10, 2015 at 12:31 PM, Mugeni Harold <hmugeni@xxxxxxxxx> wrote:
>
> Hallo everyone,
>
>
>
> I am working on some indicators that require number of org units under a
> given org unit e.g. number of health facilities under a district. I am
> using the org unit count under the indicator numerator or denominator
> section, but I have noticed that the count returned is always with an extra
> one i.e. where I expect 22 facilities, it is giving me 23. Is this a bug or
> something to do with the hierarchy?
>
>
>
> Thank you,
>
> Harold
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
> --
>
> Alex Tumwesigye
>
>
>
> Technical Advisor - DHIS2 (Consultant),
> Ministry of Health/AFENET
>
> Kampala
>
> Uganda
>
> IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya
>
> IT Specialist (Servers, Networks and Security, Health Information Systems
> - DHIS2 ) & Solar Consultant
>
> +256 774149 775, + 256 759 800161
>
>
> "I don't want to be anything other than what I have been - one tree hill "
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
> --
>
> Lars Helge Øverland
>
> Lead developer, DHIS 2
>
> University of Oslo
>
> Skype: larshelgeoverland
>
> http://www.dhis2.org <https://www.dhis2.org>
>
>
>
--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org>
Follow ups
References