Subset Name vs Consolidation Name in MDX Dynamic Subset

Post Reply
rtanenbaum
Posts: 3
Joined: Tue Mar 10, 2015 4:46 pm
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: MS Excel 2010

Subset Name vs Consolidation Name in MDX Dynamic Subset

Post by rtanenbaum »

I am creating a dynamic subset using MDX to list the Level 0 (leaf nodes) of a different subset.
However, it is confusing the source subset name with a similar consolidation name.

The subset I want to use is called "BillingsReports" with no spaces.
There is also a consolidation called "Billings Reports" with a space.

The MDX Query references "BillingsReports" subset with no space like this.

Code: Select all

TM1SORT(
        {TM1FILTERBYLEVEL( 
                 {TM1DRILLDOWNMEMBER( {[clients].[BillingsReports]} , ALL, RECURSIVE }
        , 0)}
, ASC)
However the list being shown is the "Billings Reports" consolidation.

I could fix it by changing the name of the subset from "BillingsReports" to "Billings_Reports", but I wondered if anyone has a clue about why this is happening.

IBM Cognos TM1 9.5
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Subset Name vs Consolidation Name in MDX Dynamic Subset

Post by tomok »

TM1 ignores spaces in object names so to TM1, they're both the same. You need to come up with a different name for your subset.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
rtanenbaum
Posts: 3
Joined: Tue Mar 10, 2015 4:46 pm
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: MS Excel 2010

Re: Subset Name vs Consolidation Name in MDX Dynamic Subset

Post by rtanenbaum »

Thank you. That makes sense.
lotsaram
MVP
Posts: 3705
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Subset Name vs Consolidation Name in MDX Dynamic Subset

Post by lotsaram »

TM1 is a bit funny with subsets they are both lists of elements and pseudo-consolidations. MDX was developed for SSAS which has no concept of a subset in the TM1 sense and so TM1's treatment of subsets in MDX is also a bit unusual. {[dim].[subset]} returns a the member set as long as no element of the same name exists in which case it returns a set of just the specified member. As in everything TM1 the MDX is both case and space insensitive. Like Tomok said already, if you want to specify the subset then the name must be unique (in the TM1 sense) and not the same as an element in the dimension.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
rtanenbaum
Posts: 3
Joined: Tue Mar 10, 2015 4:46 pm
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: MS Excel 2010

Re: Subset Name vs Consolidation Name in MDX Dynamic Subset

Post by rtanenbaum »

Thank you. This is useful information.
Post Reply