Hi,
Can anyone provide some insight as to why I am unable to execute my Arcade Expression? I can successfully test it but it will not let me execute it. I just learned how to use Data Expressions today with help from this community so I am very green.
Here's what my data expression looks like, while returning the correct number for "Count":
var features = FeatureSetByPortalItem(Portal('https://arcgis.com'), '5a735badf3114a3ba63e2a01b3cb1a68', 0, ['ACTIVE_ELE'], false);
Count(Features);
Then, when I press done and return to the previous page, I get this message:
This isn't the final script I want to use but I'm just playing with things for the time being.
Thank you!
Jenny
Hi Jenny,
The expression must return a FeatureSet. https://doc.arcgis.com/en/dashboards/get-started/create-data-expressions.htm
If you just need a count in something like an indicator, I'd just have the expression return the featureSet as-is, then have a Count on the indicator.
https://doc.arcgis.com/en/dashboards/get-started/create-data-expressions.htm
https://doc.arcgis.com/en/dashboards/reference/authoring-data-expressions.htm