Hi @Dan_Niwahereza ! ![]()
Welcome to the ODK community! Whenever you get a chance, do introduce yourself here - we'd love to get to know you better! ![]()
Now, coming to your query:
It's important to note that any variable inside a repeat group is often treated as a "nodeset" (since it holds multiple values - for example, if you interview 10 people, each variable in the repeat group might have 10 different values, right?).
That said, it’s a bit tricky to provide specific solution without seeing your XLSForm or form design. If you’re comfortable sharing it, please feel free to! For now, here's what I can suggest based on the info provided:
- Take a look at the use-case and functionality of indexed-repeat (check this as well), as it might be what you need. It helps when you need to work with specific values (like performing calculations) outside the repeat group for individuals recorded within the first repeat group. (That being said, I’m not entirely sure if it’s required in your case or if simply moving what’s outside the repeat group into the first repeat group might solve the issue.)
Hope this helps! Have a great day! ![]()