Referenc Parameter to MDX Query from a Worksheet Cell
Posted: Thu Sep 06, 2012 7:47 am
Hi All,
I need help to pass a parameter to MDX query in Active Form.
=TM1RPTROW($B$9,"abc_tm1:Customer",,,,,$H$2)
Under H2 cell of the sheet i have the below MDX.
{ ORDER( {TOPCOUNT( {FILTER( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Customer] )}, 1)}, [Customer].[IncludeInTop] = "Include")}, 10.000000, [Activity].([Version].[LE],[Period].[Full Year],[Currency].[Euro],[Control_Type].[All Control Types],[Cust_Type].[All Cust Types],[Project].[All Projects],[BU].[FFW Total],[Sector].[All Sectors],[Branch].[$H$8], [Route].[All Routes],[Measures_Activity].[Gross Margin]))}, [Activity].([Version].[LE],[Period].[Full Year],[Currency].[Euro],[Control_Type].[All Control Types],[Cust_Type].[All Cust Types],[Project].[All Projects],[BU].[FFW Total],[Sector].[All Sectors],[Branch].[$H$8)],[Route].[All Routes],[Measures_Activity].[Gross Margin]), BDESC) }
In Worksheet under Cell H8 i have a reference to entity selected for Branch Dimension which is being passed to MDX as a parameter but this doesn't seem to work. Please suggest how could i accomplish passing a parameter to MDX from Worksheet cell in Active Form.
If i replace H8 with a Specific Entity say Australia or New Zealand it works but doesn't work when i reference a Worksheet cell.
A document with screenshot has been attached for reference.
Thanks all in advance!
Cheers,
Sri
I need help to pass a parameter to MDX query in Active Form.
=TM1RPTROW($B$9,"abc_tm1:Customer",,,,,$H$2)
Under H2 cell of the sheet i have the below MDX.
{ ORDER( {TOPCOUNT( {FILTER( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Customer] )}, 1)}, [Customer].[IncludeInTop] = "Include")}, 10.000000, [Activity].([Version].[LE],[Period].[Full Year],[Currency].[Euro],[Control_Type].[All Control Types],[Cust_Type].[All Cust Types],[Project].[All Projects],[BU].[FFW Total],[Sector].[All Sectors],[Branch].[$H$8], [Route].[All Routes],[Measures_Activity].[Gross Margin]))}, [Activity].([Version].[LE],[Period].[Full Year],[Currency].[Euro],[Control_Type].[All Control Types],[Cust_Type].[All Cust Types],[Project].[All Projects],[BU].[FFW Total],[Sector].[All Sectors],[Branch].[$H$8)],[Route].[All Routes],[Measures_Activity].[Gross Margin]), BDESC) }
In Worksheet under Cell H8 i have a reference to entity selected for Branch Dimension which is being passed to MDX as a parameter but this doesn't seem to work. Please suggest how could i accomplish passing a parameter to MDX from Worksheet cell in Active Form.
If i replace H8 with a Specific Entity say Australia or New Zealand it works but doesn't work when i reference a Worksheet cell.
A document with screenshot has been attached for reference.
Thanks all in advance!
Cheers,
Sri