HOW TO

Filter features to identify discrepancies in ArcGIS Pro

Last Published: May 30, 2024

Summary

In ArcGIS Pro, data can be filtered with a definition query to identify when values in one field are not present in another field. This process aids in data completeness, consistency and accuracy by automating the identification of discrepancies, which is especially useful for large datasets.

This article describes the workflow to filter features where a field does not contain values from another field using a definition query in ArcGIS Pro. In this example, some adresses are missing the corresponding value from the AddressNumber field.

The attribute table with a field missing the corresponding values from another field.

Procedure

  1. Open the ArcGIS Pro project.
  2. In the Contents pane, right-click the layer and select Properties. In the Layer Properties dialog box, select Definition Query.
Note:
Alternatively, on the ribbon, click the Data tab. In the Definition Query group, click Build Definition Query The Build Definition Query icon..
  1. Click the New definition query drop-down menu and select Create a new definition query in SQL.
The Create a new definition query in SQL option.
  1. In the query builder, specify the following SQL expression. In this expression, '%' represents wildcards that allow any character to appear before and after the value in <field 2>. The || operator concatenates the wildcards with <field 2>.
<field 1> NOT LIKE '%' || <field 2> || '%'
Note:
Both fields must have similar field types.
The query expression.
  1. Click Verify the SQL expression is valid The Verify icon. to verify the query.
  2. In the query builder, click Apply.
  3. Click OK to close the Layer Properties dialog box.

The table shows the filtered features in the Address field do not contain the values of the AddressNumber field.

The filtered attribute table

Article ID: 000032662

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 3
  • ArcGIS Pro 3 2

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