Example 7

The following example uses multiple, nested CrossJoins.

SELECT NON EMPTY { [Profit] } ON COLUMNS,
NON EMPTY {CROSSJOIN
                    ( 
                      CROSSJOIN( [Market].Levels(1).ALLMEMBERS, 
                                 [Product].[Family].ALLMEMBERS
                                ),
                      [Year].Levels(1).ALLMEMBERS
                     ) 
           } DIMENSION PROPERTIES MEMBER_CAPTION 
ON ROWS FROM Sample.Basic

This query has the following result (truncated):

[Market]. Levels(1). [MEMBER_ CAPTION][Product]. [Family]. [MEMBER_ CAPTION][Year]. Levels(1). [MEMBER_ CAPTION][Profit]
EastColasQtr12747
EastColasQtr23352
EastColasQtr33740
EastColasQtr42817
EastRoot BeerQtr1562
EastRoot BeerQtr2610
EastRoot BeerQtr3372
EastRoot BeerQtr4990
............