Is there a way to use wildcards in TM1 rules?
For example if I want to set value of all elements starting with code 123( eg. 12345 & 12399) to a certain value, is there a way to do it in rules?
Thanks.
Wildcard in rules?
-
- MVP
- Posts: 3702
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Wildcard in rules?
Of course there will be much more to it in practice but in a nutshell here is a solution to what you are asking.
Code: Select all
[ ] = N:
IF( SubSt(!EleName, 1, 3) @= '123',
#Your value
1,
#Move on and see if any other conditions apply to this cube area
CONTINUE
);
-
- Posts: 40
- Joined: Mon Mar 01, 2010 2:53 pm
- OLAP Product: TM1
- Version: 9.5 9.5.1 9.5.2
- Excel Version: 2007
Re: Wildcard in rules?
Hi,
Of course, you can also use the "SCAN" function to find a substring inside the elemnt name.
For example, say you want to set a value for all element ending by "-99":
Hope this helps...
Cheers!
Claude.
Of course, you can also use the "SCAN" function to find a substring inside the elemnt name.
For example, say you want to set a value for all element ending by "-99":
Code: Select all
IF (SCAN('-99', !Element) > 0 );
Cheers!
Claude.
Cheers!
--
Claude-Sebastien Jean
Senior Consultant in Information Technology
Keyrus Canada
www.keyrus.ca
--
Claude-Sebastien Jean
Senior Consultant in Information Technology
Keyrus Canada
www.keyrus.ca