Example 5

In this example, CrossJoin is used to request levels 1–2 for Market and Product.

SELECT NON EMPTY { [Profit] } ON COLUMNS,
NON EMPTY Crossjoin ([Market].Levels(2).AllMembers,[Product].Levels(2).ALLMEMBERS)
   DIMENSION PROPERTIES MEMBER_CAPTION 
ON ROWS 
FROM Sample.Basic

This query has the following result (truncated):

[Market]. Levels(1). [MEMBER_ CAPTION][Market]. Levels(2). [MEMBER_ CAPTION][Product]. [Family]. [MEMBER_ CAPTION][Product]. [SKU]. [MEMBER_ CAPTION][Profit]
EastNew YorkColasCola3498
EastNew YorkRoot BeerOld Fashioned-2594
EastNew YorkRoot BeerBirch Beer3086
EastNew YorkCream SodaDark Cream2496
EastNew YorkCream DrinksVanilla Cream-1952
EastNew YorkFruit SodaGrape1329
EastNew YorkFruit SodaOrange1388
EastNew YorkFruit SodaStrawberry951
...............