For a pivot table example see here: http://apps.dhis2.org/demo/api/reportTables/KmJwftqlU86/data.html