HOW TO
In ArcGIS Pro, calculating multiple fields in a feature layer or table simultaneously is useful when working with large datasets, or when the fields have interrelated calculations as it ensures consistency and accuracy in data transformations.
This article demonstrates two workflows to calculate the fields. In this example, the fields, Area_1, and Perimeter_1 from a feature layer, are calculated using Python scripts.
The attribute table below shows the feature layer containing the Area_1 and Perimeter_1 fields before calculation.
Note: In this example, Python expressions are used in the tools. Other expression types can be used depending on the desired outcome.
Use the Calculate Fields (multiple) tool
The Calculate Fields (multiple) tool allows the calculation of multiple fields selected from the same feature layer or table, with the desired expression type and expressions specified for each field. The tool processes the fields in one operation, streamlining the calculation in a single run.
Use ModelBuilder
In this workflow, a model is created in ModelBuilder, and the Calculate Field tool is used twice to calculate half of the values in the Area_1 and Perimeter_1 fields. The Calculate Field tool uses two different Python expressions to calculate these fields.
<field_name> * 0.5
<field_name> / 2
The image below depicts the model's calculating process.
The attribute table below shows the Area_1 and Perimeter_1 fields post calculation.
Get help from ArcGIS experts
Download the Esri Support App