dbTalk Databases Forums  

MDX Expression question

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


Discuss MDX Expression question in the microsoft.public.sqlserver.olap forum.



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

Default MDX Expression question - 10-04-2004 , 02:59 AM






Hi,

I am trying to build a cube which analyzes the impact of exchange
rates on costs. The amounts have about 5-6 dimensions. Is it possible
to have an expression like [Year.Amount * Year.ExchangeRate] -
[PreviousYear.Amount * PreviousYear.ExchangeRate] without having to
hardcode the year values in the formula ?

Thanks
Sridhar

Reply With Quote
  #2  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: MDX Expression question - 10-04-2004 , 08:06 AM






Something along the lines of (untested):

[Year.Amount * Year.ExchangeRate] -
Quote:
[(Year.CurrentMember.PrevMember, Amount) * (Year.CurrentMember.PrevMember,
ExchangeRate)]
--
Jacco Schalkwijk
SQL Server MVP


"Sridhar" <vsridhar420 (AT) gmail (DOT) com> wrote

Quote:
Hi,

I am trying to build a cube which analyzes the impact of exchange
rates on costs. The amounts have about 5-6 dimensions. Is it possible
to have an expression like [Year.Amount * Year.ExchangeRate] -
[PreviousYear.Amount * PreviousYear.ExchangeRate] without having to
hardcode the year values in the formula ?

Thanks
Sridhar



Reply With Quote
  #3  
Old   
Sridhar Voorakkara
 
Posts: n/a

Default Re: MDX Expression question - 10-07-2004 , 06:22 AM




Thanks Jacco, It works great !

Regards
Sridhar


*** 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.