MDX Calculate SUm at a fixed level in hierarchy -
i have hieracy defined level1 level5 , beneath id. create calculated member makes sum @ level4. currentmember.parent works @ level5 not @ id level.
what better way ?
ok, found it, ancestors can specify @ leve want it.
with member measures.temp sum(ancestors([master product].[product tree].currentmember,[master product].[product tree].[ibs level 4]), [measures].[qty master product]) select non empty { [measures].[qty master product], [measures].[qty cross product], measures.temp } on columns, non empty { [master product].[product tree].[ibs level 5] } on rows [its cross sales] ( [complex].[by country].[complex].&[3], [dates].[calender].[date].&[2013-03-17t00:00:00] )
Comments
Post a Comment