Hi, I am trying to create a simple calculation which works in the Arcade Expression, but says its unable to execute within a Dashboard Element (Indicator).
In Dashboards, I add Element > Indicator > select the 'New Data Expression' enter the code and its valid, but when i click 'Done' i get 'Unable to execute Arcade script'


Code:
//***Visitors***//
var OfficeVisitors = FeatureSetByPortalItem (Portal('portalURL'), 'layerID', 0, ['*'], false);
var Visitors = Sum(OfficeVisitors, 'visit_cnt');
//***Incident***//
var Incidents = FeatureSetByPortalItem (Portal('portalURL'), 'layerID', 0, ['*'], false);
var Total_Incidents = Count(Incidents);
//***Incidents 100K Visitors***//
var IncidentsPer100K = (Incidents/Visitors)*100000
return IncidentsPer100K
Thank You,
Jack