AggregateSiblings

The function AggregateSiblings returns the aggregated value of a specific signal for the entities which are the siblings (have the same parent entity) of the current entity in specified hierarchy.

The function excludes the current entity from calculation.

Aggregation types:

1. Min

2. Max

3. Sum

4. Average

5. First

6. Last

7. Count

Syntax

AggregateSiblings(expression, aggregation, hierarchy)
  • expression: signal expression
  • aggregation: type of aggregation
  • hierarchy: hierarchy name as defined in the P# script

Example

AggregateSiblings("oil production rate" in "m3/d",
"Min",
"Hierarchy 51")

Definition 2

Returns the aggregated value according to specified aggregation type of the specified PetroVisor signal, for all entities that are siblings (have the same parent entity) of the current entity, including or excluding the current entity, using the specified hierarchy.

Aggregation types:

1. Min

2. Max

3. Sum

4. Average

5. First

6. Last

7. Count

Example:

AggregateSiblings("oil production rate" in "m3/h", 
"Sum",
"Hierarchy 51",
"Exclude")