MDX filter subset
Posted: Thu Feb 26, 2015 10:35 am
Hi
I am new to TM1 and I have run in to a problem. I need to filter a dimension using a MDX statement that is refering to a kind of controlcube that I created. That cube consists of two dimensions with consolidated elements with elements below (like a hierarchy). Everything works fine accept for the fact that I would like to have - NOT only current members (elements) but also the consolidated elements that these members belong to.
{FILTER(
TM1FILTERBYLEVEL(
{TM1SUBSETALL([Cost element Group])}
,0),
[CostBudg Controlcube].([CC_and_IO].CurrentMember)
>0
)}
I guess is that it has something to do with "ancestor" but I can not figure it out.How can I write that statement and include not only "CurrentMember" as it is right now, but also the level(s) above (which also has a value greater than zero because they are consolidated).
Please please help.
I am new to TM1 and I have run in to a problem. I need to filter a dimension using a MDX statement that is refering to a kind of controlcube that I created. That cube consists of two dimensions with consolidated elements with elements below (like a hierarchy). Everything works fine accept for the fact that I would like to have - NOT only current members (elements) but also the consolidated elements that these members belong to.
{FILTER(
TM1FILTERBYLEVEL(
{TM1SUBSETALL([Cost element Group])}
,0),
[CostBudg Controlcube].([CC_and_IO].CurrentMember)
>0
)}
I guess is that it has something to do with "ancestor" but I can not figure it out.How can I write that statement and include not only "CurrentMember" as it is right now, but also the level(s) above (which also has a value greater than zero because they are consolidated).
Please please help.