dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35756
Fwd: If-then in indicator formula?
Hello Joven,
Please allow me to forward your question to our developer list.
Unfortunately, I don't think the current indicator implementation supports
such conditional expressions, though I've seen this question come up before
and the need for it is certainly there. Maybe this is something that could
be added in the near future, or others may have suggestions on how to work
around this limitation.
You could use the Web API to get the raw data into an HTML report and then
process them in the client, using Javascript. Alternatively, you could also
extract the data, process it using an external script (e.g. Python, R) and
inject the result back into DHIS2 (again preferably using the WebAPI).
Knut
---------- Forwarded message ----------
From: <larinj@xxxxxxxxxxxx>
Date: Wed, Feb 18, 2015 at 9:18 AM
Subject: If-then in indicator formula?
To: knutst@xxxxxxxxx
Hi Knut!
I hope you’re doing well. Wherever you are. J
I was wondering if it’s currently possible to do an if-then in the
indicator formula? I need to be able to count the “Yes”, “Partial” and
“No”-s (from an option set) in one of the datasets that I have.
Thanks in advance.
Regards,
-joven
*Joven Larin*
Informatics Assistant
Health Intelligence and Innovation
Division of Health Sector Development
World Health Organization | Regional Office for the Western Pacific |
Manila, Philippines
Tel: +63 2 5289967 | E-mail: larinj@xxxxxxxxxxxx | Web:
http://www.wpro.who.int
------------------------------
This message was scanned for viruses with Trend Micro ScanMail, GFI
MailSecurity and GFI MailEssentials by the World Health Organization
Regional Office for the Western Pacific. However, the recipient is advised
to scan this e-mail and any attached files for viruses.
Disclaimer:
This e-mail, together with any attachments, is intended for the named
recipients only and is confidential. It may also be privileged or otherwise
protected by law.
If you have received it in error, please notify the sender immediately by
reply e-mail and delete it and any attachments from your system. You may
not copy or disclose its contents to anyone.
<#14b9b36440597c73_14b9a95f6db13469_>
--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org
Follow ups