# Tracker Program Indicator using data element with	option sert

**URL:** <https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601>\
**Category:** Support - Assistance technique\
**Created:** [31 January 2017 07:36 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601 "2017-01-31T07:36:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brent\_Williams](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Brent\_Williams](https://community.dhis2.org/u/Brent_Williams)\
**Post date:** [31 January 2017 07:36 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601/1 "2017-01-31T07:36:36Z")

</div>

Dear all,

I have setup a tracker program, in which the data elements are using options sets in certain cases. I have tried to set up a program indicator that would calculate the value for the sum of the 1, 2 or 3 of the data element options, but the result is counting all the events are not filtering the 2 option.

![](https://dhis2.b-cdn.net/uploads/default/original/3X/a/0/a082bfec0e469f725b9a9128ab9753924fad229f.jpeg)

![](https://dhis2.b-cdn.net/uploads/default/original/3X/9/9/993c064b370589f95ff5e035df2c66f5893c583c.jpeg)

![](https://dhis2.b-cdn.net/uploads/default/original/3X/c/f/cff9ae6b3f70f40fed131b9c68a6313391ab4a3a.jpeg)

Is it possible to setup an program indicator using option sets?

What am I missing?

Brent Williams

![cid:image001.png@01CE610B.93E5D290](https://dhis2.b-cdn.net/uploads/default/original/1X/c20b484732d529a6cd8e3fe9395b957770e079af.png)

Project Implementation  
**Health Information Systems Program (HISP) - SA**

> **···**
>
> * * *
> 
> **e-mail:** [brent@hisp.org](mailto:brent@hisp.org)  
> \*\*Mobile: \*\* 071 542 9140
> 
> **Skype:** brent.williams267  
> \*\*Web: \*\* [http://www.hisp.org](http://www.hisp.org/)
> 
> _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._

---

<div class="post-metadata">

**Author:** ![Calle\_Hedberg](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/calle_hedberg/32/33875_2.png) [@Calle\_Hedberg](https://community.dhis2.org/u/Calle_Hedberg)\
**Post date:** [31 January 2017 08:43 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601/2 "2017-01-31T08:43:32Z")

</div>

Brent,

Are your program indicators using the option VALUE or the option CODE?

regards

calle

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/9/9/993c064b370589f95ff5e035df2c66f5893c583c.jpeg)

![image](https://dhis2.b-cdn.net/uploads/default/original/1X/c20b484732d529a6cd8e3fe9395b957770e079af.png)

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/c/f/cff9ae6b3f70f40fed131b9c68a6313391ab4a3a.jpeg)

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/a/0/a082bfec0e469f725b9a9128ab9753924fad229f.jpeg)

> **···**
>
> On 31 January 2017 at 09:36, Brent Williams [brent@hisp.org](mailto:brent@hisp.org) wrote:
> 
> > Dear all,
> 
> > 
> 
> > I have setup a tracker program, in which the data elements are using options sets in certain cases. I have tried to set up a program indicator that would calculate the value for the sum of the 1, 2 or 3 of the data element options, but the result is counting all the events are not filtering the 2 option.
> 
> > 
> 
> > 
> 
> > 
> 
> > Is it possible to setup an program indicator using option sets?
> 
> > What am I missing?
> 
> > 
> 
> > Brent Williams
> 
> > 
> 
> > Project Implementation  
> > **Health Information Systems Program (HISP) - SA**
> 
> > * * *
> 
> > **e-mail:** [brent@hisp.org](mailto:brent@hisp.org)  
> > \*\*Mobile: \*\* 071 542 9140
> 
> > **Skype:** brent.williams267  
> > \*\*Web: \*\* [http://www.hisp.org](http://www.hisp.org/)
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *

---

<div class="post-metadata">

**Author:** ![Markus](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@Markus](https://community.dhis2.org/u/Markus)\
**Post date:** [31 January 2017 08:48 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601/3 "2017-01-31T08:48:18Z")

</div>

Hi there Brent,

As Calle says, you should use the option set code for the program indicators. In your example below it seems you are using parenthesis around your condition value. You should remove these and use apostrophes to quote the option set code like this:

#{programstage.dataelement} == ‘Your optionset code’

Markus

> **···**
>
> On 31 January 2017 at 09:36, Brent Williams [brent@hisp.org](mailto:brent@hisp.org) wrote:
> 
> > Dear all,
> 
> > 
> 
> > I have setup a tracker program, in which the data elements are using options sets in certain cases. I have tried to set up a program indicator that would calculate the value for the sum of the 1, 2 or 3 of the data element options, but the result is counting all the events are not filtering the 2 option.
> 
> > 
> 
> > \<image001.jpg\>
> 
> > \<image002.jpg\>
> 
> > \<image003.jpg\>
> 
> > 
> 
> > 
> 
> > Is it possible to setup an program indicator using option sets?
> 
> > What am I missing?
> 
> > 
> 
> > Brent Williams
> 
> > \<image004.png\>
> 
> > Project Implementation  
> > **Health Information Systems Program (HISP) - SA**
> 
> > * * *
> 
> > **e-mail:** [brent@hisp.org](mailto:brent@hisp.org)  
> > \*\*Mobile: \*\* 071 542 9140
> 
> > **Skype:** brent.williams267  
> > \*\*Web: \*\* [http://www.hisp.org](http://www.hisp.org/)
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *

---

<div class="post-metadata">

**Author:** ![Calle\_Hedberg](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/calle_hedberg/32/33875_2.png) [@Calle\_Hedberg](https://community.dhis2.org/u/Calle_Hedberg)\
**Post date:** [31 January 2017 10:03 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601/4 "2017-01-31T10:03:09Z")

</div>

Markus,

You are saying “optionSETcode” - you do mean “optionVALUEcode”??

What Brent wants here is the ability to select one or more optionvalues, not optionSETs

Regards

calle

> **···**
>
> On 31 January 2017 at 10:48, Markus Bekken [markus@dhis2.org](mailto:markus@dhis2.org) wrote:
> 
> > Hi there Brent,  
> > As Calle says, you should use the option set code for the program indicators. In your example below it seems you are using parenthesis around your condition value. You should remove these and use apostrophes to quote the option set code like this:
> 
> > #{programstage.dataelement} == ‘Your optionset code’
> 
> > 
> 
> > Markus
> 
> > > 1. jan. 2017 kl. 09.43 skrev Calle Hedberg [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com):
> 
> > > Brent,
> 
> > > Are your program indicators using the option VALUE or the option CODE?
> 
> > >
> 
> > > regards
> 
> > > calle
> 
> > > * * *
> > > 
> > > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)  
> > > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)  
> > > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)  
> > > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> > 
> 
> –
> 
> On 31 January 2017 at 09:36, Brent Williams [brent@hisp.org](mailto:brent@hisp.org) wrote:
> 
> > Dear all,
> 
> > 
> 
> > I have setup a tracker program, in which the data elements are using options sets in certain cases. I have tried to set up a program indicator that would calculate the value for the sum of the 1, 2 or 3 of the data element options, but the result is counting all the events are not filtering the 2 option.
> 
> > 
> 
> > \<image001.jpg\>
> 
> > \<image002.jpg\>
> 
> > \<image003.jpg\>
> 
> > 
> 
> > 
> 
> > Is it possible to setup an program indicator using option sets?
> 
> > What am I missing?
> 
> > 
> 
> > Brent Williams
> 
> > \<image004.png\>
> 
> > Project Implementation  
> > **Health Information Systems Program (HISP) - SA**
> 
> > * * *
> 
> > **e-mail:** [brent@hisp.org](mailto:brent@hisp.org)  
> > \*\*Mobile: \*\* 071 542 9140
> 
> > **Skype:** brent.williams267  
> > \*\*Web: \*\* [http://www.hisp.org](http://www.hisp.org/)
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *

---

<div class="post-metadata">

**Author:** ![Markus](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@Markus](https://community.dhis2.org/u/Markus)\
**Post date:** [31 January 2017 10:03 UTC](https://community.dhis2.org/t/tracker-program-indicator-using-data-element-with-option-sert/33601/5 "2017-01-31T10:03:52Z")

</div>

Value code, yes - thank you Calle 🙂

> **···**
>
> On 31 January 2017 at 10:48, Markus Bekken [markus@dhis2.org](mailto:markus@dhis2.org) wrote:
> 
> > Hi there Brent,  
> > As Calle says, you should use the option set code for the program indicators. In your example below it seems you are using parenthesis around your condition value. You should remove these and use apostrophes to quote the option set code like this:
> 
> > #{programstage.dataelement} == ‘Your optionset code’
> 
> > 
> 
> > Markus
> 
> > > 1. jan. 2017 kl. 09.43 skrev Calle Hedberg [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com):
> 
> > > Brent,
> 
> > > Are your program indicators using the option VALUE or the option CODE?
> 
> > >
> 
> > > regards
> 
> > > calle
> 
> > > * * *
> > > 
> > > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)  
> > > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)  
> > > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)  
> > > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> > 
> 
> –
> 
> On 31 January 2017 at 09:36, Brent Williams [brent@hisp.org](mailto:brent@hisp.org) wrote:
> 
> > Dear all,
> 
> > 
> 
> > I have setup a tracker program, in which the data elements are using options sets in certain cases. I have tried to set up a program indicator that would calculate the value for the sum of the 1, 2 or 3 of the data element options, but the result is counting all the events are not filtering the 2 option.
> 
> > 
> 
> > \<image001.jpg\>
> 
> > \<image002.jpg\>
> 
> > \<image003.jpg\>
> 
> > 
> 
> > 
> 
> > Is it possible to setup an program indicator using option sets?
> 
> > What am I missing?
> 
> > 
> 
> > Brent Williams
> 
> > \<image004.png\>
> 
> > Project Implementation  
> > **Health Information Systems Program (HISP) - SA**
> 
> > * * *
> 
> > **e-mail:** [brent@hisp.org](mailto:brent@hisp.org)  
> > \*\*Mobile: \*\* 071 542 9140
> 
> > **Skype:** brent.williams267  
> > \*\*Web: \*\* [http://www.hisp.org](http://www.hisp.org/)
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *
> 
> * * *
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: [calle.hedberg@gmail.com](mailto:calle.hedberg@gmail.com)
> 
> Skype: calle\_hedberg
> 
> * * *
