I have a column called 'name' with trail names that repeat sometimes and a column called 'sec_length_ft' with the length of each trail segment. I want to use GroupBy to add up the sections of the same trail name to populate the 'trail_ft' column. The code I've come up with is below. It runs without errors, but the table doesn't update.
GroupBy(FeatureSetByName($datastore, 'TrailLinesQAQC'),'name',
{name: 'trail_ft', expression: 'sec_length_ft', statistic: 'SUM'})
TrailLinesQAQC is the name of the layer
Trail_ft is the column I want to be updated
name is the names of the trails that I want to group the data by
sec_length_ft is the name of the column that contains values of trail segments to be added up for the trail_ft column
Thanks for your help.