You are viewing our older product's guide. Click here for the documentation of GoodData Cloud, our latest and most advanced product.
GREATEST
The GREATEST function identifies the highest value from a selection of facts or metrics within one row.
Syntax
SELECT GREATEST(…, …, …)
SELECT GREATEST(fact, fact)
SELECT GREATEST(metric, metric)
SELECT GREATEST(fact, metric, metric, fact)