Problem with index values changing with new submissions

Hi @Rusti
For starters we conclude with the fact that the index will always change as I had indicated earlier

Now to the issues you raised, I will split them into specific steps:

It would be important to understand the relational nature of your database and understand some few principles around how the data in repeat sits verses your data base. To provide more clarity. In a previous discussion I had indicated the workarounds that allows you to change the data. You will have probably two or more files one for main and the others for every repeat. My approach has been using commands in SPSS where I do the following

  1. Transform the repeat data from long to wide format using case to var command with the parent key as identifier variable in the transformation
  2. I then merge the two sets using primary key in main file and parent key in the wide format of the repeat. I use the add variables command for merge files.

Action needed from you: Share a schematic of your data management flow within the app I look at it.

You do not need to do this; it is cumbersome and this has already been done. I would suggest the following workaround which should be done before you import the data onto your system:

  1. Download your XLS as usual with all the sheets in it.
  2. You will find the _id or _uuid in the main sheet but probably not on the sheets representing the repeat data.
  3. Create the columns for _id or _uuid in the repeat data sheets and use the VLOOKUP in excel to fill these columns using data from the main sheet.
  4. You can make this as a Macro and save it so that you repeat the process every time you download the data.
  5. Build your data management protocol based on this data set. Note the IDs wont change…

Stephane

1 Like