I'm having trouble with the workflow and syntax for data expressions in a dashboard. I have two fields and I would like to be able to create dashboard elements from a concatenation of those two fields. Both fields are text and have domains.
I understand the basics to create a pop-up or labels from this concatenation in Arcade, but do not see how to translate that into a feature set/data expression.
Basic concatenation:
Concatenate([$feature["Field_1"], $feature["Field_2"]], ' ')
To start setting up the data expression...
// Set variables
var portal = Portal('https://MyPortral.maps.arcgis.com/');
var itemId = 'itemId';
var layerId = 0;
var fs = FeatureSetByPortalItem(portal, itemId, layerId, ['*'], false);
....and now what is the appropriate workflow? Attempt to call fields and concatenate/count? Generate a dictionary of concatenated values and count? Documentation seems pretty skinny as this is fairly new.