Symbology, Arcade and Group By

217
0
01-02-2023 05:57 AM
מנהלפורטל
New Contributor

Hello,

I have a points layer containing the following fields: city, date, sample_value.

My objective is to create a dynamic symbology using ArcGIS Online dashboard and a date filter, where the user selects a data range, and the cities midpoints render according to the count of the samples in that city and selected date range above a certain value (let's say 500) / count of all samples in city and selected date range * 100.

Is this possible with Arcade? If so, how?

I have gotten closer to the result using the pop-up arcade builder, but have not figured out if it possible using the symbology one:

var fs = FeatureSetByName($map, "historical_data")
var fs_filt = Filter(fs, 'sample_value> 500' )

var group_exp = {
name: 'anomaly_count',
expression: 'OBJECTID',
statistic: 'COUNT'
}

return GroupBy(
fs_filt,
['local_authority'],
group_exp
)

Tags (3)
0 Kudos
0 Replies