atoti.Measure#
- final class atoti.Measure#
A measure is a mostly-numeric data value, computed on demand for aggregation purposes.
Example
Copying a measure does not copy its attributes:
>>> table = session.create_table("Example", data_types={"ID": "String"}) >>> cube = session.create_cube(table) >>> m = cube.measures >>> m["Original"] = 1 >>> m["Original"].description = "Test description" >>> m["Original"].folder = "Test folder" >>> m["Original"].formatter = "INT[test: #,###]" >>> m["Original"].visible = False >>> m["Copy"] = m["Original"] >>> print(m["Copy"].description) None >>> print(m["Copy"].folder) None >>> m["Copy"].formatter 'INT[#,###]' >>> m["Copy"].visible True
Redefining a measure resets its attributes:
>>> m["Original"] = 2 >>> print(m["Original"].description) None >>> print(m["Original"].folder) None >>> m["Original"].formatter 'INT[#,###]' >>> m["Original"].visible True
See also
Measures
to define one.
Type of the values the measure evaluates to. |
|
Description of the measure. |
|
Folder of the measure. |
|
Formatter of the measure. |
|
Return a condition evaluating to |
|
Name of the measure. |
|
Whether the measure is visible or not. |