I have problems creating a subset.
Lets asume I have a hierarchy like the following in the dimension cars.
total cars
- Big cars
-x1
-x2
-x3
- Small cars
-x4
-x5
-x6
The subset I like to create can vary. The lists of the elements of the subset I get out of a database. So my TI-Process always
destroys the subset and creates a new one.
DB Table with Subset elements:
x1; Big cars; total cars;
x3; Big cars; total cars;
x6; Small cars; total cars;
Hierarchy
total cars
- Big cars
-x1
-x3
- Small cars
-x6
Now I have Problems to insert the consolidated elements. When I add an C-Elements it automatically adds all of the childelements to the subset. So for example when I add Big cars, it automatically adds x1,x2,x3... Did I miss something? Like function to add childs to a consolidated element?
Any ideas how to implement that?
TI Subset insert Consolidated Elementes
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: TI Subset insert Consolidated Elementes
Are you absolutely sure this is what happens? Are you sure these elements don't show up only when you click on the plus symbol next to the C element in the subset to see its children? Because if you're sure, then this behaviour is not an expected one, and would be a bug, already most likely noticed by someone. So, are you absolutely sure that what you're saying is true?maps wrote:When I add an C-Elements it automatically adds all of the childelements to the subset. So for example when I add Big cars, it automatically adds x1,x2,x3...
Kamil Arendt
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TI Subset insert Consolidated Elementes
I second that. SubsetElementInsert adds only the specifically named member. I have never seen the function do anything else (except maybe throw an error if an invalid index value is passed to the function.)qml wrote:Are you absolutely sure this is what happens? Are you sure these elements don't show up only when you click on the plus symbol next to the C element in the subset to see its children? Because if you're sure, then this behaviour is not an expected one, and would be a bug, already most likely noticed by someone. So, are you absolutely sure that what you're saying is true?maps wrote:When I add an C-Elements it automatically adds all of the childelements to the subset. So for example when I add Big cars, it automatically adds x1,x2,x3...
Of course once the subset is opened in the subset editor and the user actually DOES SOMETHING like clicking drill down all or drilling down on a member then you are not actually looking at the named subset anymore but at a list of members derived from the original subset. In the cube viewer there is no way to make a subset "read only".
-
- Posts: 43
- Joined: Wed Aug 10, 2011 9:21 am
- OLAP Product: TM1
- Version: 9.4.1 and 9.5.1
- Excel Version: 2003
Re: TI Subset insert Consolidated Elementes
Okay I have 2 Problems.
The first Problem is that my hierarchy is pretty deep and I have a lot of bottom elements. I wanted to use the subset to show the user only the active elements of the dimension. The other Elements I can not delete because of historical data. So when I create the view with all nodes expanded the view is not readable for the user in addition the view will show the rejected elements when the user closes pushes the + again.
The next problem is creating the hierarchy with the TI-Process .To get the view with all nodes expanded I first thought I just need to add all bottom elements first and walk up the hierarchy inserting the c element. Order to insert: x1,x2,x3,samll cars, big cars, total cars. For that i would need for every level one ti-process but who cares... But it's even worse
The result is:
x1
x2
x3
small cars [+]
big cars [+]
total cars [+]
To get what i want i need to insert the elements in the following order x1,x2,small cars,x3, big cars, total cars. I have no idea how to create the subset out of the db-table.
The first Problem is that my hierarchy is pretty deep and I have a lot of bottom elements. I wanted to use the subset to show the user only the active elements of the dimension. The other Elements I can not delete because of historical data. So when I create the view with all nodes expanded the view is not readable for the user in addition the view will show the rejected elements when the user closes pushes the + again.
The next problem is creating the hierarchy with the TI-Process .To get the view with all nodes expanded I first thought I just need to add all bottom elements first and walk up the hierarchy inserting the c element. Order to insert: x1,x2,x3,samll cars, big cars, total cars. For that i would need for every level one ti-process but who cares... But it's even worse

The result is:
x1
x2
x3
small cars [+]
big cars [+]
total cars [+]
To get what i want i need to insert the elements in the following order x1,x2,small cars,x3, big cars, total cars. I have no idea how to create the subset out of the db-table.
-
- MVP
- Posts: 733
- Joined: Wed May 14, 2008 11:06 pm
Re: TI Subset insert Consolidated Elementes
maps wrote:I wanted to use the subset to show the user only the active elements of the dimension
If I understood correctly, you do want the subset to show a hierarchized view of the dimension, but excluding the inactive elements. If that is the case then you could use this MDX expression:maps wrote:I just need to add all bottom elements first and walk up the hierarchy inserting the c element
Code: Select all
{EXCEPT(
{TM1DRILLDOWNMEMBER( {[Car].[Total Cars]}, ALL, RECURSIVE )},
{FILTER( {TM1SUBSETALL([Car])}, [Car].[Active Car] = 'NO')}
)}
However, this doesn't address the problem you mention here:
To solve this, you could think about having an alternate hierarchy in your dimension that is made up of only the active elements. If the dimension is fast-moving in respect of the 'active status' of its elements then this could be awkward. But, if the active status only changes e.g. once per financial year then you could have several hierarchies - FY09 Active Cars, FY10 Active Cars, FY11 Active Cars, etc etc.maps wrote:in addition the view will show the rejected elements when the user closes pushes the + again
HTH,
Robin
Robin Mackenzie