Not sure what you mean by: "since [Store Sales] and [Store Cost] imply
an 'outer' context to the
[m1] expression during evaluation". But if you refer to the MDX
Solutions book, page 135, there are 6 cube calculation mechanisms
listed. And the first, intrinsic aggregation (as represented by
intrinsic measures like [Store Sales] and [Store Cost]), only applies if
there are no other MDX calculations applicable to that cell. Consider
this query, for which [Store Sales] and [Store Cost] both return 1714,
regardless of the solve order of [m1]:
member [Product].[m1] as 'min([Product].[Food].children,
[Unit Sales])'
select {[Measures].[Store Sales], [Store Cost]} on columns,
{[Product].[m1]} on rows
from [Sales]
So, in neither of the queries will the values of these intrinsic
measures be applied. In the first query, [cm] is calculated last, by
summing [Store Sales] and [Store Cost]. But each of these is calculated
using the [m1] expression, which returns 1714. In the second query, [m1]
is calculated last, and returns just 1714.
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***