dbTalk Databases Forums  

MDX sintax

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


Discuss MDX sintax in the microsoft.public.sqlserver.olap forum.



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

Default MDX sintax - 03-09-2005 , 06:17 AM






I’m trying to make a MDX formula in a Calculated Cell for a member of a
dimension (R00090) and a measure (Budget) wish uses values from other members
(R00100 and R00130) of the same dimension in a different measure (Actual).
Can you help me with the syntax for getting the value of those cells?

Thanks,

Ricardo Vieira

Reply With Quote
  #2  
Old   
Joerg
 
Posts: n/a

Default RE: MDX sintax - 03-09-2005 , 09:37 AM






Hello Ricarcdo,
this mdx calculates the store sales per store unit
along the customer dimension in the foodmart sales cube.

([Customers].[All Customers],[Measures].[Store Sales])
/
([Customers].[All Customers],[Measures].[Unit Sales])

maybe:
(
([R00100],[Budget])
+
([R00130],[Budget])
)
/
(
([R00100],[Actual])
+
([R00130],[Actual])
)


HTH
Jörg



"Ricardo Vieira" wrote:

Quote:
I’m trying to make a MDX formula in a Calculated Cell for a member of a
dimension (R00090) and a measure (Budget) wish uses values from other members
(R00100 and R00130) of the same dimension in a different measure (Actual).
Can you help me with the syntax for getting the value of those cells?

Thanks,

Ricardo Vieira

Reply With Quote
  #3  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: MDX sintax - 03-09-2005 , 10:10 AM



Calculation Subcube : {[R00090]}, {[Budget]}
Calculation Value : Sum({[R00100], [R00130]},
CalculationPassValue([Actual], -1, Relative))
Calculation Pass Number : 2

Ohjoo Kwon


"Ricardo Vieira" <RicardoVieira (AT) discussions (DOT) microsoft.com> wrote

Quote:
I¡¯m trying to make a MDX formula in a Calculated Cell for a member of a
dimension (R00090) and a measure (Budget) wish uses values from other
members
(R00100 and R00130) of the same dimension in a different measure (Actual).
Can you help me with the syntax for getting the value of those cells?

Thanks,

Ricardo Vieira



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.