Skip to main content

FME 2022 Build22153: Calculating the value of an attribute fails,

 

In the screenshot below, I wanted to calculate the “BuildingPercent” attribute field by dividing “BuildingArea” field on “BoundaryArea” field but appears not to work. It doesn’t perform the calculation.

 

What could be the issue here?

 

The data and the workbench are attached

 

Clip_905 

 

 

Hi @jamal​  - The AttributeCreator needs to know you are wanting to do a calculation with those fields, so you need to wrap it with @Evaluate()

 

So, for your example, the attribute value needs to be:

@Evaluate( @Value(BuildingPercent)/@Value(BuildingArea))


Hi @jamal​  - The AttributeCreator needs to know you are wanting to do a calculation with those fields, so you need to wrap it with @Evaluate()

 

So, for your example, the attribute value needs to be:

@Evaluate( @Value(BuildingPercent)/@Value(BuildingArea))

Correction: @Evaluate(@Value(BuildingArea)/@Value(BoundaryArea))


Thank you for the help. It works fine

 

Clip_908 

Clip_909 

 

 

 

 

 

 

 

 


Thank you for the help. It works fine

 

Clip_908 

Clip_909 

 

 

 

 

 

 

 

 

Rock on


Hi @jamal​  - The AttributeCreator needs to know you are wanting to do a calculation with those fields, so you need to wrap it with @Evaluate()

 

So, for your example, the attribute value needs to be:

@Evaluate( @Value(BuildingPercent)/@Value(BuildingArea))

Or use the Arithmetic Editor for calculations (instead of the Text Editor), this will add the @Evaluate automatically.

Open_Arithmetic_Calculator


Or use the Arithmetic Editor for calculations (instead of the Text Editor), this will add the @Evaluate automatically.

Open_Arithmetic_Calculator

Thank you for the contribution. This makes much more sense for me. Great

 

Clip_913 

Clip_914Clip_915 

 

 

 

 

 

 

 

 


Reply