I’m trying to configure a pop-up in a web map that will show the total area owned by my organization within a given county. I want the popup to say something like, “This Organization owns x acres in this County.” I would like to use arcade to make it dynamic. The ownership layer is a Feature Service on our portal that is split into parcels. Some of the parcels straddle county lines, so it would be better to use the Clip function over the Intersection function.
My arcade expression initially looked like this:
var own = Clip(FeatureSetByName($map, 'View_Ownership', ['*'], true), $feature)
Area(own, 'acres')
When I validated it, I got an error message that said, "Invalid Expression. Error on line 1. Expected convertable to geometry
I rewrote it like this:
var own = Clip(Geometry(FeatureSetByName($map, 'ResBoundaries', ['*'], true)), $feature)
Area (own, 'acres')
The expression builder says its valid, but the results in the pop-up are just 0.00. I feel like I must be missing something obvious. I'm pretty new to arcade.