Skip to main content
Solved

Add value to create new (compounded?) value

  • August 3, 2017
  • 3 replies
  • 37 views

conch
Contributor
Forum|alt.badge.img+4

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 :)

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 3, 2017
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