HOW TO

Label decimal values as percentages using Arcade expression in ArcGIS Pro

Last Published: July 4, 2024

Summary

In some instances, an attribute value in percentage is written in decimal values when displayed as labels in ArcGIS Pro. In this article, an Arcade expression is used to convert the decimal values to percentages and display the percentages in labels. In this example, the Crime_rate field is used to display the percentages as decimal values.

The image below displays the labels with decimal values in ArcGIS Pro.

Map with decimal labels

Procedure

  1. Open the ArcGIS Pro project, add the layer, and create a label expression. Refer to Steps 1 through 4 in ArcGIS Pro: Writing a label expression for instructions. Select Arcade for Language.
Note: 
In the Contents pane, on the List By Labeling tab, ensure the selected feature layer and feature class check boxes are checked to display the labels.
Labeling list in the Contents pane
  1. Insert and configure the expression below in the Expression box:
'<text>' + Round($feature.<field_name>*100, <decimal>) + "%"
  1. Replace <text> with the desired text to precede the field values. In this example, ‘The percentage of crime rate:’ is used.
  2. Replace <field_name> with the name of the field to be displayed as labels. In this example, the name of the field is Crime_rate.
  3. Replace <decimal> to round the percentage to the desired number of decimal places. In this example, the percentage is rounded to two decimal places by using '2'.
  1. Click the Verify button to validate the expression.
  2. Click Apply to run the script.
Expression configured in label class window

The image below displays percentage labels with preceding text in ArcGIS Pro.

Map displaying percentage labels

Article ID: 000030197

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • 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