I now have a list of 0’s & 1’s in a field, & have a repeating group which has a field returning the index of the first 1 in the list. i.e in the image below the first 1 in the first list is the 6th record in the list, the first 1 in the second list is in the 7th position, the first 1 in the third list is in the 6th position and so on.

I need to get the largest index number from this repeating group i.e. 7 in the list above. The trouble I am running into is that this number is a dynamic value based on the current cells data and not a data value itself.

I am using a plugin to return the index of the 1 with in the list.

I think it should be able to be done using custom states although haven’t had any success in getting this to work.

Any ideas?