I have ArcGIS data traveling through many transformers. Just before it hits the writer I want to calculate 2 fields (PERCENT_WORKING_INTEREST and UNIT_LEASED_PERCENTAGE) based on other fields that reside in the same set of data about to be written to either a file geodatabase or SDE. I'm having a hard time finding a way to do this properly. It seems it should be easy. ExpressionEvaluator seems to only do one calculation at a time, but I'm not even having luck with that. Maybe it's the way I'm writing the expression Here's the expression I've tried:
ExpressionEvaluator settings
Destination Attribute: PERCENT_WORKING_INTEREST
Arithmetic Expression: @Value(WORKING_INTEREST_ACRES)/@Value(ESTACRES)*100
If I can get ExpressionEvaluator to work, can you do 2 ExpressionEvaluator transformers in a row?
HELP ANYONE!!!
----------
Here are the 5 fields I will be using. They are all integer fields of some kind and no text.
ESTACRES (Will be used twice)
PERCENT_WORKING_INTEREST
WORKING_INTEREST_ACRES
UNIT_LEASED_PERCENTAGE
SUM_LEASED_ACRES
Here's the 2 calculations I need to make. (FYI: I've written them out so they would be easier to read and did not input them into any transformer like this)
Calculation 1:
PERCENT_WORKING_INTEREST equals WORKING_INTEREST_ACRES divided by ESTACRES multiplied by 100
Calculation 2:
UNIT_LEASED_PERCENTAGE equals SUM_LEASED_ACRES divided by ESTACRES multiplied by 100