# Calculating cumulative sum of basal area

 0 Hi! How can I calculate the cumulative sum of a set of attributes with basal area? Thanks! asked 09 Oct '14, 21:01 Andras 162●8●8●30 accept rate: 0%

 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 answered 09 Oct '14, 21:42 OF Collect ♦♦ 3.1k●1●8 accept rate: 23%
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:

×387

question asked: 09 Oct '14, 21:01

question was seen: 5,529 times

last updated: 09 Oct '14, 21:42