TM1 Function for TI, ViewCreateByMDX 

Creates a cube view with a MDX expression.

What is the ViewCreateByMDX function?

ViewCreateByMDX creates a cube view with a MDX expression.

Where can the ViewCreateByMDX function be used?


What is the syntax for ViewCreateByMDX?

ViewCreateByMDX (CubeName, ViewName, MDX_Expression, <AsTemporary>)​;

​CubeName = Cube Name​
ViewName = View Name​
MDX_Expression = a string value that has the MDX expression​
AsTemporary = Optional binary flag to set the view as temporary. If nothing is set, the view will be permanent by default.

A demonstration on how to use ViewCreateByMDX

Use ViewCreateByMDX to create a view for the Finance cube using a MDX expression.