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.
atoti.array.max(measure, /)
Return a measure equal to the maximum element of the passed array measure.
Example
>>> pnl_table = session.read_csv(
... TEST_RESOURCES_PATH / "csv" / "pnl.csv",
... array_separator=";",
... keys={"Continent", "Country"},
... table_name="PnL",
... )
>>> cube = session.create_cube(pnl_table)
>>> l, m = cube.levels, cube.measures
>>> m["Max"] = tt.array.max(m["PnL.SUM"])
>>> m["Empty max"] = tt.array.max(m["PnL.SUM"][0:0])
>>> cube.query(m["PnL.SUM"], m["Max"], m["Empty max"])
PnL.SUM Max Empty max
0 doubleVector[10]{-20.163, ...} 9.26
- Parameters:
measure (VariableMeasureConvertible)
- Return type:
MeasureDefinition