Hi!

How can I calculate the cumulative sum of a set of attributes with basal area?

Thanks!

asked 09 Oct '14, 21:01

Andras's gravatar image

Andras
948814
accept rate: 0%


Suppose that you have an entity called "tree", a calculated attribute inside of it "tree_num" with the position of the tree (idm:position() expression can be used), and a calculated attribute for the basal area, we can call it ba for example, then you can sum the basal area of the previous inserted trees with an expression like this: sum(parent()/tree[tree_num < $this/parent()/tree_num]/ba). Thanks

permanent link

answered 09 Oct '14, 21:42

OF%20Collect's gravatar image

OF Collect ♦♦
1.3k4
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×208

question asked: 09 Oct '14, 21:01

question was seen: 4,255 times

last updated: 09 Oct '14, 21:42