dbTalk Databases Forums  

MDX Member Properties

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


Discuss MDX Member Properties in the microsoft.public.sqlserver.olap forum.



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

Default MDX Member Properties - 04-12-2005 , 02:16 AM






I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks


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

Default Re: MDX Member Properties - 04-12-2005 , 05:05 AM






WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks




Reply With Quote
  #3  
Old   
Ruby Nadler
 
Posts: n/a

Default Re: MDX Member Properties - 04-12-2005 , 05:50 AM



Thanks a lot

"Ohjoo Kwon" wrote:

Quote:
WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:FAFE4AAC-05A0-41D2-B809-5C6FF6E5372A (AT) microsoft (DOT) com...
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks





Reply With Quote
  #4  
Old   
Ruby Nadler
 
Posts: n/a

Default Re: MDX Member Properties - 04-12-2005 , 06:11 AM



When I am adding WHERE condition to the query i want the result to show me in
the rows only the streets answering to the condition:

WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")'
SELECT
{Measures.StreetID} ON COLUMNS,
NON EMPTY [Street].[StreetName].Members ON ROWS
FROM [Adv]
WHERE [Advertiser].[All Advertiser].[Peace]

it shows me all the streets and their StreetID not only the ones that answer
the where condition . why?
thanks again



"Ohjoo Kwon" wrote:

Quote:
WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:FAFE4AAC-05A0-41D2-B809-5C6FF6E5372A (AT) microsoft (DOT) com...
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks





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

Default Re: MDX Member Properties - 04-12-2005 , 07:38 AM



I'm sorry I don't understand your question.

WHERE clause plays the role of slicing. It does not affect on the row axis
directly. Is there any available condition between Street and Advertiser to
filter the members on the row axis?

For example,

Filter([Street].[StreetName].Members, What Condition?)


Ohjoo

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote

Quote:
When I am adding WHERE condition to the query i want the result to show me
in
the rows only the streets answering to the condition:

WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")'
SELECT
{Measures.StreetID} ON COLUMNS,
NON EMPTY [Street].[StreetName].Members ON ROWS
FROM [Adv]
WHERE [Advertiser].[All Advertiser].[Peace]

it shows me all the streets and their StreetID not only the ones that
answer
the where condition . why?
thanks again



"Ohjoo Kwon" wrote:

WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:FAFE4AAC-05A0-41D2-B809-5C6FF6E5372A (AT) microsoft (DOT) com...
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks







Reply With Quote
  #6  
Old   
Ruby Nadler
 
Posts: n/a

Default Re: MDX Member Properties - 04-14-2005 , 01:40 AM



Every street has an Advertiser and i want to display only the streets that
their Advertiser is 'Peace'. it wark fine if i dont show the Properties
("StreetID") in the cols but if i add the property i get all the streets no
matter what is the Advertiser.
thanks

"Ohjoo Kwon" wrote:

Quote:
I'm sorry I don't understand your question.

WHERE clause plays the role of slicing. It does not affect on the row axis
directly. Is there any available condition between Street and Advertiser to
filter the members on the row axis?

For example,

Filter([Street].[StreetName].Members, What Condition?)


Ohjoo

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:80555EAC-1225-421A-8041-08691D61BC08 (AT) microsoft (DOT) com...
When I am adding WHERE condition to the query i want the result to show me
in
the rows only the streets answering to the condition:

WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")'
SELECT
{Measures.StreetID} ON COLUMNS,
NON EMPTY [Street].[StreetName].Members ON ROWS
FROM [Adv]
WHERE [Advertiser].[All Advertiser].[Peace]

it shows me all the streets and their StreetID not only the ones that
answer
the where condition . why?
thanks again



"Ohjoo Kwon" wrote:

WITH
MEMBER Measures.StreetID AS 'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:FAFE4AAC-05A0-41D2-B809-5C6FF6E5372A (AT) microsoft (DOT) com...
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks








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

Default Re: MDX Member Properties - 04-14-2005 , 02:49 AM



If then, add Advertiser as a member property to StreetName level and try
next.

Filter([Street].[StreetName].Members,
[Street].CurrentMember.Properties("Advertiser") ="Peace" )

Ohjoo


"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote

Quote:
Every street has an Advertiser and i want to display only the streets that
their Advertiser is 'Peace'. it wark fine if i dont show the Properties
("StreetID") in the cols but if i add the property i get all the streets
no
matter what is the Advertiser.
thanks

"Ohjoo Kwon" wrote:

I'm sorry I don't understand your question.

WHERE clause plays the role of slicing. It does not affect on the row
axis
directly. Is there any available condition between Street and Advertiser
to
filter the members on the row axis?

For example,

Filter([Street].[StreetName].Members, What Condition?)


Ohjoo

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in message
news:80555EAC-1225-421A-8041-08691D61BC08 (AT) microsoft (DOT) com...
When I am adding WHERE condition to the query i want the result to
show me
in
the rows only the streets answering to the condition:

WITH
MEMBER Measures.StreetID AS
'Street.CurrentMember.Properties("StreetID")'
SELECT
{Measures.StreetID} ON COLUMNS,
NON EMPTY [Street].[StreetName].Members ON ROWS
FROM [Adv]
WHERE [Advertiser].[All Advertiser].[Peace]

it shows me all the streets and their StreetID not only the ones that
answer
the where condition . why?
thanks again



"Ohjoo Kwon" wrote:

WITH
MEMBER Measures.StreetID AS
'Street.CurrentMember.Properties("StreetID")
SELECT
{Measures.StreetID} ON COLUMNS,
[Street].[StreetName].Members ON ROWS
FROM [Adv]

Ohjoo Kwon

"Ruby Nadler" <RubyNadler (AT) discussions (DOT) microsoft.com> wrote in
message
news:FAFE4AAC-05A0-41D2-B809-5C6FF6E5372A (AT) microsoft (DOT) com...
I have a question:
i Street dimension with 3 levels:
*state
**city
***StreetName

on the last level (street) i have member property StreetID.
hoe can i show the street name on row and is member property in
col?
this stuff wil not work:
SELECT
non empty {[Street].[StreetName].members} on rows,
non empty {[Street].[StreetName].MEMBERS DIMENSION PROPERTIES
[Street].[StreetName].[StreetID]} on columns
From [adv]

thanks










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.