Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: 1 Mar 2006 11:01:41 -0800,    group: microsoft.public.data.xmlanalysis        back       


using MDX to Query lists of Member Names   
Is there a way (using MDX) to query member names from a dimension by
providing some criteria?

I Think I've seen (in passing) someone using custom VB functions in
Dlls to accomplish something like this...

Here is a sample Scenario
given a dimension  (and level), return a list of member names that meet
some criteria.

something like: give me all members of dimension "A", Level "Manager"
containing "joe" (as a substring)...
date: 1 Mar 2006 11:01:41 -0800   author:   Eric S

Re: using MDX to Query lists of Member Names   
This may need tweaking but for example:

select {} on 0,
filter( [A].[Manager].members, instr( [A].currentmember.name, "joe" ) > 0 ) 
on 1
from cube

You would need to use VBA functions to do the substring type operations...

HTH,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Eric S"  wrote in message 
news:1141239701.091418.90770@t39g2000cwt.googlegroups.com...
> Is there a way (using MDX) to query member names from a dimension by
> providing some criteria?
>
> I Think I've seen (in passing) someone using custom VB functions in
> Dlls to accomplish something like this...
>
> Here is a sample Scenario
> given a dimension  (and level), return a list of member names that meet
> some criteria.
>
> something like: give me all members of dimension "A", Level "Manager"
> containing "joe" (as a substring)...
>
date: Wed, 1 Mar 2006 18:29:47 -0800   author:   Akshai Mirchandani [MS]

Re: using MDX to Query lists of Member Names   
so nothing goes in the braces {}? on the 0 axis?
date: 2 Mar 2006 10:02:25 -0800   author:   Eric S

Re: using MDX to Query lists of Member Names   
Yes. If you leave it an empty set, then no cell values will need to be 
calculated (because the cellset is empty) and performance can improve in 
cases when you have lots of cells/calculations.

Thanks,
Akshai

--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Eric S"  wrote in message 
news:1141322545.099362.322950@t39g2000cwt.googlegroups.com...
> so nothing goes in the braces {}? on the 0 axis?
>
date: Fri, 3 Mar 2006 16:58:48 -0800   author:   Akshai Mirchandani [MS]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us