Program indicator with filter use data type "yes/no"

Hi Community
In a tracker program created in Dhis2 2.36, I try to count among the patients registered in the program those who are in prison. the data element uses as data type “yes/no”.
In indicator program I used the expression: V{event_count}
In ‘Edit filter’ I used: Incarcerated patient == true
But it does not work.
Can anyone help me to solve this problem.
Thank you

1 Like

Hi @elmoujarrade

Another way to do it is using the function d2:countIfValue, it should look something like this in the expression:


And don’t add anything to the filter.

Let me know if that works.


Hi, @nancyesp
Thank you for your support.
I tried your suggestion, but it still doesn’t work.
please verify the expression I used in the attached image.


The expression looks good!

Make sure you also have these parameters configured:

I also suggest to clean cache or open an incognito window to test the indicator