Top | Previous | Next |
Aggregates / max |
max(dataset, column OR number, number...) Finds and returns the maximum value in the given column of the given dataset, or the max value in a series of numbers specified as arguments. When looking up the max in a dataset, the column may be specified as an index or as a column name. Any null values in the column are ignored. If there are no rows in the dataset, zero is returned.
For example, suppose you had a table with this dataset in it:
max({Root Container.Table.data}, 1) ... would return 380
You can also use this function to find the maximum in fixed series of numbers, specified as arguments, like this: max(0, 10/2, 3.14) ... would return 5.
The following example is a great way to make sure a value never goes below zero: max({SomeValue}, 0} |