For some reason my buffer distance for a attribute rule is very inaccurate. I have tested this with the code below, and for an example, Features that are within 1 mile of school districts layer are not being counted. Any help would be appreciated.
var Districts = FeatureSetByName($datastore, "SCHOOL_DIST")
var Buffer1mile = buffer($feature,1,'mile')
var Districts_Within_Search_Radius = INTERSECTS(buffer1mile,DISTRICTS)
VAR NO_OF_SCHOOLS = COUNT(Districts_Within_Search_Radius)
Count(districts_within_search_radius )
I finally got it working by changing all spatial references, It took a while but now I am using geodesic, and its working as it should. Thanks for everyones help