atoti.named_measure module¶
-
class
atoti.named_measure.
NamedMeasure
(_name, _data_type, _cube, _java_api, _folder=None, _formatter=None, _visible=True, _description=None)¶ A named measure is a measure that has been published to the cube.
-
property
folder
¶ Folder of the measure.
It can be changed by assigning a new value to the property (
None
to clear it).
-
property
formatter
¶ Formatter of the measure.
It can be changed by assigning a new value to the property (
None
to clear it).Examples
DOUBLE[0.00%]
for percentagesDOUBLE[#,###]
to remove decimalsDOUBLE[$#,##0.00]
for dollarsDATE[yyyy-MM-dd HH:mm:ss]
for datetimes
The spec for the pattern between the
DATE
orDOUBLE
’s brackets is the one from Microsoft Analysis Services. The formatter only impacts how the measure is displayed, derived measures will still be computed from unformatted value. To round a measure, useatoti.math.round()
instead.- atoti provides an extra formatter for array measures:
ARRAY['|';1:3]
this formatter allows you to choose the separator to use (|
in this example), and the slice of the array to display.
-
property