Skip to main content

Unsure if compounded is the right term but anyway....I am trying to calculate a new attribute based on existing values - usually easy to do - but in this case the expression must reference each subsequent attribute value in an original attribute. Best explained by the graphic below:

'StaticValue' is the original value and 'CompoundedValue' is the attribute I want to create. The first value will be unchanged but each subsequent value in the 'CompoundedValue' attribute must reflect the corresponding 'StaticValue' value.

StaticValueCompoundedValue30030020320-50270-4023016039035425

Can I do a 'circular' reference like this in FME?

 

StaticValueCompoundedValue30030020320-5027012039080470-30440

 


Nevermind...I solved it by using the 'SumAttribute' function on the StatsCalculator and outputting values via the 'Cumulative' port. Easy peasy :)

 

 


Nevermind...I solved it by using the 'SumAttribute' function on the StatsCalculator and outputting values via the 'Cumulative' port. Easy peasy :)

 

 

Good question and solution 🙂 @conch

 


Reply