Skip to main content
Solved

How to use use adjacent (previous) feature handling in AttributeManager to calculate value for same attribute


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

Hi,

I have a workflow where I need to forecast particular values. The formula to calculate this forecast value (in Attribute A) needs to reference the previous feature in Attribute A, but the AttributeManager doesn't allow you to reference ajacent features (in this case, previous) for the same attribute. Is there a way I can do this? I wonder if a looping process would help.

 

Thanks

Best answer by johnk

Ah - I was trying to do the calculation on an atttribute which id created in the same attributemanager. I've added the attribute before using attributecreator and now works

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

2 replies

Forum|alt.badge.img+2

@John Kreft​ Can you give us a little workspace example of what you're trying to accomplish? AttributeManager and AttributeCreator should be able to return the value of an attribute from the previous feature:

@Evaluate(@Value(_count)+@Value(feature[-1]._count))


johnk
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Best Answer
  • March 28, 2023

Ah - I was trying to do the calculation on an atttribute which id created in the same attributemanager. I've added the attribute before using attributecreator and now works


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