I am trying to return the sum of integer fields in a layer, however, am getting a NaN result. I have tried with Count and the correct number appears, so why does Sum not work? What am I missing here?
I am using this in a data expression to use in Dashboards list widget. Any pointers are greatly appreciated!!
var features = FeatureSetByPortalItem(
Portal('https://adcgis.maps.arcgis.com'),
'91feaa24f7d34f9299f5b99cbd7328ed',
1,
["C18_Indst_URAdr_AgriForestFish"],
false
);
Sum(features);
Result Value
Result NaN
Type Number