IPrxSlice.Matrix

Syntax

Matrix: IMatrixModel;

Description

The Matrix property returns an object that contains a multidimensional matrix obtained by fixing one or several cube dimensions.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

Matrix: IMatrixModel;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DtSources := Report.DataSources;

Slices := DtSources.Item(0).Slices;

Slice := Slices.Item(0);

Slice.Execute;

Matrix := Slice.Matrix;

End Sub Main;

After executing the example the Matrix variable contains a multidimensional matrix based on the first slice of data source for the regular report with the Report identifier.

See also:

IPrxSlice