Count number of repeats

2209
3
09-19-2017 07:17 AM
RenatoSalvaleon
Occasional Contributor III

I wanted to know the number of repeats in my repeat section and store it as an integer. Questions in my repeat section are multi-select questions so I'm using count-selected and I cannot use them to count the number of repeats. So on the picture below, I want to capture the number 3 or whatever the max number of the repeat.

Tags (2)
0 Kudos
3 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Renato,

I believe the count() function will address this - have it count a field in the repeat.

0 Kudos
RenatoSalvaleon
Occasional Contributor III

After I read the thread on AutoIncrement integer that's how I ended up with this question. A hidden, null field with a default value of 1. Not ideal but it works.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

The count() function will work with any field- you don't need a special one for summation.

0 Kudos