Max

Returns the maximum of values found in the tuples of a set.

Syntax

Max ( set [,numeric_value_expression ] )
ParameterDescription

set

The set to search for values.

numeric_value_expression

Optional numeric value expression (see MDX Grammar Rules).

Notes

The return value of Max is #MISSING if either of the following is true:

Example

WITH
MEMBER [Measures].[Max Qtr2 Sales] AS
  'Max (
    {[Year].[Qtr2]},
    [Measures].[Sales]
  )'
SELECT
{ [Measures].[Max Qtr2 Sales] } on columns,
{ [Product].children } on rows
FROM Sample.Basic
(axis)Max Qtr2 Sales
Colas27187
Root Beer27401
Cream Soda25736
Fruit Soda21355
Diet Drinks26787