dbTalk Databases Forums  

OleDB: Calculated Member's Unique Name property comes up null.

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


Discuss OleDB: Calculated Member's Unique Name property comes up null. in the microsoft.public.sqlserver.olap forum.



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

Default OleDB: Calculated Member's Unique Name property comes up null. - 12-28-2004 , 05:15 AM






Hi,

I use OleDb (.NET) to execute MDX queries.

An simple example query:
WITH MEMBER [Promotion Media].[CalcMember] AS '[Promotion Media].[All
Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON COLUMNS,{[Promotion
Media].[All Media].[Bulk Mail], [Promotion Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

When I use OleDb to execute this query and populate a DataTable object, the
MEMBER_UNIQUE_NAME column value for the [CalcMember] row comes up NULL
instead of "[Promotion Media].[CalcMember]".

[Promotion Media].[Media Type].[Member_Unique_Name] [Measures].[Unit
Sales]
========================================= ================
[Promotion Media].[All Media].[Bulk Mail] 4320
(null)
4320

Can anyone tell me why that is and how to fix it?

Thanks in advance.



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: OleDB: Calculated Member's Unique Name property comes up null. - 12-28-2004 , 07:27 AM






Apparently (maybe Mosha can set me straight on this) Calc Members with no
parent members are treated as belonging to the (All) level (see "Flattening
Algorithm", rule 8 in BOL).
If you define the calc member as a child of [All Media], therefore belonging
to the [Media Type] level, a non-null unique name is retrieved:

WITH MEMBER [Promotion Media].[All Media].[CalcMember] AS '[Promotion
Media].[All Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion Media].[All Media].[Bulk Mail], [Promotion
Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

HTH,
Brian
www.geocities.com/brianaltmann/olap.html


"John" wrote:

Quote:
Hi,

I use OleDb (.NET) to execute MDX queries.

An simple example query:
WITH MEMBER [Promotion Media].[CalcMember] AS '[Promotion Media].[All
Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON COLUMNS,{[Promotion
Media].[All Media].[Bulk Mail], [Promotion Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

When I use OleDb to execute this query and populate a DataTable object, the
MEMBER_UNIQUE_NAME column value for the [CalcMember] row comes up NULL
instead of "[Promotion Media].[CalcMember]".

[Promotion Media].[Media Type].[Member_Unique_Name] [Measures].[Unit
Sales]
========================================= ================
[Promotion Media].[All Media].[Bulk Mail] 4320
(null)
4320

Can anyone tell me why that is and how to fix it?

Thanks in advance.




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

Default Re: OleDB: Calculated Member's Unique Name property comes up null. - 12-28-2004 , 07:33 AM



Hi Brian,

Thanks for your reply.

What would happen if the cube did not have an ALL member? How would I
create thecalculated member in that case?

Thanks,

"Brian Altmann" <findme@thesignaturewebsite> wrote

Quote:
Apparently (maybe Mosha can set me straight on this) Calc Members with no
parent members are treated as belonging to the (All) level (see
"Flattening
Algorithm", rule 8 in BOL).
If you define the calc member as a child of [All Media], therefore
belonging
to the [Media Type] level, a non-null unique name is retrieved:

WITH MEMBER [Promotion Media].[All Media].[CalcMember] AS '[Promotion
Media].[All Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion Media].[All Media].[Bulk Mail], [Promotion
Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

HTH,
Brian
www.geocities.com/brianaltmann/olap.html


"John" wrote:

Hi,

I use OleDb (.NET) to execute MDX queries.

An simple example query:
WITH MEMBER [Promotion Media].[CalcMember] AS '[Promotion Media].[All
Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion
Media].[All Media].[Bulk Mail], [Promotion Media].[CalcMember]}
PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

When I use OleDb to execute this query and populate a DataTable object,
the
MEMBER_UNIQUE_NAME column value for the [CalcMember] row comes up NULL
instead of "[Promotion Media].[CalcMember]".

[Promotion Media].[Media Type].[Member_Unique_Name] [Measures].[Unit
Sales]
========================================= ================
[Promotion Media].[All Media].[Bulk Mail]
4320
(null)
4320

Can anyone tell me why that is and how to fix it?

Thanks in advance.






Reply With Quote
  #4  
Old   
Brian Altmann
 
Posts: n/a

Default Re: OleDB: Calculated Member's Unique Name property comes up null. - 12-28-2004 , 09:03 AM



If the dimension has the (All) level disabled, when you create a calc member
without specifying a parent (as you did in the first version of your query),
the member belongs to the top level, and the unique name is retrieved
normally.
Regards,
Brian

"John" wrote:

Quote:
Hi Brian,

Thanks for your reply.

What would happen if the cube did not have an ALL member? How would I
create thecalculated member in that case?

Thanks,

"Brian Altmann" <findme@thesignaturewebsite> wrote in message
news:BAB63382-9CCC-4426-B78E-AC3E357743AC (AT) microsoft (DOT) com...
Apparently (maybe Mosha can set me straight on this) Calc Members with no
parent members are treated as belonging to the (All) level (see
"Flattening
Algorithm", rule 8 in BOL).
If you define the calc member as a child of [All Media], therefore
belonging
to the [Media Type] level, a non-null unique name is retrieved:

WITH MEMBER [Promotion Media].[All Media].[CalcMember] AS '[Promotion
Media].[All Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion Media].[All Media].[Bulk Mail], [Promotion
Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

HTH,
Brian
www.geocities.com/brianaltmann/olap.html


"John" wrote:

Hi,

I use OleDb (.NET) to execute MDX queries.

An simple example query:
WITH MEMBER [Promotion Media].[CalcMember] AS '[Promotion Media].[All
Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion
Media].[All Media].[Bulk Mail], [Promotion Media].[CalcMember]}
PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

When I use OleDb to execute this query and populate a DataTable object,
the
MEMBER_UNIQUE_NAME column value for the [CalcMember] row comes up NULL
instead of "[Promotion Media].[CalcMember]".

[Promotion Media].[Media Type].[Member_Unique_Name] [Measures].[Unit
Sales]
========================================= ================
[Promotion Media].[All Media].[Bulk Mail]
4320
(null)
4320

Can anyone tell me why that is and how to fix it?

Thanks in advance.







Reply With Quote
  #5  
Old   
John
 
Posts: n/a

Default Re: OleDB: Calculated Member's Unique Name property comes up null. - 12-28-2004 , 09:44 AM



Thanks.

You have been very helpful.

I appreciate it.

"Brian Altmann" <findme@thesignaturewebsite> wrote

Quote:
If the dimension has the (All) level disabled, when you create a calc
member
without specifying a parent (as you did in the first version of your
query),
the member belongs to the top level, and the unique name is retrieved
normally.
Regards,
Brian

"John" wrote:

Hi Brian,

Thanks for your reply.

What would happen if the cube did not have an ALL member? How would I
create thecalculated member in that case?

Thanks,

"Brian Altmann" <findme@thesignaturewebsite> wrote in message
news:BAB63382-9CCC-4426-B78E-AC3E357743AC (AT) microsoft (DOT) com...
Apparently (maybe Mosha can set me straight on this) Calc Members with
no
parent members are treated as belonging to the (All) level (see
"Flattening
Algorithm", rule 8 in BOL).
If you define the calc member as a child of [All Media], therefore
belonging
to the [Media Type] level, a non-null unique name is retrieved:

WITH MEMBER [Promotion Media].[All Media].[CalcMember] AS '[Promotion
Media].[All Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion Media].[All Media].[Bulk Mail], [Promotion
Media].[CalcMember]} PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

HTH,
Brian
www.geocities.com/brianaltmann/olap.html


"John" wrote:

Hi,

I use OleDb (.NET) to execute MDX queries.

An simple example query:
WITH MEMBER [Promotion Media].[CalcMember] AS '[Promotion
Media].[All
Media].[Bulk Mail]'SELECT {[Measures].[Unit Sales]} ON
COLUMNS,{[Promotion
Media].[All Media].[Bulk Mail], [Promotion Media].[CalcMember]}
PROPERTIES
MEMBER_UNIQUE_NAME ON ROWS FROM [Sales]

When I use OleDb to execute this query and populate a DataTable
object,
the
MEMBER_UNIQUE_NAME column value for the [CalcMember] row comes up
NULL
instead of "[Promotion Media].[CalcMember]".

[Promotion Media].[Media Type].[Member_Unique_Name]
[Measures].[Unit
Sales]
========================================= ================
[Promotion Media].[All Media].[Bulk Mail]
4320
(null)
4320

Can anyone tell me why that is and how to fix it?

Thanks in advance.









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.