dbTalk Databases Forums  

Build an MDX string

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


Discuss Build an MDX string in the microsoft.public.sqlserver.olap forum.



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

Default Build an MDX string - 03-04-2005 , 01:01 PM






Anyone ever taken a list of 400 random member keys and built a set out of it?

Example:

set Target as '([1],[2],[3],[4],[5]...[400])'

Any ideas?

Jim

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

Default Re: Build an MDX string - 03-04-2005 , 05:48 PM






Does it mean From-To? If then,

SET Target AS '{[1]:[400]}'

If not and no family member to refer them, you have to decribe every member
respectively.

Ohjoo Kwon


"Jim_OLAP" <JimOLAP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Anyone ever taken a list of 400 random member keys and built a set out of
it?

Example:

set Target as '([1],[2],[3],[4],[5]...[400])'

Any ideas?

Jim



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

Default Re: Build an MDX string - 03-07-2005 , 07:41 AM



You can possibly use the Generate() function. It works like "For" loop if
you iterating over each individual member can get you the results you need.

"Ohjoo Kwon" wrote:

Quote:
Does it mean From-To? If then,

SET Target AS '{[1]:[400]}'

If not and no family member to refer them, you have to decribe every member
respectively.

Ohjoo Kwon


"Jim_OLAP" <JimOLAP (AT) discussions (DOT) microsoft.com> wrote in message
news:464095AD-5ADB-4B62-BB23-CEBA51C969F7 (AT) microsoft (DOT) com...
Anyone ever taken a list of 400 random member keys and built a set out of
it?

Example:

set Target as '([1],[2],[3],[4],[5]...[400])'

Any ideas?

Jim




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.