Calculates the moving maximum value within a specified window of rows relative to the current row.
Category: window
Syntax:
Returns: Same as input type
Context Filtering: ✓ Yes
Parameters
Allowed Column Types for column: INT, FLOAT, DECIMAL, NUMBER
Validation
- Minimum parameters: 2
- Maximum parameters: 3
Examples
Returns the highest sales value in a 7-day rolling window (current row and 6 previous rows).
Calculates a 14-day moving maximum temperature, useful for tracking peak temperatures over time.
Calculates a centered 9-day moving maximum (4 days before, current day, 4 days after).
- CumulativeMax - Calculates cumulative maximum from the first row
- MovingMin - Calculates moving minimum with a window
- Max - Returns the overall maximum
Last modified on March 13, 2026