← Back to team overview

dhis2-devs team mailing list archive

Re: Getting NumberType in Pivot Tables through APIs - DHIS 2.27


Hi Guarav,

Percentage of rows/columns is currently calculated by the app. There is no
way to get this from the API at the moment.


On Wed, Apr 25, 2018 at 11:18 AM, Kumar Shahdeo <gauravns@xxxxxxxxxxxxxxxx>

> Hi Community,
> I am trying to leverage the numberType field for the pivot tables through
> APIs.
> In DHIS, for a pivot table I can navigate to Options and choose numberType
> as 'Percentage of rows', or 'Percantage of columns' and can update the
> pivot table to view data in percentage.
> I have updated the table and I am able to see data in percentage in DHIS.
> However, when I am making calls to versioned APIs api/25/analytics in DHIS
> 2.27 I am getting the data for that pivot table, in NUMBER format and not
> How can I get the data for pivot tables in percentage when the given pivot
> table is using NumberType as 'Percentage of rows'?
> Thanks
> Gaurav
> _______________________________________________
> 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