After tallying the scores, taking the MEAN

Hi,

I"m very new to CommCare. I am taking a score tally of Group A that can be
repeated numerous times based on the USER. I do not want, if possible, to
have to prompt the user to ask them how many times they would like Group A
to repeat. Rather, on the Android Tablet, a window pops up at the end of
GROUP A questions if the user would like to "Add another Group" or "Do not
add another group"

I'm wondering if it is possible to find the mean of all the score tallies
for group A after the group has been repeated a number of times.

repeat-group-A

list-group-A

Q1
Q2
Q3...
individual-calculation { /data/repeat-group-A/list-group-A/Q1 +
/data/repeat-group-A/list-group-A/Q2 + .... }
Display Calculation { }
total-calculation { sum(.../individual-calculation) }
Display Calculation { }
?? finding the mean of group A { (total-calculation/??) } ???
Display MEAN { }

Any help would be appreciated!

Hey Ann,

I think you're looking for the count() function
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-count
.

best,
Cory

ยทยทยท On Thu, May 19, 2016 at 5:54 AM, Ann Duong wrote:

Hi,

I"m very new to CommCare. I am taking a score tally of Group A that can be
repeated numerous times based on the USER. I do not want, if possible, to
have to prompt the user to ask them how many times they would like Group A
to repeat. Rather, on the Android Tablet, a window pops up at the end of
GROUP A questions if the user would like to "Add another Group" or "Do not
add another group"

I'm wondering if it is possible to find the mean of all the score tallies
for group A after the group has been repeated a number of times.

repeat-group-A

list-group-A

Q1
Q2
Q3...
individual-calculation { /data/repeat-group-A/list-group-A/Q1 +
/data/repeat-group-A/list-group-A/Q2 + .... }
Display Calculation { }
total-calculation { sum(.../individual-calculation) }
Display Calculation { }
?? finding the mean of group A { (total-calculation/??) } ???
Display MEAN { }

Any help would be appreciated!

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.