Skip to main content
atoti.agg.max_member(
    measure: VariableMeasureConvertible,
    /,
    level: Level,
) → MeasureDefinition
Return a measure equal to the member maximizing the passed measure on the given level. When multiple members maximize the passed measure, the first one (according to the order of the given level) is returned.

Parameters

measure

The measure to maximize.

level

The level on which the maximizing member is searched for.
At the given level, the measure is equal to the current member of the City level:
At a level above it, the measure is equal to the city of each continent with the maximum price:
At the top level, the measure is equal to the city with the maximum price across all continents: