# 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 150●8●8●22 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 ♦♦ 2.7k●1●8 accept rate: 22%
 toggle preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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:

×355

question asked: 09 Oct '14, 21:01

question was seen: 5,183 times

last updated: 09 Oct '14, 21:42