Hi Everyone,
I am working on a rule ...the purpose of this rule is to populate values for target (s) element ...when blank or no value is found for Source with elements in !dim1.
I think we cant use direct !dim1 to populate elements...is there any way to populate elements?
[ 'Target'] = S:IF(['source'] @ =' ', !dim1,STET);
note: !dim has n elements
Target has s elements.
Thanks in advance.
Need help - Rule
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
-
- MVP
- Posts: 3234
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Need help - Rule
Hello
You'd better use the DB( ) notation instead of ['Source']
Next to that, it should work.
Can you please avoid using "Need help" in the topic title?
Everyone who posts a topic, needs help.
Wim
You'd better use the DB( ) notation instead of ['Source']
Next to that, it should work.
Can you please avoid using "Need help" in the topic title?
Everyone who posts a topic, needs help.
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- qml
- MVP
- Posts: 1096
- 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: Need help - Rule
Nah, not everyone. Some posters never bother to come back to either give more details or simply say thank you, which leads me to the conclusion that they never required help in the first place.Wim Gielis wrote:Everyone who posts a topic, needs help.

Kamil Arendt
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Need help - Rule
Thank you! Wim and qml for the quick response.
Now, I am facing invalid string element expression issue.
[ 'Target'] = S:IF(['source'] @ =' ', !dim1,STET);
here ['target'] is having s elements and !dim1 has n elements.
But the !dim1 has 'n' elements throwing error has invalid string elements expression.
Now, I am facing invalid string element expression issue.
[ 'Target'] = S:IF(['source'] @ =' ', !dim1,STET);
here ['target'] is having s elements and !dim1 has n elements.
But the !dim1 has 'n' elements throwing error has invalid string elements expression.
-
- MVP
- Posts: 600
- Joined: Wed Aug 17, 2011 1:19 pm
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2003 2007
- Location: York, UK
Re: Need help - Rule
You need to use a DB to get at the string cell and not a [...] reference, even though it is in the same cube. [...] can only be used to return a number.
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Need help - Rule
Thank You! Duncan, Wim and qml
now,i was able to resolve it.
now,i was able to resolve it.