SYMPTOM
An OLAP Cube report with the following definition is created. Note that the two Product Hierarchy attributes belong to the same cube hierarchy, and that the Level 01 attribute is a child of Level 00.

When the report is executed, or when MDX is generated, the following error occurs:

Error: MDX Engine encountered an exception This report includes a filtering condition that is not supported. The child of an attribute in the template may not be used to restrict the data returned unless that child attribute is also included in the template.]
Error in Process method of Component: SQLEngineServer, Project Strategy Tutorial, Job 516, Error Code= -2147212793.
CAUSE
This error is the result of a limitation in the handling of filters in MDX, which in turn stems from the manner of data storage and retrieval in multidimensional databases.
Multidimensional databases achieve rapid query response by storing metric (measure) values at all cube levels simultaneously. Retrieving sales figures at product category level is fundamentally the same operation as retrieving the figures at product subcategory level: in both cases, the database needs only to look at the proper coordinates in the cube and return the precalculated value stored there.
By contrast, in relational databases, data are usually stored at only a few physical levels. Other analysis levels are simulated by aggregating, at runtime, a lower or more detailed level of physical data to the desired level.
When a template attribute is at a higher level (e.g., Category) and one of its children is in the filter (Subcategory), it is a simple matter in SQL to filter Subcategory-level fact data and aggregate to Category level. For standard metrics in multidimensional databases, however, only precalculated values may be returned, and the metric values are not precalculated in advance to handle every conceivable lower-level filter. Therefore, the MDX for the report illustrated above would not yield the expected results.
Since the report results would not be correct, Strategy produces the error as a warning that the report definition is not valid for MDX.
ACTION
One of two means may be used to obtain the desired result.

