← Back to team overview

dhis2-devs team mailing list archive

[Bug 345239] Re: Incorrect Monthwise data for Annual DataElement

 

Datamart previously calculated the duration of a Period by taking the
endate and "subtract" the start date. This led to slightly wrong values
as DHIS2 periods are "inclusive", meaning that eg January goes from 1/1
- 31/1 (not 1/2). This means that the system believed it is 30 days in
Januar, which lead to slightly wrong values when aggregating for shorter
periods than the dataavalue period. Added one day to the period span
calculation to get precise values.

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)
       Status: New => Fix Committed

-- 
Incorrect Monthwise data for Annual DataElement
https://bugs.launchpad.net/bugs/345239
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in District Health Information Software: Fix Committed

Bug description:
we created one dataelement which is Annual periodtype (say total population) and Aggregationtype as SUM.
For the year 2008 we entered data say 15000.

In the datamart, we selected that dataelement, orgunit, and all monthly periods for 2008 (ie jan-2008 to dec-2008). After datamart export, when we are trying to sum the values of all these months it is not matching with yearly value (ie 15000).

It seems to be for the months which are 31 days it is taking 30 days and for the months which are 30 days it is taking 29 days only.



References