Indexed-repeat in repeat on the previous value


I want to calcul the purged volume in continuous in a repeat group.
I want to set the Pumping time and the Pumping rate and calcul the purged volume with this value, each time/repeat group.
At the first time, the calcul is simple. On the second time/repeat, I want to reuse the previous purged volume for calculate the sum.
But I have a Dependency cycles error. However, I use indexed-repeat with the position(..)-1 for don’t make a cycles dependency.

This is my XLSForm :
XLSFORM_ESU.xlsx (25.6 KB)

Do you know how could I do?
Thank a lot

@jdugh, would you mind making your issue a bit simple so that the community would be able to help you out?

@Kal_Lam ,
OK. I have make a more simple XLSForm.
I have just a repeat group, with a indexed-repeat on the previous value.
repeat.xlsx (25.0 KB)

My Target :
The first repeat group, I want to fillin "foo" in the REPEAT_VALUE.
When I add the second repeat group, I want to have "foo" in the second REPEAT_VALUE.
And if I change the second value by "bar", and I add a third repeat group, I wan to have "bar" in the third REPEAT_VALUE.

is that clearer/simple ?
If not, I can try to simplify more.

Thank Kal

Hi @Kal_Lam ,

I found this post and some other on the same subject : sum function. This solution could be suitable for me.

Do you know if it is possible to calculate the sum inside the repeat group ?

Thank you for your assistance.

1 Like

Hi @jdugh

Yes this is possible


1 Like