By implementing CrossJoin in a flattened rowsets query, you can use multiple dimensions (at least two). In this example, Market and Product dimensions are requested. For each dimension, the same logic as in previous examples applies: Each dimension, level, and property is allotted one column (in this case, one level and one property are requested).
SELECT NON EMPTY {[Profit] } ON COLUMNS, NON EMPTY Crossjoin ([Market].Levels(1).AllMembers,[Product].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] | [Profit] |
---|---|---|
East | Colas | 12656 |
East | Root Beer | 2534 |
East | Cream Soda | 2627 |
East | Fruit Soda | 6344 |
East | Diet Drinks | 2408 |
West | Colas | 3549 |
West | Root Beer | 9727 |
West | Cream Soda | 10731 |
West | Fruit Soda | 5854 |
West | Diet Drinks | 8087 |
... | ... | ... |