How can to create a dynamic MDX subset in TM1?

Post Reply
les
Posts: 4
Joined: Fri Sep 09, 2011 8:29 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003

How can to create a dynamic MDX subset in TM1?

Post by les »

Good day!

Please help me, who knows.
I want to create a dynamic subset in the TM1 with MDX commands.
For example, there is a cube with dimensions CFR, MyParam. I need to create a subset of all the values ​​of CFR, if the intersection [CFR] and [MyParam].[MyType] =15. Can I write a query such a structure?:

Code: Select all

SubsetCreatebyMDX('MyCFR','SELECT FILTER({[CFR]}, ([Measures].[MyParam].[MyType])= 15) ON ROWS, {[Measures].[MyParam].[MyType]} ON COLUMNS FROM [TestCube]');
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: How can to create a dynamic MDX subset in TM1?

Post by tomok »

it is possible to create what you want but that particular syntax is not going to work for a subset because it is going to return a tuple. You need something like:

Code: Select all

{FILTER({[TestCube].([Dim_1].[ElementFromDim_1],[Dim_2].[ElementFromDim_2],.....[Dim_x].[ElementFromDim_x]) > 15 )}
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply