RangeMax() returns the highest numeric value found within the expression or field.
Return data type: numeric
- first_expr: The expression or field containing the data to be measured.
- Expression: Optional expressions or fields containing the range of data to be measured. Multiple additional expressions can be used.
If no numeric value is found, NULL is returned.
|RangeMax (null( ), 'abc')||
Example: (using expression)
Returns the maximum value in the range of three values of MyField calculated on the current row and two rows above the current row. By specifying the third argument as 3, the Above() function returns three values, where there are sufficient rows above, which are taken as input to the RangeMax() function.
Data used in examples:
LOAD * INLINE [
Example: (in table form)
Add the example script to your document and run it. Then add, at least, the fields listed in the results column to a sheet in your document to see the result.
LOAD recno() as RangeID, RangeMax(Field1,Field2,Field3) as MyRangeMax INLINE [
Field1, Field2, Field3
The resulting table shows the returned values of MyRangeMax for each of the records in the table.