When you run a Multidimensional Expressions (MDX) query on a Microsoft SQL Server Analysis Services (SSAS) multidimensional instance, the MDX query fails and returns the following error message:
Query optimizer generated too many subcubes in the query plan
This error occurs if the following conditions are true:
- Too many calculated members are defined on a single hierarchy level or attribute.
- Many fields or attribute members are put onto each axis. Or, many fields are put together on the rows or columns of a PivotTable in Microsoft Excel.
- All members of selected hierarchies are included in the axis.
- Grand totals and subtotals are turned on in the Excel PivotTable.