HOW TO

Categorize multiple field values using the Includes() function in ArcGIS Pro

Last Published: May 31, 2022

Summary

In ArcGIS Pro, Arcade expressions and the Includes() function can be used to group multiple field values in the dataset. Grouping the data according to unique values reduces clutter and focuses on the important subpopulations that emerge from the data. For example, grouping the levels of education resources available in the city of Portland into three categories.

This article describes how to use the Includes() function in ArcGIS Pro to categorize multiple field values into three distinct unique values (levels of education) by referencing the LEVEL field. The image below demonstrates the three levels of education resources in the city of Portland.

The Content pane with the Schools_all feature layer grouped into three Symbology and part of the map in ArcGIS Pro

Procedure

  1. Start ArcGIS Pro and open the project.
  2. In the Contents pane, right-click the feature class and click Symbology to open the Symbology pane.
The Contents pane with the Symbology pane open
  1. In the Symbology pane, click the drop-down list below the Primary symbology section and select Unique Values.
The Symbology pane with the drop-down
  1. Click Set an expression The Expression Builder icon in the Symbology pane to open the Expression Builder tool.
The Expression Builder button in the Symbology pane
  1. In the Expression Builder tool dialog box, configure the following parameters:
    1. For Title, rename the new expression.
    2. Specify the following Arcade expression in the Expression section:
var <variable1> = $feature.<fieldName1>
var <variable2> = Includes(['<field value 1>', '<field value 2>', '<field value 3>', '<field value 4>', '<field value 5>'], <variable1>)
var <variable3> = Includes(['<field value 6>', '<field value 7>'], <variable1>)
if(<variable2> == True){
     return '<field value 8>'
}
if(<variable3 == True){
     return '<field value 9>'
}
else{
     return '<field value 10>'
}
  1. Click Verify The Verify icon to run a test of the expression. If the expression is valid, click OK.
The Expression Builder tool dialog box with the required parameters filled

Article ID: 000027640

Software:
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options