Skip To Content

Add dynamic text

Dynamic text is text on a layout that changes based on current properties of the project, layout, map frame, and so on. When that property is updated, the text automatically updates. Dynamic text works through the use of tags, similar to HTML. This allows you to combine both dynamic and static text in a single text element. There are several types of dynamic text that can be added to a layout.

Add dynamic text to your layout

  1. With the Layout view active, on the Insert tab, in the Text group, click Dynamic Text Add Dynamic Text.

    Choosing a tag from this gallery inserts a piece of text containing the tag onto the layout.

    Note:

    The gallery is the most common way to add dynamic text, but a dynamic text element can also be added by typing the tag directly.

  2. Move, format, and edit the text as desired.

Once dynamic text has been added to your layout, you can modify the dynamic text.

Dynamic text in tables

Table dynamic text is the one type of dynamic text that has a slightly different insert experience. Table dynamic text returns attribute values or statistics from a specified layer or stand-alone table in a map frame. Since there can be multiple map frames, layers, and stand-alone tables on a layout, table dynamic text requires you to select the data you want. Table dynamic text can also be filtered. You can choose to use all the data in a table or a subset. This is done by setting the Query parameter. There are four query options:

  • All rows—Uses every row in the table.
  • Visible rows—Uses all the rows for data visible in the map extent. This is not an option for stand-alone tables, because they are not displayed on the map.
  • Custom query—Uses a query created by the user using the query builder. This query builder expression is applied to all rows in the table and can't be limited to rows visible in the map extent.
  • Map series rows—Uses only the rows that intersect the current map series feature. This option is only available when a map series is enabled, and does not apply to stand-alone tables.

Additional parameters can also be set for the Table Attribute and Table Statistic groups within table dynamic text.

Add dynamic text to your table

  1. On the Insert tab, in the Text group, click Dynamic Text Add Dynamic Text and select a tag from the Table Attribute or Table Statistic group.

    Choosing a tag from this gallery launches the corresponding insert dialog box.

  2. Select the map frame, layer or stand-alone table, query, and field you want to use. You can also set additional parameters specific to Table Attribute and Table Statistic tags. Then click OK to add the text.
  3. Move, format, and edit the text as desired.

Table Attribute group

Value returns the value or values from one or more records in a layer or stand-alone table. The following parameters can be set for Table Attribute Value on the Insert Table Attribute dialog box:

Table Attribute

ParameterDefinition

Map Frame

The map frame containing the layer or stand-alone table to display

Table

The layer or stand-alone table to display

Query

The set of data to display: All rows, Visible rows, Custom query, or Map series rows

Field

The column of data from the table to display

Delimiter

The characters to separate each value, by default a single space

Decimal places

The number of decimal places to display, by default 2

Thousands separator

Places a delimiter between thousands

Expression Set an expression

Optional Arcade expression to control the precise display of values

Note:

The Decimal places and Thousands separator controls only appear when a numeric field is selected.

The following are examples of Arcade expressionsthat can be used with Value.

Concatenate multiple fields. In this example, three fields are used to create a date.

$feature.Day + " " + $feature.Month + ", " + $feature.Year

Avoid displaying null values. For this expression to work properly, there must not be a delimiter set.

if (isEmpty($feature.CROP_ACR97)){}
else($feature.CROP_ACR97 + ", ")

Table Statistic group

There are 14 different statistics that can be calculated on a field:

  • Count—Returns the number of nonnull rows
  • Null Count—Returns the number of null rows
  • Minimum—Returns the lowest value
  • Maximum—Returns the highest value
  • Mean—Returns the average value
  • Median—Returns the middle value
  • Range—Returns the difference between the highest and lowest values
  • Sum—Returns the total of all values added together
  • Standard Deviation—Returns the standard deviation of values, a measure of data variation
  • Kurtosis—Returns the kurtosis of values, a measure of the heaviness of distribution tails
  • Skewness—Returns the skewness of values, a measure of distribution
  • Lower Quartile—Returns the value that 25 percent of ordered data values are less than
  • Upper Quartile—Returns the value that 75 percent of ordered data values are greater than
  • Variance—Returns the variance of the values, a measure of dispersion around the standard deviation

Note:

Count and Null Count can be run on any field, but the other statistics can only be run on numeric fields. In a table with no numeric fields, trying to insert these statistics will result in an error message.

The following parameters can be set for any Table Statistic calculation on the Insert Table Statistic dialog box:

Table Attribute

ParameterDefinition

Map Frame

The map frame containing the layer or stand-alone table to display

Table

The layer or stand-alone table to display

Query

The set of data to display: All rows, Visible rows, Custom query, or Map series rows

Statistic

The statistic being calculated

Field

The column of data from the table to display

Decimal places

The number of decimal places to display, by default 2

Thousands separator

Places a delimiter between thousands

Related topics