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