Re: [Dhis2-devs] Program indicators - nested d2:condition()?

2016-07-08 Thread Alex Tumwesigye
Dear Olav, Good. Let me know if it works. Alex On Fri, Jul 8, 2016 at 2:47 PM, Olav Poppe wrote: > BTW, I see now that my initial formula was completely messed up, but the > bug is still there… > > Olav > > > > > 8. jul. 2016 kl. 13.43 skrev Olav Poppe : > > Thanks Alex, after a bit more diggi

Re: [Dhis2-devs] Program indicators - nested d2:condition()?

2016-07-08 Thread Olav Poppe
BTW, I see now that my initial formula was completely messed up, but the bug is still there… Olav > 8. jul. 2016 kl. 13.43 skrev Olav Poppe : > > Thanks Alex, after a bit more digging I think I’ve identified a bug in > d2:condition which might be causing this by messing up the quotes in the

Re: [Dhis2-devs] Program indicators - nested d2:condition()?

2016-07-08 Thread Olav Poppe
Thanks Alex, after a bit more digging I think I’ve identified a bug in d2:condition which might be causing this by messing up the quotes in the SQL that is generated (I might still need the brackets though): This simple d2:condition(): d2:condition(#{wmSb9TmevMn.FlzVuMSdC2F} == 'MONTHS', true, f

Re: [Dhis2-devs] Program indicators - nested d2:condition()?

2016-07-08 Thread Alex Tumwesigye
Olav, I have not tried it, how about using brackets? e.g d2:condition(x1,(d2:condition(x2,(d2:condition(x3,x3true,x3false),x2false),x1false) I am not sure if the brackets are supported but it will keep it in the same format. Alex On Fri, Jul 8, 2016 at 1:55 PM, Olav Poppe wrote: > Hi devs, >

[Dhis2-devs] Program indicators - nested d2:condition()?

2016-07-08 Thread Olav Poppe
Hi devs, I’m trying to set up a program indicator that counts events within age groups. Age is collected with two different methods: - Date of birth and date of death - Estimated age (when DoB is not available), using one «periodtype» field and one «period count» field, e.g. 4 and Months in two