HOW TO

Round down values using Arcade in the ArcGIS Dashboards indicator

Last Published: January 18, 2024

Summary

In ArcGIS Dashboards, the indicator element is used to display numeric attributes or statistical values of features. Indicators can be customized by using Arcade expressions to define the values and how they appear, and these values can be rounded down.

This article describes the workflow to round down the values in the ArcGIS Dashboards indicator using Arcade. The image below shows the indicator element displaying a value with decimal numbers to be rounded down.

The indicator element displaying values.

Procedure

  1. In ArcGIS Dashboards, on the indicator element, click Configure The Configure icon. to open the indicator element configuration options.
  2. In the Indicator window, click the Indicator tab.
  3. In the Advanced formatting section, click Enable.
The Indicator window.
  1. In the editor, specify the following Arcade expression into the line where the intended value to be rounded down is located. The Floor function is used to round down values to the given number of decimal places. In this example, the value in the middleText property is rounded down to two decimal places.
<Text position>: Floor (<value>, <decimal place>) 

The image below shows the original and edited Arcade expression in the editor.

The original and edited Arcade expressions in the editor.
  1. Click Done in the Indicator window and save the dashboard.

The image below shows the indicator element displaying a rounded down value with two decimal places.

The indicator element displaying the rounded down value.

Article ID: 000031735

Software:
  • ArcGIS Dashboards

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