dbTalk Databases Forums  

LinkMember

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


Discuss LinkMember in the microsoft.public.sqlserver.olap forum.



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

Default LinkMember - 10-21-2003 , 03:27 PM






I have created a calculated member on a cube using the
following MDX:

ValidMeasure((
[Measures].[Number Of Passengers],
LinkMember(
[OperatingDate].[Calendar].CurrentMember,
[Leg Dept Date].[Calendar])))

The calculated member works fine, but at the All level it
errors.

Both dimensions are identical (other than the level names
used for each level). They contain the same levels. There
are multiple hierarchies for each dimension (Analysis
Server should treat them as separate dimensions).

I would appreciate any suggestions to solve this problem.

Regards,

Modesto


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

Default Re: LinkMember - 10-21-2003 , 03:38 PM






You need to special case the all member using IIF.

tom @ the domain below
www.tomchester.net


"Modesto Vega" <modestov (AT) clearviewbi (DOT) com> wrote

Quote:
I have created a calculated member on a cube using the
following MDX:

ValidMeasure((
[Measures].[Number Of Passengers],
LinkMember(
[OperatingDate].[Calendar].CurrentMember,
[Leg Dept Date].[Calendar])))

The calculated member works fine, but at the All level it
errors.

Both dimensions are identical (other than the level names
used for each level). They contain the same levels. There
are multiple hierarchies for each dimension (Analysis
Server should treat them as separate dimensions).

I would appreciate any suggestions to solve this problem.

Regards,

Modesto




Reply With Quote
  #3  
Old   
Modesto Vega
 
Posts: n/a

Default Re: LinkMember - 10-21-2003 , 03:57 PM



Could you please give an example?

Thanks,


Quote:
-----Original Message-----
You need to special case the all member using IIF.

tom @ the domain below
www.tomchester.net


"Modesto Vega" <modestov (AT) clearviewbi (DOT) com> wrote in message
news:041101c39811$cc20bf30$a301280a (AT) phx (DOT) gbl...
I have created a calculated member on a cube using the
following MDX:

ValidMeasure((
[Measures].[Number Of Passengers],
LinkMember(
[OperatingDate].[Calendar].CurrentMember,
[Leg Dept Date].[Calendar])))

The calculated member works fine, but at the All level
it
errors.

Both dimensions are identical (other than the level
names
used for each level). They contain the same levels.
There
are multiple hierarchies for each dimension (Analysis
Server should treat them as separate dimensions).

I would appreciate any suggestions to solve this
problem.

Regards,

Modesto



.


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

Default Re: LinkMember - 10-21-2003 , 06:06 PM



Something like this...

IIF( OperatingDate.CurrentMember IS OperatingDate.DefaultMember,
ValidMeasure(Measures.[Number of Passengers], [Leg Dept
Date].DefaultMember),
ValidMeasure((
[Measures].[Number Of Passengers],
LinkMember(
[OperatingDate].[Calendar].CurrentMember,
[Leg Dept Date].[Calendar])))
)

tom @ the domain below
www.tomchester.net


"Modesto Vega" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Could you please give an example?

Thanks,


-----Original Message-----
You need to special case the all member using IIF.

tom @ the domain below
www.tomchester.net


"Modesto Vega" <modestov (AT) clearviewbi (DOT) com> wrote in message
news:041101c39811$cc20bf30$a301280a (AT) phx (DOT) gbl...
I have created a calculated member on a cube using the
following MDX:

ValidMeasure((
[Measures].[Number Of Passengers],
LinkMember(
[OperatingDate].[Calendar].CurrentMember,
[Leg Dept Date].[Calendar])))

The calculated member works fine, but at the All level
it
errors.

Both dimensions are identical (other than the level
names
used for each level). They contain the same levels.
There
are multiple hierarchies for each dimension (Analysis
Server should treat them as separate dimensions).

I would appreciate any suggestions to solve this
problem.

Regards,

Modesto



.




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.