How to group Attributes and change style

386
3
Jump to solution
01-25-2021 12:28 PM
Labels (1)
by Anonymous User
Not applicable

I am trying to group the below attributes where they are all under one attribute named (Cancelled) and change the symbology to black lines.

Madison_Roser_0-1611606376734.png

 

Is this something I have to do in ArcGIS Pro?

 

0 Kudos
1 Solution

Accepted Solutions
Peter_Klingman
Esri Regular Contributor

Hi @Anonymous User, you can do this with Arcade in ArcGIS Online. Choose to style the layer with a new expression, then enter something like the following:

if ($feature.STATUS == 'Canceled/Not Billable' ||
    $feature.STATUS == 'Cancelled/Not Billable' ||
    $feature.STATUS == 'ODN-On Hold' ||
    $feature.STATUS == 'Core-On Hold') {
    return 'Canceled';
} else return $feature.STATUS;

Result:

Peter_Klingman_0-1611787484963.png

 

Hope this helps,

-Peter

View solution in original post

3 Replies
Peter_Klingman
Esri Regular Contributor

Hi @Anonymous User, you can do this with Arcade in ArcGIS Online. Choose to style the layer with a new expression, then enter something like the following:

if ($feature.STATUS == 'Canceled/Not Billable' ||
    $feature.STATUS == 'Cancelled/Not Billable' ||
    $feature.STATUS == 'ODN-On Hold' ||
    $feature.STATUS == 'Core-On Hold') {
    return 'Canceled';
} else return $feature.STATUS;

Result:

Peter_Klingman_0-1611787484963.png

 

Hope this helps,

-Peter

by Anonymous User
Not applicable

Thanks so much, this helped with multiple problems I was having!

Peter_Klingman
Esri Regular Contributor

Glad you got it working, happy to help!

0 Kudos