Page 1 of 1

Subsetcreatebymdx

Posted: Sun Jun 06, 2021 1:04 am
by manu0521
Hi ,

I am trying to create a subsetcreatebymdx with below code
vMdx= '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Price Range] )}, 0)}';
SubsetcreatebyMdx(subsetname,vmdx,0);

But its giving me an error unable to register the subset .
I want to use it for zero out in prolog .

But then I did a similar

SUBSETMDXSET(vDimension,vSourceSubset, vMdx );
SUBSETMDXSET( vDimension,vSourceSubset,'' );


And then did a ascii output and it wrote the values for price range n elements,

Why is my SubsetcreatebyMdx having issues here and can i not use it or when should i use it .

Thanks,

Re: Subsetcreatebymdx

Posted: Sun Jun 06, 2021 1:09 am
by manu0521
I think i got it ,
I have to destroy the subset and then use subssetcreatemdx .
Which one is better if i have to just use for zerout .
subsetcreatebymdx or SUBSETMDXSET

Re: Subsetcreatebymdx

Posted: Sun Jun 06, 2021 2:02 am
by Wim Gielis
Use temporary subsets and you will have a lot less headaches.