Use of intersects on two layers (Polygon / Point) and count number of records found
Hey @FrankBrenner
You're probably looking for something like this, returning the value of the count or similar:
// Replace 'PointLayerName' with the actual name of your point layer
var points = FeatureSetByName($map, "PointLayerName");
// Filter points that intersect the current polygon
var intersectingPoints = Filter(points, Intersects($feature, geometry($feature)));
// Count the number of intersecting points
Count(intersectingPoints)
Cody