dbTalk Databases Forums  

Accessing lower level members

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


Discuss Accessing lower level members in the microsoft.public.sqlserver.olap forum.



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

Default Accessing lower level members - 11-13-2006 , 08:03 AM






Hi All,

I have used .Children function to retrieve members of dimension at one
level below the current level of dimension. For example (using FoodMart
2000 and AS 2000)

Select NON EMPTY ( { [Measures].[Unit Sales] } ) ON COLUMNS,
NON EMPTY ( [Customers].[Country].[USA].Children ) on rows
Quote:
From sales

This query returns me Children of member Country which is USA. It
returns all members of State Provinces which have USA as its parent.

Can I access or retrieve all members of City with Country member being
USA?

I am building a web application where user applies filters. This is
necessary because if user wants to view sales data about City which
belongs to country USA.

Many thanks in advance.

Raghu



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

Default Re: Accessing lower level members - 11-13-2006 , 08:20 AM






You can use descendants function as following,

Descendants([USA], [City], SELF)

Ohjoo

"Raghu" <raghubd (AT) gmail (DOT) com> wrote

Quote:
Hi All,

I have used .Children function to retrieve members of dimension at one
level below the current level of dimension. For example (using FoodMart
2000 and AS 2000)

Select NON EMPTY ( { [Measures].[Unit Sales] } ) ON COLUMNS,
NON EMPTY ( [Customers].[Country].[USA].Children ) on rows
From sales


This query returns me Children of member Country which is USA. It
returns all members of State Provinces which have USA as its parent.

Can I access or retrieve all members of City with Country member being
USA?

I am building a web application where user applies filters. This is
necessary because if user wants to view sales data about City which
belongs to country USA.

Many thanks in advance.

Raghu




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

Default Re: Accessing lower level members - 11-13-2006 , 08:54 AM



Thanks Ohjoo Kwon.

This is exactly what I wanted.

Raghu

Ohjoo Kwon wrote:
Quote:
You can use descendants function as following,

Descendants([USA], [City], SELF)

Ohjoo

"Raghu" <raghubd (AT) gmail (DOT) com> wrote in message
news:1163426623.987584.42250 (AT) i42g2000cwa (DOT) googlegroups.com...
Hi All,

I have used .Children function to retrieve members of dimension at one
level below the current level of dimension. For example (using FoodMart
2000 and AS 2000)

Select NON EMPTY ( { [Measures].[Unit Sales] } ) ON COLUMNS,
NON EMPTY ( [Customers].[Country].[USA].Children ) on rows
From sales


This query returns me Children of member Country which is USA. It
returns all members of State Provinces which have USA as its parent.

Can I access or retrieve all members of City with Country member being
USA?

I am building a web application where user applies filters. This is
necessary because if user wants to view sales data about City which
belongs to country USA.

Many thanks in advance.

Raghu



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.