ActiveForm: MDX is ignored

Post Reply
holger_b
Posts: 131
Joined: Tue May 17, 2011 10:04 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 2016
Location: Freiburg, Germany

ActiveForm: MDX is ignored

Post by holger_b »

Dear TM1 friends,

I have an active form which displays product groups as line headers. I need a dynamic selection of these, based on two cube queries, so in the end there will only be product groups which were either sold in the current period or planned to sell in the forthcoming period.

I use this dynamically concatenated mdx statement as a parameter of the TM1RPTROW() function, and it fails. If I use something very simple, like just one element indicated in the mdx, this works, but as soon as I switch to the syntax which I actually need at the end of the day (or even parts of it), the report behaves as if there were no mdx statement at all (i.e. it displays the product groups as shown in the view originally used when creating the report).

Here is what I checked so far:
- The syntax works, i.e. if I paste the statement into the subset editor, it shows the expected result
- The element names are all principal names, so no aliases used
- None of the single cells which are concatenated in the end contains more than 256 characters each
- Even if I have just hard coded text in all the cells, so no calculation to be performed except for the concatenation, it does not work

An clue? This is Excel 2003, TM1 9.4.1. The mdx is 751 characters long, and this is what it reads:
{FILTER({TM1DRILLDOWNMEMBER({TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER( {[Dim_Productgroup].[Alle Sparten]}, ALL, RECURSIVE )}, 1)},ALL, RECURSIVE)},[C_Sales].([Dim_ValueType].[905], [Dim_Version].[Version_final], [Dim_DisplayType].[Reported],[Dim_CurrFlag].[LC],[Dim_Year_Input].[2012],[Dim_Year].[2012],[Dim_Month_Sales].[HR],[Dim_Company].[0128],[Dim_Partner_Company].[All],[Dim_Country_Sales].[International], [Dim_Measure_Sales].[SumUnit]) <> 0 OR [C_Sales].([Dim_ValueType].[021], [Dim_Version].[L_Version_1], [Dim_DisplayType].[Reported],[Dim_CurrFlag].[LC],[Dim_Year_Input].[2012],[Dim_Year].[2013],[Dim_Month_Sales].[Year],[Dim_Company].[0128],[Dim_Partner_Company].[All],[Dim_Country_Sales].[International],[Dim_Measure_Sales].[SumUnit]) <> 0)}
Thank you
Holger
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: ActiveForm: MDX is ignored

Post by Duncan P »

It looks like the 256 character limit discussed in this thread http://www.tm1forum.com/viewtopic.php?f=3&t=6216.
holger_b
Posts: 131
Joined: Tue May 17, 2011 10:04 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 2016
Location: Freiburg, Germany

Re: ActiveForm: MDX is ignored

Post by holger_b »

Thank you Duncan. I had seen that before, also this one http://www.tm1forum.com/viewtopic.php?f=3&t=3441, but to me it sounded rather like it was an Excel problem, not TM1. I thought one should get around that concatenating multiple Excel cells in another one which one would then pass to the TM1RPTROW function, but it seems this does not work.

Did anyone manage to use MDX statements longer than 256 chars in Excel 2003?
Post Reply