(API) Ordering analytics results

We want to retreive the 5 entities with the highest values for a given period and data element. I can retreive all values easily with an analytics call, but is there any way to order the results on the values (I can then limit the call to five entities).

I saw example of “order” or “defaultOrder” clauses, but those were all related to meta data - in my case I want to order values.

Any help would be most welcome,

Thanks,

Martin

···

**Martin Van Aken - **Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken

Call me on Skype : vanakenm

Hang out with me : martin@joyouscoding.com

Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken

Company website : www.joyouscoding.com

Hey Martin,

sorry but that is not currently possible. Feel free to write a Jira issue and we can look into it.

regards,

Lars

···

On Thu, Aug 10, 2017 at 8:32 PM, Martin Van Aken martin@joyouscoding.com wrote:

We want to retreive the 5 entities with the highest values for a given period and data element. I can retreive all values easily with an analytics call, but is there any way to order the results on the values (I can then limit the call to five entities).

I saw example of “order” or “defaultOrder” clauses, but those were all related to meta data - in my case I want to order values.

Any help would be most welcome,

Thanks,

Martin


**Martin Van Aken - **Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken

Call me on Skype : vanakenm

Hang out with me : martin@joyouscoding.com

Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken

Company website : www.joyouscoding.com


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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

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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Will do, thanks for the quick answer.

Regards,

Martin

···

On Fri, Aug 11, 2017 at 10:44 AM, Lars Helge Øverland lars@dhis2.org wrote:

Hey Martin,

sorry but that is not currently possible. Feel free to write a Jira issue and we can look into it.

regards,

Lars

On Thu, Aug 10, 2017 at 8:32 PM, Martin Van Aken martin@joyouscoding.com wrote:

We want to retreive the 5 entities with the highest values for a given period and data element. I can retreive all values easily with an analytics call, but is there any way to order the results on the values (I can then limit the call to five entities).

I saw example of “order” or “defaultOrder” clauses, but those were all related to meta data - in my case I want to order values.

Any help would be most welcome,

Thanks,

Martin


**Martin Van Aken - **Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken

Call me on Skype : vanakenm

Hang out with me : martin@joyouscoding.com

Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken

Company website : www.joyouscoding.com


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

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

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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

**Martin Van Aken - **Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken

Call me on Skype : vanakenm

Hang out with me : martin@joyouscoding.com

Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken

Company website : www.joyouscoding.com