RMAX( value [ , direction ] [ TOTAL | WITHIN ... | AMONG ... ] [ ORDER BY ... ] [ BEFORE FILTER BY ... ] )
The sorting order is based on the fields listed in the sorting section of the chart and in the
ORDER BY clause. First,
ORDER BY fields are used, and then they are complemented by the fields from the chart.
Returns the maximum of all values in a growing (or shrinking) window defined by the sort order and the value of
||Starts from the first row and ends at the current row.|
||Starts from the current row and ends at the last row.|
"asc" is used.
Boolean | Date | Datetime | Fractional number | Integer | String | UUID
Return type: Same type as (
Only constant values are accepted for arguments (
RMAX([Profit], "desc" WITHIN [Date])
RMAX([Profit] AMONG [Date])
Data source support
Microsoft SQL Server 2017 (14.0),
Oracle Database 12c (12.1),