Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
final class atoti.CumulativeScope
Scope performing a cumulative aggregation.Example
Using this scope withatoti.agg.sum() to perform a cumulative sum (also called running sum or prefix sum):
dense:
partitioning:
window can be a:
rangestarting with a <=0 value and ending with a >=0 value.- time period window as a two-element
tupleof eitherNoneor a period as specified by Java’s Period.parse().
dense : bool = False
WhenTrue, all members of level, even those with no value for the underlying measure, will be taken into account, possibly leading to repeated values.
level : HasIdentifier[LevelIdentifier] | LevelIdentifier
The level along which member values are cumulated.partitioning : HasIdentifier[LevelIdentifier] | LevelIdentifier | None = None
The level at which to start the aggregation over. If notNone, partitioning must part of the same hierarchy as level and be “above” it (i.e. before it in list(hierarchy)).
window : range | tuple[str, str] | tuple[str | None, str] | tuple[str, str | None] | None = None
The window defining the sliding range selecting members before and after the current one (usinglevel’s order) to be aggregated.
Default to range(-∞, 0), meaning that the aggregated value for a given member is computed using all the members before it, itself, and no members after it.