Skip to main content
Question

Transpose time fields similar to ArcGIS

  • March 29, 2017
  • 1 reply
  • 29 views

Forum|alt.badge.img

Hi All,

I am trying to transpose data in the same way that ArcGIS does with the Transpose Fields tool (http://pro.arcgis.com/en/pro-app/tool-reference/data-management/transpose-fields.htm) but I am not able to do it. Anyone could shed some light? Thanks.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • March 29, 2017

Hi @kpeng, generally it's possible if each feature has these three kinds of attributes.

  • <name>: stores a string value that will be used as a new attribute name after transposing.
  • <value>: stores a value that will be saved into the new attribute
  • <id>: stores unique ID for new features after transposing

The procedure would be:

  1. Rename <value> to the value of <name> for each feature (or create a new attribute whose name is the value of <name> and stores the value of <value>).
  2. Aggregate the features and merge their attributes, with setting <id> to the Group By parameter.
  3. Optionally expose the new attribute names (i.e. all the possible values of <name>).