HOW TO

Display the sum of attribute values in the ArcMap legend

Last Published: April 25, 2020

Summary

The sum of attribute values in the ArcMap legend helps users visualize the scope of attributes displayed on the map. The summary of attributes such as the total area of each forest type in Malaysia (for example, lowland dipterocarp, mangrove, peat swamp, and montane ericaceous forests), the total length of each major road class in a city (for example, interstate highways, turnpikes, expressways, and railways), and the total volume of rainfall in different Pennsylvania cities (for example, the volume of rainfall in Philadelphia, Pittsburgh, and Allentown) can be displayed in the map legend.

The map below shows the major roads in Alachua County, Florida.

This is the map of the Alachua county, FL.

The attribute table below shows the major roads in Alachua County classified differently, and the road lengths specified. In this article, the total road length of each road class is determined.

This is the attribute table of major roads in Alachua county.

Procedure

Follow the steps below to display the sum of attribute values, which in this case is the total road length of each major road class in Alachua County, in the ArcMap legend:

  1. In ArcMap, open the attribute table of the desired feature class to summarize. Right-click the field header of the desired field. In this case, the feature class is MajorRoads and the field is CLASS.
  2. Click Summarize.

    Click Summarize.
     
  3. In the Summarize dialog box, specify the field and attribute(s) to summarize.

    In this case, the Sum attribute of the CLASS field is summarized.

    This is the Summarize field.
     
  4. Click OK. In the Summarize Completed dialog box, click Yes to add the result table to the map. A DBF table is displayed in Table Of Contents.

    This is the new DBF table.
     
  5. Click Search This is the Search icon. and search for Join Field.
  6. In the Join Field dialog box, configure the required fields and click OK.

    In this article, the Sum_ClassofRoads DBF file (Join Table) created in step 4 is added to the MajorRoads feature class (Input Table). The CLASS field is the field in which the join is based on (Input Join Field and Output Join Field). The Sum_Shape_Length attribute is the summarized attribute value (Join Fields).

    This is the Add Join field.
     
  7. In Table Of Contents, double-click the feature class to summarize.
  8. In the Layer Properties dialog box, select Symbology.
    1. In the Show field, click Categories > Unique values, many fields.
    2. In Value Fields, specify the field to summarize as the first field and the summarized attribute as the second field.
    3. Click Add All Fields.
    4. Click OK.

      This is the Layer Properties dialog box.

      The desired feature class is now symbolized according to the Unique values, many fields symbology.

      The feature class is symbolized according to Unique values.
  9. In the Layout view of the map, insert a map legend. The sum of attribute values appears in the map legend.

    In the image below, the map legend displays the different classes of major roads in Alachua County, Florida, with their respective total road lengths.

    This is the map legend showing the summarize field and respective sum of features.

Article ID:000019836

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic