Hi there,
My survey has repeats that record issues identified on walking trails. Our reporting requires each one having a unique Issue ID. I am trying to use the Position(..) function to consistently generate this ID. It works fine unless a record is deleted, which can happen in the field if an inspector realizes an error or the issue is repaired before the inspection is completed. If there are 4 repeats and the first one is deleted, then the next added repeat will mean duplicate IDs. The new one will now be the 4th repeat, so will generate the same ID as the previous record (which was the 4th when generated).
I've tried using once(), max() - outside the repeat - and a few other things but cannot find a consistent way of doing this. Any ideas? Thanks...