Solved

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


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

icon

Best answer by johnk 28 March 2023, 03:19

View original

2 replies

Badge +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))

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

Reply