Static Subset use
-
- Posts: 43
- Joined: Fri Aug 01, 2014 5:17 pm
- OLAP Product: Cognos
- Version: 10.1.1
- Excel Version: 2010
Static Subset use
Hello Sir,I have a doubt we take dynamic subset as source using mdx and then make it static mdx by adding and removing an element.why don't we take static subset when we start with in prolog.is there any advantage by this method,thanks for clarifying my doubt.
- 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: Static Subset use
The advantege to using this technique is that you can achieve quite a lot with an MDX formula and it can be quite convenient and quick. Turning a dynamic subset to a static one has the advantage of the subset not having to be recalculated on subsequent reads from the subset (also, depending on your TM1 version object locking can be a problem with dynamic subsets). If you have another easy, quick and convenient method for creating that static subset that you want, by all means use it.
Kamil Arendt
-
- Posts: 43
- Joined: Fri Aug 01, 2014 5:17 pm
- OLAP Product: Cognos
- Version: 10.1.1
- Excel Version: 2010
Re: Static Subset use
Thank you.But I have another doubt suppose we write dynamic subset first in prolog using mdx and then make it static doesn't the code for dynamic executed before going to static subset,so it wouldn't anyway get evaluated.
- 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: Static Subset use
I'm sorry, but I don't understand. Could you rephrase your question?Moh wrote:Thank you.But I have another doubt suppose we write dynamic subset first in prolog using mdx and then make it static doesn't the code for dynamic executed before going to static subset,so it wouldn't anyway get evaluated.
Kamil Arendt
-
- Posts: 43
- Joined: Fri Aug 01, 2014 5:17 pm
- OLAP Product: Cognos
- Version: 10.1.1
- Excel Version: 2010
Re: Static Subset use
sorry,I will try.what I am trying to say if we write code subsetcreatebymdx(expression) and then make this mdx static by adding and removing the element,the order of execusion will be subsetcreatebymdx(expression) then
subsetelementinsert and subsetelementdelete.Anyway first subsetcreatebymdx(expression) latter other two.
How does it stop evaluating first line subsetcreatebymdx(expression).
subsetelementinsert and subsetelementdelete.Anyway first subsetcreatebymdx(expression) latter other two.
How does it stop evaluating first line subsetcreatebymdx(expression).
- 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: Static Subset use
It doesn't. You want it to be evaluated to get the list of elements defined by your MDX. Then you add and remove a dummy element as a trick to implicitly change it to a static subset that still contains the same elements originally defined by your MDX.Moh wrote:How does it stop evaluating first line subsetcreatebymdx(expression).
These days, if you're on at least version 10.2.2, you can also use the new function SubsetMDXSet( dim, subset, [mdx] ) to the same effect, no need for dummy operations anymore.
Kamil Arendt
-
- Posts: 43
- Joined: Fri Aug 01, 2014 5:17 pm
- OLAP Product: Cognos
- Version: 10.1.1
- Excel Version: 2010
Re: Static Subset use
I understand now.Thank you.