Example 6

The following example uses CrossJoin to represent multiple dimensions, requests a different number of levels for each dimension, and requests multiple properties.

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

This query has the following result (truncated):

[Market]. Levels(1). [MEMBER_ CAPTION][Market]. Levels(1). [LEVEL_ NUMBER][Product]. [Family]. [MEMBER_ CAPTION][Market]. Levels(1). [LEVEL_ NUMBER][Product]. [SKU]. [MEMBER_ CAPTION][Market]. Levels(1). [LEVEL_ NUMBER][Profit]
East1Colas1Cola211129
East1Colas1Diet Cola21114
East1Colas1Caffeine Free Cola2413
East1Root Beer1Old Fashioned2-2540
East1Root Beer1Diet Root Beer2982
East1Root Beer1Birch Beer24092
East1Cream Soda1Dark Cream23233
East1Cream Soda1Vanilla Cream2-918
.....................