I'm trying to build on the example given in "Working with data inside feature sets" found here and am having trouble finding a way to sum the DBH_TRUNK values for the tree points that intersect the neighborhoods. I thought I could use
var trees = FeatureSetByName($map,"Urban Forestry")
var countTrees = Count(Intersects(trees,$feature))
for (var t in countTrees){
return sum(countTrees,t.DBH_TRUNK)
}
but this doesn't work and neither do a few other methods I've tried. How do I access the feature set and field to do this? Thanks.