MDXView
MDX_VIEW_EXCLUDED_KEYS = frozenset({'@odata.type', '@odata.context', '@odata.etag', 'Name', 'MDX', 'Cube', 'Attributes', 'LocalizedAttributes'})
module-attribute
MDXView(cube_name, view_name, MDX, dynamic_properties=None)
Bases: View
Abstraction on TM1 MDX view
IMPORTANT. MDXViews can't be seen through the old TM1 clients (Architect, Perspectives). They do exist though!
Source code in TM1py/Objects/MDXView.py
MDX
property
writable
body
property
dynamic_properties
property
writable
mdx
property
writable
construct_body()
Source code in TM1py/Objects/MDXView.py
from_dict(view_as_dict, cube_name=None)
classmethod
Source code in TM1py/Objects/MDXView.py
from_json(view_as_json, cube_name=None)
classmethod
substitute_title(dimension, hierarchy, element)
dimension and hierarchy name are space sensitive!
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension
|
str
|
|
required |
hierarchy
|
str
|
|
required |
element
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
|
|