Generations

Returns the generation specified by the input generation number.

Syntax

dimension.Generations ( index )
Generations ( dimension, index )
ParameterDescription

dimension

The dimension specification.

index

The numerical depth from the top member of the outline, where the top member is 1.

Example

The following query

SELECT
 [Year].[Qtr1].Generation.Members
ON COLUMNS,
 [Product].Generations(2).Members
ON ROWS
FROM Sample.Basic

returns the grid:

(axis)Qtr1Qtr2Qtr3Qtr4
1007048787285117037
2006721703070057198
3005929676966986403
4005005543656985162
Diet7017733675326941

See Also