Select to view content in your preferred language

How to use the Calculate Field (Multiple) tool.

1399
1
05-17-2023 09:19 AM
CrystallSalmon
Occasional Contributor

Hello,

I new to using model builder. I need to calculate multiple fields but I am having issues with figuring out the tool  (Calculate Fields (multiple)). Does anyone have a link to a video or instructions that can help me?

 

Thanks

0 Kudos
1 Reply
JohannesLindner
MVP Frequent Contributor

Take a look at the tool documentation, if you haven't done so already.

Basically, it's like the normal Calculate Field tool: You define functions in the code block and apply these functions to the fields.

For example, here I'm calculating 2 fields at the same time:

  • TextField1 will be a random selection of 2 values
  • TextField2 will contain a string representation of another field

JohannesLindner_0-1684343605216.png

JohannesLindner_1-1684343626082.png

 

I could have gotten the same result by using the normal Calculate Field two times, but this tool is more convenient.

 


Have a great day!
Johannes