- Datagration Knowledge Base
- P#
- Neighborhood Functions
-
Getting Started
-
Customer Training
-
Updates
-
Production Optimization
-
Artificial Lift Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Neighborhood Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- Voronoi
- DCA Functions
-
Packages
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")