Finds the maximum of a list of numbers, partitioned by the unique values of a separate column
MAXBY(column, partition column )
column
partition column
Returns the maximum value in a column when grouped by unique values within a partition column
MAXBY() is a window function, which performs MAX() except partitioned by the unique values of a separate column.
Column to search for maximum
Column containing unique values
Outputs the maximum value of a column when grouped by partition column
Last updated 2 years ago
Was this helpful?