dbTalk Databases Forums  

Wrong result when using LInkMember

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


Discuss Wrong result when using LInkMember in the microsoft.public.sqlserver.olap forum.



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

Default Wrong result when using LInkMember - 02-12-2004 , 06:50 AM






Dear All,

I have a cube named Sales. it has several dimensions two of them are
[Product Form] and [Product Category] and they have the same
hierarchy. I am trying to find a member inside the [Product Category]
that is equivalnt to a specfic member inside the [Product Form] using
the following:

LinkMember( [Product Form].[All Product Form].[DROPS].[OTOCALM Ear
Drops 10 ML 23] , [Product Category])

This function returns "Miscellanous" which is a member in [Product
Category] and not a member in [Product Category].[product].

Note:
when I run this function using a product other than "OTOCALM Ear Drops
10 ML 23" the function returns true result.

I don't know why this happened.

Thanks for any suggestion.

Marwa.

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Wrong result when using LInkMember - 02-12-2004 , 10:37 AM






Marwa, are you aware that LinkMember is based on key, not name? Do the keys
conform?

public @ the domain below
www.tomchester.net

"Marwa" <maelteir (AT) yahoo (DOT) com> wrote

Quote:
Dear All,

I have a cube named Sales. it has several dimensions two of them are
[Product Form] and [Product Category] and they have the same
hierarchy. I am trying to find a member inside the [Product Category]
that is equivalnt to a specfic member inside the [Product Form] using
the following:

LinkMember( [Product Form].[All Product Form].[DROPS].[OTOCALM Ear
Drops 10 ML 23] , [Product Category])

This function returns "Miscellanous" which is a member in [Product
Category] and not a member in [Product Category].[product].

Note:
when I run this function using a product other than "OTOCALM Ear Drops
10 ML 23" the function returns true result.

I don't know why this happened.

Thanks for any suggestion.

Marwa.



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

Default Re: Wrong result when using LinkMember - 02-14-2004 , 02:31 AM



Hi Tom,


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Marwa, are you aware that LinkMember is based on key, not name? Do the keys
conform?

public @ the domain below
www.tomchester.net

"Marwa" <maelteir (AT) yahoo (DOT) com> wrote in message
news:d5a87768.0402120450.42583511 (AT) posting (DOT) google.com...
Dear All,

I have a cube named Sales. it has several dimensions two of them are
[Product Form] and [Product Category] and they have the same
hierarchy. I am trying to find a member inside the [Product Category]
that is equivalnt to a specfic member inside the [Product Form] using
the following:

LinkMember( [Product Form].[All Product Form].[DROPS].[OTOCALM Ear
Drops 10 ML 23] , [Product Category])

This function returns "Miscellanous" which is a member in [Product
Category] and not a member in [Product Category].[product].

Note:
when I run this function using a product other than "OTOCALM Ear Drops
10 ML 23" the function returns true result.

I don't know why this happened.

Thanks for any suggestion.

Marwa.

Reply With Quote
  #4  
Old   
Marwa
 
Posts: n/a

Default Re: Wrong result when using LinkMember - 02-14-2004 , 02:31 AM



Hi Tom,


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Marwa, are you aware that LinkMember is based on key, not name? Do the keys
conform?

public @ the domain below
www.tomchester.net

"Marwa" <maelteir (AT) yahoo (DOT) com> wrote in message
news:d5a87768.0402120450.42583511 (AT) posting (DOT) google.com...
Dear All,

I have a cube named Sales. it has several dimensions two of them are
[Product Form] and [Product Category] and they have the same
hierarchy. I am trying to find a member inside the [Product Category]
that is equivalnt to a specfic member inside the [Product Form] using
the following:

LinkMember( [Product Form].[All Product Form].[DROPS].[OTOCALM Ear
Drops 10 ML 23] , [Product Category])

This function returns "Miscellanous" which is a member in [Product
Category] and not a member in [Product Category].[product].

Note:
when I run this function using a product other than "OTOCALM Ear Drops
10 ML 23" the function returns true result.

I don't know why this happened.

Thanks for any suggestion.

Marwa.

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

Default Re: Wrong result when using LinkMember - 02-14-2004 , 02:34 AM



Hi Tom,

Thanks for your note, I can solve the problem by simply modifying the
key of the first level in the [product category]dimension to be a name
instead of a number.

Thanks again.


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Marwa, are you aware that LinkMember is based on key, not name? Do the keys
conform?

public @ the domain below
www.tomchester.net

"Marwa" <maelteir (AT) yahoo (DOT) com> wrote in message
news:d5a87768.0402120450.42583511 (AT) posting (DOT) google.com...
Dear All,

I have a cube named Sales. it has several dimensions two of them are
[Product Form] and [Product Category] and they have the same
hierarchy. I am trying to find a member inside the [Product Category]
that is equivalnt to a specfic member inside the [Product Form] using
the following:

LinkMember( [Product Form].[All Product Form].[DROPS].[OTOCALM Ear
Drops 10 ML 23] , [Product Category])

This function returns "Miscellanous" which is a member in [Product
Category] and not a member in [Product Category].[product].

Note:
when I run this function using a product other than "OTOCALM Ear Drops
10 ML 23" the function returns true result.

I don't know why this happened.

Thanks for any suggestion.

Marwa.

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.