Skip to main content
Skip to main content

maxMap

Calculates the maximum from value array according to the keys specified in the key array.

Syntax

or

Alias: maxMappedArrays

Note
  • Passing a tuple of keys and value arrays is identical to passing two arrays of keys and values.
  • The number of elements in key and value must be the same for each row that is totaled.

Parameters

  • key — Array of keys. Array.
  • value — Array of values. Array.

Returned value

  • Returns a tuple of two arrays: keys in sorted order, and values calculated for the corresponding keys. Tuple(Array, Array).

Example

Query:

Result: