← Back to team overview

dhis2-devs team mailing list archive

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

Follow ups