# Using attribute options in indicators

**URL:** <https://community.dhis2.org/t/using-attribute-options-in-indicators/4954>\
**Category:** Support - Assistance technique\
**Created:** [20 March 2018 04:17 UTC](https://community.dhis2.org/t/using-attribute-options-in-indicators/4954 "2018-03-20T04:17:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shurajit\_Dutta](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shurajit_dutta/32/31781_2.png) [@Shurajit\_Dutta](https://community.dhis2.org/u/Shurajit_Dutta)\
**Post date:** [20 March 2018 04:17 UTC](https://community.dhis2.org/t/using-attribute-options-in-indicators/4954/1 "2018-03-20T04:17:41Z")

</div>

Hi everyone

Is it possible to use attribute options in indicators calculations. For example if I have two partners assigned to a dataset, PSI and Save the Children but I only want to include PSI data in the indicator.

Thanks

Nick

---

<div class="post-metadata">

**Author:** ![Jim\_Grace](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jim_grace/32/94_2.png) [@Jim\_Grace](https://community.dhis2.org/u/Jim_Grace)\
**Post date:** [20 March 2018 13:22 UTC](https://community.dhis2.org/t/using-attribute-options-in-indicators/4954/2 "2018-03-20T13:22:51Z")

</div>

Hi Nick,

Yes, in version 2.27 and onwards you can do exactly that. The attributeoptcombo-id can be given as a third element in an indicator variable after the dataelement-id and categoryoptcombo-id. See the documentation at [https://docs.dhis2.org/master/en/developer/html/webapi\_indicators.html](https://docs.dhis2.org/master/en/developer/html/webapi_indicators.html).

Cheers,

Jim

> **···**
>
> On Tue, Mar 20, 2018 at 12:17 AM, Shurajit Dutta [shurajitdutta@gmail.com](mailto:shurajitdutta@gmail.com) wrote:
> 
> > Hi everyone
> 
> > Is it possible to use attribute options in indicators calculations. For example if I have two partners assigned to a dataset, PSI and Save the Children but I only want to include PSI data in the indicator.
> 
> > 
> 
> > Thanks
> 
> > Nick
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> Jim Grace  
> Core developer, DHIS 2
> 
> HISP US Inc.
> 
> [http://www.dhis2.org](https://www.dhis2.org/)

---

<div class="post-metadata">

**Author:** ![Shurajit\_Dutta](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shurajit_dutta/32/31781_2.png) [@Shurajit\_Dutta](https://community.dhis2.org/u/Shurajit_Dutta)\
**Post date:** [20 March 2018 14:46 UTC](https://community.dhis2.org/t/using-attribute-options-in-indicators/4954/3 "2018-03-20T14:46:14Z")

</div>

Great, thanks Jim!

> **···**
>
> On Tue, Mar 20, 2018 at 9:22 AM, Jim Grace [jim@dhis2.org](mailto:jim@dhis2.org) wrote:
> 
> > Hi Nick,
> 
> > Yes, in version 2.27 and onwards you can do exactly that. The attributeoptcombo-id can be given as a third element in an indicator variable after the dataelement-id and categoryoptcombo-id. See the documentation at [https://docs.dhis2.org/master/en/developer/html/webapi\_indicators.html](https://docs.dhis2.org/master/en/developer/html/webapi_indicators.html).
> 
> > Cheers,
> 
> > Jim
> 
> > 
> 
> –
> 
> On Tue, Mar 20, 2018 at 12:17 AM, Shurajit Dutta [shurajitdutta@gmail.com](mailto:shurajitdutta@gmail.com) wrote:
> 
> > Hi everyone
> 
> > Is it possible to use attribute options in indicators calculations. For example if I have two partners assigned to a dataset, PSI and Save the Children but I only want to include PSI data in the indicator.
> 
> > 
> 
> > Thanks
> 
> > Nick
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Jim Grace  
> Core developer, DHIS 2
> 
> HISP US Inc.
> 
> [http://www.dhis2.org](https://www.dhis2.org/)
> 
> –
> 
> Shurajit Dutta (MPH, MHI)  
> Health Information Systems Adviser
