dbTalk Databases Forums  

Bringing measures accross dimensions

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Bringing measures accross dimensions in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
B0fh
 
Posts: n/a

Default Bringing measures accross dimensions - 03-02-2005 , 03:53 PM






I have a virtual cube that consolidates 4 base cubes. Most of the shared
dimensions are in each of the cubes. However, there is one cube that doesn't
contain a few key dimensions, but it houses a measure that needs to brought
into those dimensions anyway and used for calculations when the cube is
sliced by those dimensions it doesn't have. How can I bring that measure into
slices that it's cube doesn't use?

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Bringing measures accross dimensions - 03-02-2005 , 06:27 PM






Typically you would employ ValidMeasure() to do this:

http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agmdxfunctions_76cl.asp
Quote:
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.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
  #3  
Old   
B0fh
 
Posts: n/a

Default Re: Bringing measures accross dimensions - 03-03-2005 , 12:03 PM



Thank you. That worked.

Wayne

"Deepak Puri" wrote:

Quote:
Typically you would employ ValidMeasure() to do this:

http://msdn.microsoft.com/library/de.../en-us/olapdma
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!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.