TotalChildren

Syntax

TotalChildren
TotalChildren(BranchName)
TotalChildren(VariableName)
TotalChildren(BranchName:z:VariableName)

Description

The sum of the specified variable across all children of the named branch. Both BranchName and VariableName are optional parameters so that, when used without any parameters, the function returns the sum of the current variable across the children of the current branch.

Tip

Because the simple form of this function points, not to a named branch, but to a relative branch address (all children), it can be safely used in cases where you want to write a model for a particular set of subsectoral branches, and then copy branches for use elsewhere in the tree. See also: the "Parent" function