Tom Azernour avatar
Written by Tom Azernour
Updated over a week ago

Type: Function

Function: GREATEST

Syntax: GREATEST(value1, ..., valueN)

Description: Return the highest value from a list of provided values. This operator applies to a predetermined list of values.

This operator is not an aggregator. It applies to dimensional values only. To return the maximum value in a group (metric), use the MAX aggregator instead.

Sample usage:

  • GREATEST(1,2,3) returns 3

  • GREATEST(created_at, updated_at) will always return updated_at by definition.

Did this answer your question?