Transpose Fields (Data Management)

ArcGIS Pro 3.4 | | Help archive

Summary

Switch data stored in fields or columns to rows in a new table or feature class.

This tool is useful when your table or feature class stores values in field names (such as Field1, Field2, Field3) that you want to rotate so they're arranged in rows. It lets you switch the field names and the corresponding data values in the fields to rows.

Illustration

Transpose data values stored in columns of a table or feature class into rows
Transpose data values stored in columns of a table or feature class into rows.

Usage

    Caution:

    This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.

  • By default, the output is a table. When the input is a feature class and you also want the output to be a feature class, you should add the Shape field in Attribute Fields.

Parameters

LabelExplanationData Type
Input Table

The input feature class or table containing data value fields to be transposed.

Table View
Fields To Transpose

The fields or columns containing data values in the input table that need to be transposed.

Depending on your needs, you can select multiple fields to be transposed. The value here defines what the field name will be in the output. When not specified, the value is the same as the field name by default. However, you can also specify your own value. For example, if the field names to be transposed are Pop1991, Pop1992, and so on, by default, the values for these fields in the output will be the same (Pop1991, Pop1992, and so forth). However, you can choose to specify your own values such as 1991 and 1992.

Value Table
Output Table

The output feature class or table. The output will contain a transposed field, a value field, and any number of specified attribute fields that need to be inherited from the input table.

By default the Output Table is a table. The output will be a feature class when the Input Table is a feature class and the Shape field is selected in the Attribute Fields parameter.

Table
Transposed Field

The name of the field that will be created to store field names of the transposed fields. Any valid field name can be used.

String
Value Field

The name of the field that will be created to store the corresponding values of the transposed fields. Any valid field name can be set, as long as it does not conflict with existing field names from the input table or feature class.

String
Attribute Fields
(Optional)

Additional attribute fields from the input table to be included in the output table. If you want to output a feature class, add the Shape field.

Field

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics