Hi . I am trying to understand how to build a data expression for a list view in a dashboard where the output of two geometric expressions should pupulate into a FeatureSet. I am creating a buffer and intersect between two layers and if the condition satisfies, the output should return a text value within the FeatureSet.
This works while configuring pop ups but do not know how to populate this for a list view with dashboards.
Scripts looks something like this while configuring pop ups.
var fs1 = FeatureSetByPortalItem(Portal('PortalURL',0,['Event','Severity'],false); #polygon layer
var fs2 = FeatureSetByPortalItem(Portal('PortalURL',0,['Name','City'],false); #point layer
var b1 = Buffer(fs2, 10, 'miles')
var int1 = First(Intersects(fs1, b1))
if(!IsEmpty(int1)) {
return Proper(`Affected by ${int1.Event}.`)
}
else {
return "Not affected by Event"
}
How would I show this output on a FeatureSet. Is this possible here?