ColMax

The ColMax function returns the largest value in a column of numbers.

ColMax (numbers, break_col, break_value)

where:

numbers references the column that contains the number on which the maximum column value is calculated.

break_col is an optional parameter that references a break column.

break_value is an optional parameter that returns the maximum value of numbers column where value in break_col equals break_value.

Note:

If constant values in the break_value column are substituted for data items, dates and text strings must be enclosed in single quotes.

The following examples show the results of inserting the ColMax function in three separate tables.

Example 1

In this example, the ColMax function is used on the numeric column. The results are shown in the Computed column.

ColMax(Amount)

Table 148. ColMax Example

State

City

Amount

Computed

AZ

Tucson

112

490

CA

Burbank

240

490

CA

Glendale

NULL

490

FL

Palmetto

70

490

MD

Laurel

97

490

MI

Detroit

208

490

MN

Eagan

159

490

NY

New York

490

490

NY

Rochester

180

490