logo SmartSurvey / Scripting Docs
Back to Docs
Built-in Function
maxvalueof[Qx] Value

Returns the maximum value across all entries in a grid or multi-entry numeric question. Use to find the highest rating or score given by the respondent across all rows.

Parameters
Parameter Type Description
Qx Question ref *GRIDSR or list-numeric question
Returns: Number — the highest value across all entries in Qx
Examples
expressions
maxvalueof[Q32]>=9     -- at least one brand received NPS 9 or 10
maxvalueof[Q7]>=4      -- at least one aspect rated Satisfied or above
maxvalueof[Q32]=10     -- at least one brand received a perfect 10
Most useful with Scale N-Grid (type 32) for NPS and satisfaction grids.
Related