Select to view content in your preferred language

Calculate field with a variable attribute

5503
20
Jump to solution
03-25-2018 07:06 PM
CommericalAnalytics
Emerging Contributor

Hello All,

I have a python script which creates a join between two layers.

I am then trying to use calculate field to take the data from one column (DemandWeight) and adding it to another column. However, the other column is made up from a variable so cannot be hard coded. For example, I have a variable called weightedvalue made up from attributes from another table. So after the join I have NetworkLocations.weightedvalue. But the message I get is that is not an actual column name. it is looking for the actual enbedded coIumn name. I also tried NetworkLocations.%weightedvalue% but does not work either. The weighedvalue changes as per a loop.

Any ideas would be appreciated

Tags (1)
0 Kudos
20 Replies
DanPatterson_Retired
MVP Emeritus

Warren, you might want to mark Xander's answer as correct so that people know that a resolution was made

0 Kudos