Consistent ID in repeat function

Dear ODK expert,
I build a survey using xlsform, and I created a sequence (repeat) of car ownership.

I wonder if there is a way to assign the ID in the repeat dataset (I export it using to spss format - sav). I guess the variable "@_parent_index" must be somehow related to the ID, but all I need is the consistent PID in all sections.
In principle, what I need here is the variable ID is attached to the repeat dataset as well (not only in the section1 but also in section2), so that when I reshape the dataset from long to wide it will be simpler. I attach the example here. test_repeat_ID.xlsx (11.4 KB)

Best wishes,
Edwin

Hi @Edwin_FI , can you try this form to see if it solve you problem, let us know if this is what you are looking for.

test_repeat_ID_Reviewed.xlsx (11.3 KB)

Thank you
fabla2020@gmail.com

Many thanks, Fabla.
I will try the form you sent.

Best wishes,
Edwin