Good Afternoon, All!
I have a dataset of voting results and I can trying to create a data expression that returns the MAX value of registered voters within each district and then add the total of each MAX value to find the total number of those registered. I have written a data expression using the GoupBy function, however, it is returning a null value. I have provided examples of my data expression and data below.

var out_dict = {
fields: [
{name: "Precinct_Name", type: "esriFieldTypeString"},
{name: "Reg_voters", type: "esriFieldTypeString"}
],
features: [],
geometryType: ""
}
var maxvotes = GroupBy("out_dict", 'Precinct_Name', {name: 'Reg_voters', expression: 'Reg_Voters', statistic: "MAX"})
Thank you,
Janelle