Skip to main content
Solved

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

  • March 27, 2023
  • 2 replies
  • 64 views

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

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

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.

2 replies

Forum|alt.badge.img+2
  • 1891 replies
  • March 27, 2023

@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
  • 23 replies
  • 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