Is there any way to calculate the field of an attribute table, or symbology based on an arcade expression for the intersect of two layers? A point layer and a polygon layer in this instance.
I am able to use an Intersects expression in a popup, e.g.:
// get the count for all sites in the grid var sites = FeatureSetByName($map,"Sites") var countSites = Count(Intersects(sites,$feature)) return countSites
However the expressions available to calculate an attribute table field or symbology do not accept $map during the use of the FeatureSetByName function, giving the following error:
Execution Error:Runtime Error: Identifier Not Found. $map
Are there plans for this functionality to be supported in future?
Hi @DataOfficer ,
Q: Is there any way to calculate the field of an attribute table based on an arcade expression for the intersect of two layers?
A: Yes, if the data is stored in the same datastore and you are using $datastore in the Arcade expression ($map is not supported in the Field Calculation profile)
Q: Is there any way to define the symbology based on an arcade expression for the intersect of two layers?
A: No, the symbology profile does not provide access to other features and featuresets. You can however, calculate a field based on other features and featuresets and define the symbology on that newly created field.