Skip to main content

Calculate sum of attribute value

Comments

3 comments

  • Ryan Kelley

    There are probably several ways to do this... But what I would do is create an empty array. Then loop (For Each activity) through the records of the features returned. In the loop, add each attribute value of interest to the array, and then sum the total of the array after the loop.

    0
  • Permanently deleted user

    Hey Ryan,

     

    Thanks for your response. I actually had the same thought and I have a For Each activity that adds the attribute value to an array, where I hit a dead end is how to sum the attribute values from that array. Is there an activity that you would recommend to do that?

    0
  • Permanently deleted user

    Hey Ryan,

     

    I figured out how to do this, I ended using arcade script to sum the array.

    Anyways, thanks for your help!

    0

Please sign in to leave a comment.