Skip to main content
atoti.OriginScope(
    levels: Set[HasIdentifier[LevelIdentifier] | LevelIdentifier],
)
Scope performing an aggregation at the given origin. The input of the aggregation function will be evaluated at the given levels and the aggregation function will be applied “above” these intermediate aggregates. Using this scope with atoti.agg.mean() to average quantities summed by month:
Average of monthly quantities will evaluate Quantity.SUM for each Month and average these values “above” this level:
The aggregation function can be changed again to compute the max of these averages:

Attributes

levels

The levels constituting the origin of the aggregation.