Problems with Sum function in double repetition structures

422
1
Jump to solution
05-04-2021 11:58 PM
ÉricoMendes
New Contributor

I have a repetition structure for father(parcelas) and son (terrasolta). When performing the sum of a variable(terra_solta) of the child repetition, I receive only the value of the last position, and not the sum of all repetitions of the variable (terra_solta). 

ÉricoMendes_0-1620197775731.png


How can I solve this? I need to receive the sum of terra_solta for all repetitions!

 

0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

Double repeat needs a double sum.

So sum outside of repeat 2 (but inside repeat 1) into a field, then sum that field outside repeat 1.

Works for me.  Hope that helps

View solution in original post

0 Kudos
1 Reply
DougBrowning
MVP Esteemed Contributor

Double repeat needs a double sum.

So sum outside of repeat 2 (but inside repeat 1) into a field, then sum that field outside repeat 1.

Works for me.  Hope that helps

0 Kudos