Tallying all the repeat groups

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?

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 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-users+unsubscribe@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

Thank you!!

··· On Wednesday, May 18, 2016 at 5:05:12 PM UTC+2, Sheel Shah wrote: > > 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 > > >