First value of all input values.
Syntax
Prefix First(expression)
- expression: signal expression
- Prefix:
- TIME for calculation of the First function for all time steps for one entity (default setting, can also be neglected)
- Time First("x" in "unit") function returns the first value i.e. of all the elements within the given time range.
- ENTITY calculation of the First function for all entities at one time step (has to be placed in front of function if needed)
- Entity First("x" in "unit") function returns the first value i.e. of all the entities for a given time step.
- TIME for calculation of the First function for all time steps for one entity (default setting, can also be neglected)
Examples
Time First("produced water per time increment" in "STB")
alternative version:
First("produced water per time increment" in "STB")
As you see in the following table the First function produces following output based on the 'original signal' as input:
Date/Time |
Original Signal |
Time First |
01.02.2007 00:00 |
8 |
8 |
01.03.2007 00:00 |
0 |
8 |
01.04.2007 00:00 |
15 |
8 |
01.05.2007 00:00 |
22 |
8 |
01.06.2007 00:00 |
24 |
8 |
01.07.2007 00:00 |
13 |
8 |
01.08.2007 00:00 |
27 |
8 |
01.09.2007 00:00 |
6 |
8 |
Entity First("produced water per time increment" in "STB")
As seen in the following table the Entity First function produces following output based on the 'original signal1' and 'original signal2' as input:
Date/Time |
Original Signal1 |
Original Signal2 |
Entity First for signal1 |
Entity First for signal 2 |
01.02.2007 00:00 |
8 |
#NULL! |
8 |
8 |
01.03.2007 00:00 |
0 |
#NULL! |
0 |
0 |
01.04.2007 00:00 |
15 |
19 |
15 |
15 |
01.05.2007 00:00 |
22 |
12 |
22 |
22 |
01.06.2007 00:00 |
24 |
34 |
24 |
24 |
01.07.2007 00:00 |
13 |
19 |
13 |
13 |
01.08.2007 00:00 |
27 |
15 |
27 |
27 |
01.09.2007 00:00 |
6 |
19 |
6 |
6 |