Page 1 of 1
Rules and Subsets
Posted: Tue May 21, 2013 7:04 am
by ioscat
Hello!
Here is link:
http://www.lead2pass.com/downloadable/d ... le_id/777/
Look at the question 7:
Which of the following examples will apply a rule to a subset of the Month dimension?
A. [{'Jan', 'Feb', 'Mar'\}]
B. ["Jan", "Feb", "Mar"]
C. ['Jan', 'Feb', 'Mar']
D. [('Jan', 'Feb', 'Mar')]
Answer: A
how is it possible? Or am I missing smt?
Re: Rules and Subsets
Posted: Tue May 21, 2013 7:24 am
by Wim Gielis
Hi
I would go for A, although I do not know what the \ means at the end.
Is it a typo maybe?
Re: Rules and Subsets
Posted: Tue May 21, 2013 9:27 am
by Alan Kirk
ioscat wrote:Hello!
Here is link:
http://www.lead2pass.com/downloadable/d ... le_id/777/
Look at the question 7:
Which of the following examples will apply a rule to a subset of the Month dimension?
A. [{'Jan', 'Feb', 'Mar'\}]
B. ["Jan", "Feb", "Mar"]
C. ['Jan', 'Feb', 'Mar']
D. [('Jan', 'Feb', 'Mar')]
Answer: A
how is it possible? Or am I missing smt?
It's always been possible to use a
subset (which is to say, a collection of some or all of the elements that make up a dimension) in Rules using curly braces, as discussed
here. However
named subsets are not supported in rules since it would then be impossible to predict what the outcome would be since anyone with admin access (or the ability to run a metadata-altering TI) could easily change (or worse, delete) the named subset definition and cause the values to change for everyone else.
And I agree with Wim, I believe that the backslash is a typo.
Re: Rules and Subsets
Posted: Tue May 21, 2013 10:50 am
by ioscat
Thanks, Wim, Alan.
The only thing that confused me was the backslash. Finally it is placed next to the end square bracket.
Re: Rules and Subsets
Posted: Tue May 21, 2013 10:54 am
by Wim Gielis
ioscat wrote:Thanks, Wim, Alan.
The only thing that confused me was the backslash. Finally it is placed next to the end square bracket.
In the TM1 Rules Editor, the syntax with backslash evaluates to an error, so I'm certain it must be a typo.
Re: Rules and Subsets
Posted: Wed May 29, 2013 2:27 am
by EvgenyT
Hi ioscat,
Its definitely a typo, I came across these questions awhile ago.
Regards,
Evgeny