atoti.Measure.folder#

property Measure.folder: str | None#

Folder of the measure.

Folders can be used to group measures in the Data model UI component.

Example

>>> df = pd.DataFrame(
...     columns=["Product", "Price"],
...     data=[
...         ("phone", 600.0),
...         ("headset", 80.0),
...         ("watch", 250.0),
...     ],
... )
>>> table = session.read_pandas(
...     df, keys=["Product"], table_name="Folder example"
... )
>>> cube = session.create_cube(table)
>>> m = cube.measures
>>> print(m["Price.SUM"].folder)
None
>>> m["Price.SUM"].folder = "Prices"
>>> m["Price.SUM"].folder
'Prices'
>>> del m["Price.SUM"].folder
>>> print(m["Price.SUM"].folder)
None