Hi Community. I am trying to symbolise a layer using the following Arcade Expression:
var operationalStatus = $feature.OPERATIONALSTATUS;
var ownership = $feature.OWNERSHIP;
return When(
operationalStatus == "In Service", 1,
ownership == "PPP", 2,
operationalStatus == "OOS Abandoned", 3,
operationalStatus == "OOS Demolished", 4,
operationalStatus == "OOS Maintained", 5,
operationalStatus == "Planned", 6,
operationalStatus == "Disposed", 7,
999
);
I am symbolising on the number returned from this statement. Currently in my data I don't have and values for operationalStatus == "Planned" so the number 6 is absent from the returned symbology list, however I would like to assign a symbol for it as it may occur in my data in the future.
Without adding a dummy record that meets the criteria of operationalStatus == "Planned" to my data is there a way of being able to symbolise for all these values? This is just an example of a larger symbolising exercise I am undertaking across features so adding the records to the data isn't the feasible solution at this point.