dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #15405
Insight on program indicator and rule
-
To:
DHIS 2 Users list <dhis2-users@xxxxxxxxxxxxxxxxxxx>
-
From:
Natalie Tibbels <ntibbel1@xxxxxxx>
-
Date:
Thu, 15 Mar 2018 17:33:38 +0000
-
Accept-language:
en-US
-
Ironport-phdr:
9a23:88mAuh+s44CjZP9uRHKM819IXTAuvvDOBiVQ1KB31O0cTK2v8tzYMVDF4r011RmVBd6ds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55Pebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiCgZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsaS2RfQ8hRSyJPDIC9b4QTAOUMJvxXo5X4p1YUsReyGQuhCeXywTFInH/22qg63vw5Hw7cwAwvBdYOsHXKo97oKqkSUPu6w7LWwjXHdPNdxDDw6I7UchAguv6DRqx/cc7MxUQ0FQPFjkiQpZb7MDyIy+QAqm6W5PdjW+K3k2Mrth19riKyysoskIXEhYYYxkra+Sh2z4s5PcC0RFJhbdK5EpZduTuWOo90T884XW1kpSU3xqUIuZGlfyUG1JEqyhvCZPCacYWE/hfuW/yQLDp4mX1ofbyyiAu2/ES+z+DzTNO70FhOoydDj9LCrGoC1wbJ5ciCUvZ9+0Ch1iuR2A3L8eFEJFw0lbLcK5483r48jpoTvlrHHi/xgEj4g7KYeEQr9OW15OroY6jqq56GO456iwH+NL4ildaiDugiMAgOX3Wb9f6i27L+4E31WLRKjvsonanFqJ3WONgXqrSkDwJVyIou6BKyAy243NkXknQLNFdFdwiGj4jtNVHOOvf4DfKnjlSqjDdrxuvJMab/DZXJM3TOi7XhfbZg60JG1gU80M1f64pOCr4dOPLzRlPxtNvAAxAkMwy0wv3nBMtk2oMDQmKAHLWZMLjJvF+M5+IvOPWMZJQPtDb5Mfcl+vjugmM5mV8FZ6amwIEbaHamEfR6cA2lZi/AovY6WT1CgxEzVveijFyZTXYHa3azRPh5+yo2EpmOCYbYWpvrhLWc2iy7BpRaIGZLFgbfP23vctCiUusFbCOfavNgmDYJUaPpH4k91BukuQuj47hnM6zZ9jBO5sGr78R8++CGzUJ6zjdzFcnIljjVF2w=
-
Thread-index:
AQHTvIPAU+YTMv1kP0ahfPHOSaGpAA==
-
Thread-topic:
Insight on program indicator and rule
Hi all,
Wondering if anyone could help with an indicator and a program rule.
What is wrong with this indicator (to calculate age from date of birth):
Want to count total enrollments where age is 35-39
Expression:
V{enrollment_count}
Filter:
(d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) >= 35 and (d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) <= 39
[In the actual expression, the date of birth is the UID for date of birth]
It’s producing no data but there should be some – think I’m making a simple mistake.
What is wrong with this program rule:
If the person says "no" for agreement to be contacted, hide the phone number field
Name: Hide phone number field
Expression: A{Agree to be contacted} == 'No'
BUT, when I test it, if I click “Yes, agree to be contacted” the phone number disappears and if I click “No” the phone number remains. So the opposite of what I want….
Thanks for any suggestions!
Follow ups