ViewSubsetAssign

ViewSubsetAssign assigns a named subset to a cube view.

Note: It is possible to create a temporary subset with the CreateSubset or CreateSubsetByMDX functions. If you attempt to use ViewSubsetAssign to assign a temporary subset to a permanent view, the function will fail with error notification.

This function is valid in TM1® TurboIntegrator processes only.

Syntax

ViewSubsetAssign(Cube, ViewName, DimName, SubName);

Argument

Description

Cube

The parent cube of the view to which you are assigning a subset.

ViewName

The view to which you are assigning a subset.

DimName

The parent dimension of the subset you are assigning to the view.

SubName

The name of the subset you want to assign to the view.

Example

ViewSubsetAssign('99sales', '1st Quarter Actuals', 'Month','Q1');

This example assigns the Q1 subset of the Month dimension to the 1st Quarter view.