← Back to team overview

dhis2-devs team mailing list archive

Re: WebAPI: Calculating indicator SUM/AVG for Quarters in a previous year

 

Hi Greg,

no - not possible at the moment, sorry. You will have to do the final
calculation client-side.

regards,

Lars


On Mon, May 9, 2016 at 2:13 PM, Jason Pickering <jason.p.pickering@xxxxxxxxx
> wrote:

> Hi Greg,
> I do not think this particular period exists.
>
> You have six-monthly periods, but they are defined as Jan-Jun (Q1 + Q2)
>  and July-December (Q3 + Q4)
>
>
> which is not what you want.
>
> I do not think this is currently possible.
>
> Regards,
> Jason
>
>
>
> ​
>
> On Mon, May 9, 2016 at 2:02 PM, Greg Rowles <greg.rowles@xxxxxxxxx> wrote:
>
>> Sorry, I should have been clearer. I mean to collapse the period
>> dimension and calculate the average or sum depending on the indicator
>> type...
>>
>> On Mon, May 9, 2016 at 1:49 PM, Greg Rowles <greg.rowles@xxxxxxxxx>
>> wrote:
>>
>>> Dear Devs
>>>
>>> Is there a way to call the analytics API so that it calculates an
>>> indicator value for 2 quarters in a previous year? E.g. I want the average
>>> indicator score for an indicator but from Q2 + Q3 of 2015 and not the
>>> individual quarterly values but the combined average for that period
>>> range...
>>>
>>> Kind Regards,
>>> Greg
>>>
>>> --
>>> *Health Information Systems Program - South Africa*
>>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
>>> - - *
>>> Mobile  :    073 246 2992
>>> Landline:   021 851 2216
>>> Skype:      gregory_rowles
>>>
>>
>>
>>
>> --
>> *Health Information Systems Program - South Africa*
>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
>> - *
>> Mobile  :    073 246 2992
>> Landline:   021 851 2216
>> Skype:      gregory_rowles
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.pickering@xxxxxxxxx
> tel:+46764147049
>
> _______________________________________________
> 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
lars@xxxxxxxxx
http://www.dhis2.org <https://www.dhis2.org/>

PNG image


Follow ups

References