- Datagration Knowledge Base
- P#
- String Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production 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
- DCA Functions
-
Packages
CurrentParent()
Returns the name or the alias of the parent entity of the current entity from the current context. Parent entity is defined by entity type and hierarchy.
Syntax
CurrentParent(entity type, hierarchy name)
- entity type: type of parent entity
- hierarchy name: name of hierarchy
Example
CurrentParent(“Field”, ”Hierarchy 51”)
Returns the name of the current entity's parent of type "Field" from hierarchy "Hierarchy 51"
Example
CurrentParent(“Field”, ”Hierarchy 51”, "Alias")
Returns the alias of the current entity's parent of type "Field" from hierarchy "Hierarchy 51"