Perspektives - Active Forms - MDX
Posted: Mon Feb 29, 2016 12:30 pm
Hello
I want to build an active form in Perspectives with 2 nested dimensions in rows.
The idea is, if the first dimension has an C element as current member, depending on that in the second dimension should only the Total element be shown. If there's an N element in first dimension, in second dimenson all elements level 0 should be shown.
Therefore i created this formulas with mdx:
Dimension1: =TM1RPTROW($B$9;"DB:Dimension1";;;;0;{DESCENDANTS([Dimension1].[Total Dimension1]) })
Dimension2: =TM1RPTROW($B$9;"DB:Dimension2";;;;0;IIF([Dimension1].currentmember.children.count=0,{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Dimension2] )}, 0)},[Dimension2].[Total Dimension2]))
But this doesn't work, it shows all items in Dimension2. Is there anything wrong in my statement or is it generally doesn't work with e.g. currentmember?
I would be happy on any advise, thanks.
Regards,
Jani
I want to build an active form in Perspectives with 2 nested dimensions in rows.
The idea is, if the first dimension has an C element as current member, depending on that in the second dimension should only the Total element be shown. If there's an N element in first dimension, in second dimenson all elements level 0 should be shown.
Therefore i created this formulas with mdx:
Dimension1: =TM1RPTROW($B$9;"DB:Dimension1";;;;0;{DESCENDANTS([Dimension1].[Total Dimension1]) })
Dimension2: =TM1RPTROW($B$9;"DB:Dimension2";;;;0;IIF([Dimension1].currentmember.children.count=0,{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Dimension2] )}, 0)},[Dimension2].[Total Dimension2]))
But this doesn't work, it shows all items in Dimension2. Is there anything wrong in my statement or is it generally doesn't work with e.g. currentmember?
I would be happy on any advise, thanks.
Regards,
Jani