dbTalk Databases Forums  

MDX question about Parent-Child relationship

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


Discuss MDX question about Parent-Child relationship in the microsoft.public.sqlserver.olap forum.



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

Default MDX question about Parent-Child relationship - 09-30-2010 , 07:33 AM






I have a Parent Child rollup where a Manager (called a VPP in my case)
could contain him or herself as a Direct Report (Child) as well. So as
an example for a certain measure:

Gail Christopher 9
-- Joe Burns 2
-- Gail Christopher 3
-- Jane Walsh 4

How would I structure the MDX to get the Child (or leaf level) Gail
Christopher value of 3 and not the Parent value of 9

Reply With Quote
  #2  
Old   
Scott C
 
Posts: n/a

Default Re: MDX question about Parent-Child relationship - 09-30-2010 , 08:29 AM






On Sep 30, 8:33*am, Scott C <scottcarm... (AT) comcast (DOT) net> wrote:
Quote:
I have a Parent Child rollup where a Manager (called a VPP in my case)
could contain him or herself as a Direct Report (Child) as well. So as
an example for a certain measure:

Gail Christopher * * * * * * * * * *9
* *-- Joe Burns * * * * * * * * * * *2
* *-- Gail Christopher * * * * * * 3
* *-- Jane Walsh * * * * * * * * * 4

How would I structure the MDX to get the Child (or leaf level) Gail
Christopher value of 3 and not the Parent value of 9
Figured it out. I need to use the DataMember function such as:

[Lead].[Report To].&[601].DataMember

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.