Summation of different answers within a repeat group

I am working on a repeat group that depends on the selected intervention. Each intervention option has its own set of calculations. If I want to add an integer from a question in the first repeat group, for example, to another integer from the second or third repeat group, how can I translate this into an equation? I’ve attempted to use indexed-repeat, but it still results in NaN because it performs the summation only on the first iteration.

Welcome to the community, @Layan1259! Maybe this post discussed previously should help you solve your issue:

1 Like