HOW TO
ArcGIS Online uses Arcade expressions to make working with GIS data flexible by allowing users to derive a new value based on existing values in the feature layer. For example, to determine the trend status of the population growth in cities, the total sales of a business, or the number of crimes that have occurred in two given years.
The following instructions describe how to populate a new field with trend status using Arcade expressions in ArcGIS Online. In this article, the new field is populated with the trend status of population growth between the years 2000 and 2007.
Note: The table view can also be accessed from Map Viewer. Click Overview > Open in Map Viewer on the item description page. In Map Viewer, click Content. Hover over the feature layer and click Show Table.
if ($feature.POP2007 >= $feature.POP2000) {"Positive"} else {"Negative"}
The image below shows an example of the output in the POP_Growth field.
Get help from ArcGIS experts
Download the Esri Support App