Re: [Dhis2-users] Insight on program indicator and rule

2018-03-16 Thread Aaron C White
Natalie, In addition to what Markus and Prosper have suggested, do you have access to the logs of your server? That can be a very useful source of information especially when trying to debug program indicators. I will usually set up a terminal tailing the log and then try to view my program indi

Re: [Dhis2-users] Insight on program indicator and rule

2018-03-16 Thread Prosper BT
Hi Natalie, In addition to Markus advice above, also check the you use of brackets, they are not balanced (d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) in this expression, you are dividing before executing and calcultating the entire days between, should be (d2:daysBetween(A{Date o

Re: [Dhis2-users] Insight on program indicator and rule

2018-03-15 Thread Markus Bekken
Hi there Natalie! Your program indicator looks all good. Can it be that the aggregation type is not "Count"? If your expression is a count, then the aggregation type needs to be "Count" or "Custom" for advanced cases. Tip: There is also a d2:yearsBetween function. For the program rule, I wonder

[Dhis2-users] Insight on program indicator and rule

2018-03-15 Thread Natalie Tibbels
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}) /