Hello,
I'm trying to create a program indicator which would evaluate if a ratio is
equal higher than 80 and return 1 or 0 if not the case.
This is what I have in the expression:
d2:condition('((#{tbLC6IHktf0.CpOPiHrFG8C} * 100) /
#{tbLC6IHktf0.spWKINz7xwF}) >= 80', 100, 0)
The program indicator show the expression as valid, but when I try to use
it in a event report, I get this error:
"Illegal arguments, expected 3 arguments: condition, true-value,
false-value."
I tested the ratio separately and it works.
Any one have any insight of what could be wrong there? I could not find a
lot of public examples using d2:condition so I may have done a basic
mistake here.
Thanks !
Martin
--
*Martin Van Aken - **Freelance Enthusiast Developer*
Mobile : +32 486 899 652
Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
Call me on Skype : vanakenm
Hang out with me : [email protected]
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp