Skip to main content
Tweeted twitter.com/StackGIS/status/1513124641644158981
Question Protected by CommunityBot
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Turned title into question; edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How to Populate new field using expression containing MAX value from another field in ArcGIS attribute table using field calculator?

V. simple question, yet I cannot figure out the answer:

I've got one field X with 10 numerical attributes (float/double).

I've created a new field Y (also float/double) which I need to populate with the percentage of each record/attribute (in each of the 10 rows) relative to the MAX value in field X, i.e. something like Y=X/max(!X!).

I need to do this using the field calculator - in VB script or Python.

Any suggestions? I thought using max before the field name would suffice? (I assumed it was a built-in-function from Python in ArcGIS).

Thanks!

Populate new field using expression containing MAX value from another field in ArcGIS attribute table using field calculator

V. simple question, yet I cannot figure out the answer:

I've got one field X with 10 numerical attributes (float/double).

I've created a new field Y (also float/double) which I need to populate with the percentage of each record/attribute (in each of the 10 rows) relative to the MAX value in field X, i.e. something like Y=X/max(!X!).

I need to do this using the field calculator - in VB script or Python.

Any suggestions? I thought using max before the field name would suffice? (I assumed it was a built-in-function from Python in ArcGIS).

Thanks!

How to Populate new field using expression containing MAX value from another field in ArcGIS attribute table using field calculator?

I've got one field X with 10 numerical attributes (float/double).

I've created a new field Y (also float/double) which I need to populate with the percentage of each record/attribute (in each of the 10 rows) relative to the MAX value in field X, i.e. something like Y=X/max(!X!).

I need to do this using the field calculator - in VB script or Python.

Any suggestions? I thought using max before the field name would suffice? (I assumed it was a built-in-function from Python in ArcGIS).

Post Migrated Here from stackoverflow.com (revisions)
Source Link
GeosDK
  • 33
  • 1
  • 5

Populate new field using expression containing MAX value from another field in ArcGIS attribute table using field calculator

V. simple question, yet I cannot figure out the answer:

I've got one field X with 10 numerical attributes (float/double).

I've created a new field Y (also float/double) which I need to populate with the percentage of each record/attribute (in each of the 10 rows) relative to the MAX value in field X, i.e. something like Y=X/max(!X!).

I need to do this using the field calculator - in VB script or Python.

Any suggestions? I thought using max before the field name would suffice? (I assumed it was a built-in-function from Python in ArcGIS).

Thanks!