In MDX, all axes must have the same dimensionality. The best approach would be to run two queries, and show them beside each other in the client tool.
However, you could do something similar to what @Vhteghem_Ph proposed:
SELECT
NON EMPTY
[Store].[Store State].Members * { [Gender].[Gender].[(All Gender)] }
+
{ [Store].[Store State].[(All Store State)] } * [Gender].[Gender].Members
ON COLUMNS,
{ [Product].[Product Family].Members } ON ROWS
FROM [Sales]
WHERE { [Measures].[Sales Count] }
Note that the +
used here, which has two sets as parameters, is a short form of Union(set1, set2)
. And again, Union needs both sets to have the same dimensionality, in this case the first dimension of the set is the Store States
hierarchy, and the second is the Gender
hierarchy.