Select to view content in your preferred language

Count Unique Values in Repeat Field

141
1
12-18-2024 09:31 AM
Blevins_Mark
Frequent Contributor

How can you return the count of unique values in a repeat?

  • Repeat question is geopoint.
  • Based on where user clicks on map i am pulling both town and county using pulldata function.
  • I then have two questions in parent table...number of locations and number of counties.
  • I want the total # of locations, so simply use the count function to get that.
  • I want the county count to be unique...so if there are 5 repeat locations, and 3 are in smith county and 2 are in webb county, the count for the county field should be 2.

Thanks

0 Kudos
1 Reply
abureaux
MVP Frequent Contributor

Maybe javascript could help here.

Built-in features is a little more annoying, but may still be possible.

I quickly tossed this together:

abureaux_0-1734649736110.png

It excludes the current item, and checks for that current item in a string.

0 Kudos