For the first question, you can use ValidMeasure():
http://groups-beta.google.com/group/...rver.olap/msg/
25ebd75ecc38d98e
Quote:
|
Newsgroups: microsoft.public.sqlserver.olap
|
From: Deepak Puri <deepak_p... (AT) progressive (DOT) com>Date: Wed, 02 Mar 2005
16:27:06 -0800
Local: Wed, Mar 2 2005 4:27 pm
Subject: Re: Bringing measures accross dimensions
Typically you would employ ValidMeasure() to do this:
http://msdn.microsoft.com/libr*ary/d...y/e*n-us/olapd
ma
d/agmdxfunctions_76cl.asp
ValidMeasure
Returns a valid measure in a virtual cube by forcing inapplicable
dimensions to their top level.
Syntax
ValidMeasure(«Tuple»)
Returns a valid measure from a tuple in a virtual cube specified in
«Tuple».
Remarks
When computing values in a virtual cube, measure cells only contain
values at the (All) level for dimensions that are not common between the
underlying cubes. The ValidMeasure function returns the measure value
from the cell at the (All) level coordinates for the dimensions that are
not common.
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!