![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to find the top level member two members before the parent of the member parent. Is this possible. Eg. Top level had 3 parents D, E and F Member K is a child of member F and is on level 5. I want to get the member D which I know is on the same level of member F but two members back from the parent F. Any assistance will be greatfully accepted. |
#3
| |||
| |||
|
|
use the Ancestor function Ancestor(dimension.currentmember, <target level>) Ancestor(dimension.currentmember, 0) return the parent member at the first level of the dimension. "henry" <henry (AT) spamnot (DOT) com> a écrit dans le message de news: %23Z0E7363EHA.2540 (AT) TK2MSFTNGP09 (DOT) phx.gbl... I want to find the top level member two members before the parent of the member parent. Is this possible. Eg. Top level had 3 parents D, E and F Member K is a child of member F and is on level 5. I want to get the member D which I know is on the same level of member F but two members back from the parent F. Any assistance will be greatfully accepted. |
#4
| |||
| |||
|
|
Jeje's suggestion will return you member F. The following will return you member 'D' Ancestor(<K>, 0).lag(2) cheers Jamie http://blogs.conchango.com/jamiethomson "Jéjé" wrote: use the Ancestor function Ancestor(dimension.currentmember, <target level>) Ancestor(dimension.currentmember, 0) return the parent member at the first level of the dimension. "henry" <henry (AT) spamnot (DOT) com> a écrit dans le message de news: %23Z0E7363EHA.2540 (AT) TK2MSFTNGP09 (DOT) phx.gbl... I want to find the top level member two members before the parent of the member parent. Is this possible. Eg. Top level had 3 parents D, E and F Member K is a child of member F and is on level 5. I want to get the member D which I know is on the same level of member F but two members back from the parent F. Any assistance will be greatfully accepted. |
#5
| |||
| |||
|
|
well... returning a particular member don't need this type of function maybe I dont understand clearly what is requiered if you need allways the member "D" then use its uniquename dimension.[Member D] if you need a sibling member of your parent member, then the formula describe by Jamie is good. "Jamie Thomson" <jamie.thomson (AT) donotspam (DOT) conchango.com> a écrit dans le message de news: DD4C71B8-2E07-4597-9C80-ED87625A517B...soft (DOT) com... Jeje's suggestion will return you member F. The following will return you member 'D' Ancestor(<K>, 0).lag(2) cheers Jamie http://blogs.conchango.com/jamiethomson "Jéjé" wrote: use the Ancestor function Ancestor(dimension.currentmember, <target level>) Ancestor(dimension.currentmember, 0) return the parent member at the first level of the dimension. "henry" <henry (AT) spamnot (DOT) com> a écrit dans le message de news: %23Z0E7363EHA.2540 (AT) TK2MSFTNGP09 (DOT) phx.gbl... I want to find the top level member two members before the parent of the member parent. Is this possible. Eg. Top level had 3 parents D, E and F Member K is a child of member F and is on level 5. I want to get the member D which I know is on the same level of member F but two members back from the parent F. Any assistance will be greatfully accepted. |
![]() |
| Thread Tools | |
| Display Modes | |
| |