- Weatherford Knowledge Base
- P#
- Additional Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
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
- 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
- Neighborhood Functions
-
Packages
RefTablesIntersection()
Returns intersection value of 2 specified last reference tables for current entity.
Returns intersection value of 2 specified last reference tables for current entity.
Supported intersection return value (case-insensitive, with or without spaces between words):
-
Max Key
-
Min Key
-
Max Value
-
Min Value
Syntax
double RefTablesIntersection(
refTable1 as a string,
refTable2 as a string,
intersection as a string,
UnitName as a string,
UnitName as a string,
timeStampOption as a string
)
Example
RefTablesIntersection("reference table 1", "reference table 2", "Max Key",
"Pa", "m3", "Current")
Example
RefTablesIntersection("reference table 1", "reference table 2",
"Max Key", "RefValue", "Pa", "m3", "None")
Syntax
RefTablesIntersection(
refTable1 as a string,
refTable2 as a string,
intersection as a string,
ColumnName1 as a string,
ColumnName2 as a string,
UnitName as a string,
UnitName as a string,
timeStampOption as a string)
Example
RefTablesIntersection("reference table 1", "reference table 2", "Max Key",
"RefValue1", "RefValue2", "Pa", "m3", "Last")