[Dhis2-devs] Getting NumberType in Pivot Tables through APIs - DHIS 2.27

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 as ROW_PERCENTAGE.

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

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.

Jan

···

On Wed, Apr 25, 2018 at 11:18 AM, Kumar Shahdeo gauravns@thoughtworks.com wrote:

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 as ROW_PERCENTAGE.

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp