Tallying all the repeat groups

21 views
Skip to first unread message

Ann Duong

unread,
May 18, 2016, 10:13:51 AM5/18/16
to commcare-users
I have a group labeled A with a handful of Multiple Questions (yes-1 and no-0). I am able to calculate the total or tally within group A. However, I would like to repeat group A depending on the number of times the User would like. 

And I would like to be able to find the Total of Group A after the Group A has been repeated a few times. Anyone have any ideas how to do this? 

Sheel Shah

unread,
May 18, 2016, 11:05:12 AM5/18/16
to commcar...@googlegroups.com
Hi Ann,

I'm guessing your form looks something like this:

- num_repeats [Number question that asks how many times to repeat]
- repeat_group
--- q1
--- q2
--- group_score [hidden value]
- total_score [hidden value]
  • To control the number of times that repeat group repeats, you can choose the repeat group question in the form builder and then drag in the question num_repeats into the field "Repeat Count"
  • To sum the tally across repeated groups, in the hidden value "total_score" you can use sum(/data/repeat_group/group_score)
Thanks,
Sheel



On Wed, May 18, 2016 at 10:13 AM, Ann Duong <abd...@gmail.com> wrote:
I have a group labeled A with a handful of Multiple Questions (yes-1 and no-0). I am able to calculate the total or tally within group A. However, I would like to repeat group A depending on the number of times the User would like. 

And I would like to be able to find the Total of Group A after the Group A has been repeated a few times. Anyone have any ideas how to do this? 

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


Message has been deleted
Message has been deleted
Message has been deleted

Ann Duong

unread,
May 19, 2016, 5:48:41 AM5/19/16
to commcare-users
Thank you!!
Reply all
Reply to author
Forward
0 new messages