Calculation with strings

Hi everyone,

In my program stage, I Have a list of yes/no questions. The answers are selected from a dropdown list (option set). I want to calculate total score based on the total of yes responses (numerator)/total of responses (denominator)x100. I would like to display the following classification in the tracker dashboard:

If Total score is >= 80%: C

If Total score is >= 50%: CNI

If Total score is < 50%: NC

Can you anyone in the community provide me with a step-by-step explanation about how to get this done.

Looking forward to an answer

Thanks

1 Like

This post explains something very similar and probably you can use as a baseline for what you are trying to achieve.

Cheers!

1 Like

Hi @jaime.bosque,

Would it possible to achieve what I want by using program indicators so that the classification is displayed in the tracker dashboard?

Thanks

Hi @fernandoshake yes it is possible. As you will assign this to a data element. From there you can create a regular indicator if you want.
Thanks

1 Like