Hello,
I'm trying to create a new Arcade attribute expression in the content of a layer's pop-up window that does the following:
- Go through all elements contained in the layer "PARCELS"
- add up all the Shape_area of each element
- display the total
I tried a script like the one below, without success…
var table = FeatureSetByID($datastore,"PARCELS",[‘*’], true);
var total = 0;
for (var t in table) {
total = total + $feature["Shape__Area"]
}
return total;
If anyone can help me, I will accept with pleasure.
Thanks in advance.
Victor