This may be related to the "Visual Totals Mode" used by Excel and OWC,
as explained in this past post:
http://groups.google.com/group/micro...olap/msg/fe7f6
45622c760b0
Date: Tues, Apr 19 2005 3:41 am
Well, I think the best place to start is probably the section on
VisualTotals
in this white paper:
http://www.microsoft.com/technet/pro...aintain/anserd...
What the paper calls 'Visual Totals Mode' is switched on by using the
'Default MDX Visual Mode' connection string property, and this is what
Excel
uses to calculate its subtotals. So once you know that the subtotals are
really just parent members with their values overwritten, it's clear
that
calculated measures are going to be evaluated after this has taken place
and
so aren't going to be affected - and that's why, to get the behaviour
needed
in this case, it was necessary to create a real measure and get the
desired
values into it somehow.
...
To see the VisualTotals() effect in AS 2000, try this Foodmart query in
the MDX Sample app:
Quote:
|
With Member [Measures].[Sales (All Category)] as
|
'([Measures].[Unit Sales], [Product].[All Products])'
select {[Measures].[Unit Sales], [Measures].[Sales (All Category)]} on
0,
VisualTotals(Except(DrillDownLevel({[Product].[All Products]}),
{[Product].[All Products].[Drink]})) on 1
from Sales
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***