I currently have an Arcade expression (see code snippet below) that involves a karst layer and an area of interest (aoi). The expression loops through each feature of the karst layer and sums the resulting area (as an acreage) of the karst intersection with the aoi and converts that value to a percentage based on the acreage of the aoi.
The issue I'm running into is that the karst layer has overlapping features, which can result in area percentages over 100%.
I've attempted to create one geometry based on the karst features that intersect the area of interest, but haven't been successful. In essence, I'm trying to "dissolve" the karst features (within the same featureset) so I can intersect the dissolved geometry with my area of interest.