In a TM1 Active Form, if you try to make a TM1 Perspectives TM1RptView function easier to maintain, by having the TM1RptTitle function reference variables instead of constants, you will find the following limitation.
The Element (2nd parameter) MUST reference a cell located on the same worksheet page as the TM1RptTitle function itself. This restriction does NOT apply to the 1st parameter, the Dimension name.
For example
=TM1RPTVIEW(View1_ServerDataCube, 0, TM1RPTTITLE(Dim_Versions,$C$11), TM1RPTTITLE("SalesPlanning_KPI:Companies",$C$13), TM1RPTTITLE("SalesPlanning_KPI:Currency",$C$14), TM1RPTTITLE("SalesPlanning_KPI:Brands",$C$15), TM1RPTTITLE("SalesPlanning_KPI:Product Groups",$C$16), TM1RPTTITLE("SalesPlanning_KPI:Customer Type",$C$12),TM1RPTFMTRNG,TM1RPTFMTIDCOL)
In the first TM1RptTitle function,
- The first parameter, Dim_Version, can reference a named cell with a workbook-wide scope.
- The second parameter, $C$11, must reference a cell located on the same worksheet as the TM1RptView function. Referencing a cell like Element_versions, or even Metadata!$A$1, will return an empty sheet.
Some might consider this a TM1 bug, but it is unlikely ever to be fixed IMNSHO.