HOW TO

Round values to zero decimal places in the ArcGIS Dashboards indicator

Last Published: January 18, 2024

Summary

A set of data consists of numerous values consolidated in a layer's attribute table. Where applicable and necessary, values are recorded with decimal numbers to ensure data precision. Projecting a rounded value in a dashboard indicator may be required in some cases for data management purposes.

This article provides the workflows to round values to zero decimal places in the ArcGIS Dashboards indicator by configuring the Maximum decimal place setting or using Arcade expressions.

The image below shows the value with decimal numbers projected on the indicator element.

The value with decimal numbers (3.65217391304348) projected on the indicator element

Procedure

Depending on the circumstances, apply either of the workflow options provided below to round values in the indicator element.

Configure the 'Maximum decimal places' setting

  1. In ArcGIS Dashboards, click Create dashboard, fill in the required sections, and click Create dashboard in the lower-right corner.
  2. On the dashboard toolbar, click Add element The Add element button. and select Indicator.
  3. In the Select a layer window, click Browse all layers and select the desired layer.
  4. In the Indicator configuration window, configure the settings. Refer to ArcGIS Dashboards: Configure an element for more information.
  5. Set the Maximum decimal places setting.
    1. In the Indicator window, on the Indicator tab click Value formatting to expand.
    2. Under Maximum decimal places, specify '0'.
The settings on the Indicator tab.
  1. Click Done.
The Done button in the Indicator element configuration window.
  1. On the dashboard toolbar, click Save > Save to save the changes.

Use Arcade expressions

  1. In ArcGIS Dashboards, click Create dashboard, fill in the required sections, and click Create dashboard in the lower-right corner.
  2. On the dashboard toolbar, click Add element The Add element button and select Indicator.
  3. In the Select a layer window, click Browse all layers and select the desired layer.
  4. In the Indicator configuration window, configure the settings. Refer to ArcGIS Dashboards: Configure an element for more information.
  5. On the Indicator tab, in the Advanced formatting setting, click Enable. Refer to ArcGIS Dashboards: Enable advanced formatting in an indicator for more information.
The Enable button in the Advanced formatting setting
  1. Use the Round function to round off decimals to the nearest value. In the Advanced formatting window, locate the data point attribute intended to be rounded off. Copy and paste the following Arcade expression into the line where the intended value to be rounded off is located. Replace <Text position> with the original text position property and <$datapoint.field> with the feature and field intended to be rounded off.
<Text position>: Round(<$datapoint.field>, 0)

The image below shows the original and edited Arcade expressions in the Advanced formatting window.

The Arcade expressions before and after editing in the Advanced formatting window
Note: 
Alternatively, use the Ceil function in the expression to return the input value rounded upwards to the given number of decimal places.
  1. Click Done.
The Done button in the Indicator element configuration window
  1. On the dashboard toolbar, click Save > Save to save the changes.
The image below shows the round value projected on the indicator element.
The rounded-off value (4) projected on the indicator element

Article ID: 000031638

Software:
  • ArcGIS Online
  • 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