Content_Cut_Icon Twitter_Brands_Icon

How to improve the performance of a Dynamic Subset?

Mode_Comment_Icon_white2
Alarm_Icon_1_white2 min
Book_Open_Solid_Icon
Executive Summary Key Takeaway in 30 Seconds

As a TM1 consultant, one of our challenging tasks is improving performance. Often dynamic subsets cause memory leakage and in turn affect performance. Let’s discuss, how to convert dynamic subset to static subset with an example.

As a TM1 consultant, one of our challenging tasks is improving performance.

Often dynamic subsets cause memory leakage and in turn affect performance. Let’s discuss, how to convert dynamic subset to static subset with an example.

For Example, the “account1” dimension in SData instance has dynamic subset called “All Members”. Any operation done in the dynamic subset like delete/insert, will make subset has static. The below snippet of code to covert the dynamic subset to static (TI process can be downloaded in the bottom of the blog).

 

1-10

 

Before running the above code After running the above code

1-9

 


If you are using TM1 10.2.2 or above, the same operation can be done using “SubsetMDXSet” (undocumented function). The syntax of the function is 

SubsetMDXSet( dimension, subsetname, [ MDX_expression]); 

 

 

Argument 

Description 

Dimension 

Parent Dimension Name 

Subsetname 

Subset Name 

MDX_expression 

MDX expression to update the subset. It will recreate the subset 

If you do not use this parameter, include an empty string. 

 

Example,

SubsetMDXSet ( ‘Account1’ , ‘All Members’ , ‘’ ) ;

 

 Download the Ti

Sasidaran Rammoorthy
Written by

Sasidaran Rammoorthy

Sasidaran has 10 years of experience in Information Technology industry. He has worked as a developer to build Data warehouses across multiple industries. During this time, Sasidaran has had exposure to numerous Data warehouse tools like Informatica, Cognos BI, Business Objects and database tools like Oracle and SQL Server.

Leave a comment

Got a question? Shoot!

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Get more articles like this delivered to your inbox