← Back to team overview

dhis2-devs team mailing list archive

Re: Average (sum in org unit hierarchy) not working in 2.24 and 2.25?

 

Hi Em,

You have been testing with average values recently. Do you have any idea?


On Wed, Nov 16, 2016 at 6:56 PM, Jose Garcia Muñoz <josemp10@xxxxxxxxx>
wrote:

>
> Hi devs,
>
> any comments on this?
>
> Thanks much!
> Jose
>
> On Fri, Nov 11, 2016 at 5:11 AM, Jose Garcia Muñoz <josemp10@xxxxxxxxx>
> wrote:
>
>>
>> More info about this...
>>
>> We only have data for October 2016 (20), and September 2016 (4). If I
>> select periods as a filter, this is what happens:
>>
>> 1) Last month. The value should be 20!!
>>
>> [image: Inline image 1]
>>
>> 2) Last 3 months, last 6 months, and last 12 months, gives 24.7. It
>> calculates the sum (with the strange 0.7), no the average.
>>
>> [image: Inline image 2]
>>
>> 3) This Quarter (approx, the real result should be 6.666)
>>
>> [image: Inline image 3]
>>
>> 4) Last Quarter (correct!)
>>
>> [image: Inline image 4]
>>
>>
>> 5) This six-month (approx, the result should be 4. Don't understand why
>> the addition of 0.1 as the results of divisions are integers)
>>
>> [image: Inline image 5]
>>
>> 6) This year (correct!)
>>
>> [image: Inline image 6]
>>
>>
>> Will be great to have your feedback, as this is very urgent for us! :) .
>> It seems it works well (but with some rounding problems) when the periods
>> selected in the analytics are quartes, six-months, years, etc. but no for
>> months (that calculates the total).
>>
>> Many thanks
>> Jose
>>
>> On Tue, Nov 8, 2016 at 2:19 PM, Jose Garcia Muñoz <josemp10@xxxxxxxxx>
>> wrote:
>>
>>>
>>> Dear devs,
>>>
>>> I have the 'test' dataelement which its Agregation type is 'Average (sum
>>> in org unit hierarchy)', however it doesn't seem to calculate the average
>>> for periods. For example
>>>
>>> [image: Inline image 1]
>>>
>>> if a select the period as filter I suppose I should get 12 right?
>>> However, what I get is:
>>>
>>> [image: Inline image 2]
>>>
>>> 24.7 that I don't understand. Am I doing something wrong? Is it a bug?
>>> This is very urgent for us. If it is a bug, we would need a fix for both,
>>> 2.24 and 2.25. Would that be possible?
>>>
>>> Sum accross org. unit tree seems to be ok
>>>
>>> Thanks much
>>> Jose
>>>
>>>
>>
>
> _______________________________________________
> 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
>
>

PNG image

PNG image

PNG image

PNG image

PNG image

PNG image

PNG image

PNG image


References