Skip to main content
Solved

Add value to create new (compounded?) value


conch
Contributor
Forum|alt.badge.img+4
  • Contributor

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?

Best answer by conch

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

 

 

View original
Did this help you find an answer to your question?

3 replies

conch
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • August 3, 2017

 

StaticValueCompoundedValue30030020320-5027012039080470-30440

 


conch
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Best Answer
  • August 3, 2017
Nevermind...I solved it by using the 'SumAttribute' function on the StatsCalculator and outputting values via the 'Cumulative' port. Easy peasy :)

 

 


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • August 3, 2017
conch wrote:
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

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings