Select to view content in your preferred language

Symbology expressions with Arcade: value and label definition

931
2
10-26-2021 03:09 AM
mykola
by
Regular Contributor

Hello,

I am creating custom symbology based on several conditions in multiple fields but I ran into a problem when I want to add some additional symbol in the future. I have a simple expression that extracts values from 2-3 fields and returns some value. Below is an example how I do it. 

qq.png

The problem here is that the output from "return" is assigned both to Value and Label in Symbology pane. Is it possible to have "return" in such way that the expression returns Value (numeric) and custom Label (custom text string)?

Thanks. 

2 Replies
JohannesLindner
MVP Frequent Contributor

There is no way to return multiple values.

You probably have to copy the expression:

JohannesLindner_1-1635317246885.png

 

JohannesLindner_2-1635317263681.png

 

JohannesLindner_3-1635317272903.png

 


Have a great day!
Johannes
mykola
by
Regular Contributor

Thanks, I was suspecting that it would not be possible. Because I have 15 different symbol combinations, the easiest solution for me was to create LYR file and apply it next time when I add additional symbology. So at least old labels got recovered.  

0 Kudos