TM1RPTRow

Post Reply
Abinaya
Posts: 57
Joined: Fri Sep 17, 2010 11:57 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003

TM1RPTRow

Post by Abinaya »

Hi,
I am using the following function in my Active Form. Is there is a way to get only leaf level n elements of the Subset displayed in the Active Form?. The subset I am using has a consolidated element.

TM1RptRow(ReportView, Dimension, Subset, SubsetElements,
Alias, ExpandAbove,MDXStatement, Indentations, ConsolidationDrilling)


regards,

Abi
declanr
MVP
Posts: 1828
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: TM1RPTRow

Post by declanr »

Why can't you use a different subset without the consolidated elements OR some mdx code that doesn't include the consolidations?
Declan Rodger
lotsaram
MVP
Posts: 3702
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: TM1RPTRow

Post by lotsaram »

Just use the MDX argument rather than the Subset argument in the TM1RptRow formula. You could even use the subset as the base of the MDX expression to filter by level for 0 level elements (this will work fine so long as the subset doesn't share a name with an actual element in the dimension).
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: TM1RPTRow

Post by rmackenzie »

Abinaya wrote:Is there is a way to get only leaf level n elements of the Subset displayed in the Active Form?. The subset I am using has a consolidated element.
If your dimension is called e.g. Business_Unit and the consolidation is e.g. All Business Units then the TM1RPTROW formula should read:

Code: Select all

=TM1RptRow(ReportView, Dimension, "", "", "", 0, "{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Business_Unit].[All Business Units]}, ALL, RECURSIVE )}, 0)}")
Assuming that ReportView and Dimension are named ranges - if not, replace them with the correct cell references.
Robin Mackenzie
Abinaya
Posts: 57
Joined: Fri Sep 17, 2010 11:57 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003

Re: TM1RPTRow

Post by Abinaya »

rmackenzie wrote:
Abinaya wrote:Is there is a way to get only leaf level n elements of the Subset displayed in the Active Form?. The subset I am using has a consolidated element.
If your dimension is called e.g. Business_Unit and the consolidation is e.g. All Business Units then the TM1RPTROW formula should read:

Code: Select all

=TM1RptRow(ReportView, Dimension, "", "", "", 0, "{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Business_Unit].[All Business Units]}, ALL, RECURSIVE )}, 0)}")
Assuming that ReportView and Dimension are named ranges - if not, replace them with the correct cell references.
Thanks. This really worked well.
Post Reply