MDX Q
Posted: Fri Jan 23, 2009 4:43 pm
Afternoon, seeing as no one else is going to post anything interesting this afternoon, I've a quick question.
Definition of dynamic subset
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( { {TM1SubsetBasis()}, { [Sub-analysis 1].[GTPL Balance] } }, ALL, RECURSIVE )}, 0)}
What I want is all the 0 level children of the element consolidation "GTPL Balance". GTPL balance is a level 1 consolidation with just 0 level elements under it (by definition). I think the MDX is correct and at first look I appear to be getting what I want.
But
On a harder look I see that every element is repeated three times in the list. So I think the MDX is wrong
On an even harder look I see that if I expand the hierarchy under GTPL Balance I see that every element is under the consolidation 3 times.
....
I didn't think it was possible to have an element under a single consolidation more than once?
Anyway perfect time to restart the server and pack up for the weekend....
Verwsion 845 latest.
Bonne weekened mes amis!
...........
Edit : Got the result I needed by changing the MDX by removing the "TM1SubsetBasis()" from the expression.
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( { { }, { [Sub-analysis 1].[GTPL Balance] } }, ALL, RECURSIVE )}, 0)}
If any one fancies explaining what was going on I would be grateful, I really must get that MDX book.....
Cheers
Definition of dynamic subset
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( { {TM1SubsetBasis()}, { [Sub-analysis 1].[GTPL Balance] } }, ALL, RECURSIVE )}, 0)}
What I want is all the 0 level children of the element consolidation "GTPL Balance". GTPL balance is a level 1 consolidation with just 0 level elements under it (by definition). I think the MDX is correct and at first look I appear to be getting what I want.
But
On a harder look I see that every element is repeated three times in the list. So I think the MDX is wrong
On an even harder look I see that if I expand the hierarchy under GTPL Balance I see that every element is under the consolidation 3 times.
....
I didn't think it was possible to have an element under a single consolidation more than once?
Anyway perfect time to restart the server and pack up for the weekend....
Verwsion 845 latest.
Bonne weekened mes amis!
...........
Edit : Got the result I needed by changing the MDX by removing the "TM1SubsetBasis()" from the expression.
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( { { }, { [Sub-analysis 1].[GTPL Balance] } }, ALL, RECURSIVE )}, 0)}
If any one fancies explaining what was going on I would be grateful, I really must get that MDX book.....
Cheers