dbTalk Databases Forums  

Referencing member names of one dimension in another

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


Discuss Referencing member names of one dimension in another in the microsoft.public.sqlserver.olap forum.



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

Default Referencing member names of one dimension in another - 04-23-2005 , 09:02 PM






Hello!

How do I pass member names of one dimension to another dimension? For
example -

1.) [Open Date].[All Open Date].[Month].[Jan 2001] -- hard coded

2.) [Open Date].([Month becomes very late].currentmember) - desired

The second MDX statement is only pseudo to illustrate my requirement. [Open
Date] and [Month becomes very late] are time dimensions.

I'd like to pass the currentmember of one dimension to another dimension in
a calculated member as shown in (2.)

Any ideas, please let me know. You can email me at upendra.rao (AT) hp (DOT) com

Thanks a lot!

Upendra



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

Default Re: Referencing member names of one dimension in another - 04-25-2005 , 12:46 AM






Hi Upendra,

I'm not clear about the exact relationship between the 2 time
dimensions; but LinkMember() can be used to relate hierarchies with
similar structures and keys. If you want to use the name of a member in
one dimension to build a name in the other, then StrToMember() may help.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.