I'd like to show a count from a repeat collection group of tree diameter values. As surveyors are entering the diameter values into the repeat group, a box will show the count of tree diameters above 25 diameter, and a separate box will show the count of tree diameters below 25 diameter. I would like to do the same with sum, and get a sum of all tree diameters above 25 diameter, and below 25 diameter.
In the calculation attribute I tried count(${size}<25), but I get an error that says 'type mismatch'
I also tried if(${dbh}<25,count(${dbh}),0), with no error, but the result is always 0.
Is this possible? If so, how? If it isn't I am open to ideas. My back up idea is to have the surveyor enter tree diameters into two separate repeats, a repeat for above 25 diameter and under 25 diameter.