Does anybody see why this string rule will not work? TM1 say that there is a logic error before ['USP','Post Period']:
['IRA-USP','Post Period']=S:if(['USP','Post Period']@='',['IRA','Post Period'],['USP','Post Period']);
Post Period in this example is a String element. I have also created a rule where there is no if statement and IRA-USP is just equal to USP with no luck either. Is there something that I am missing in my rule.
String Rule
- Mike Cowie
- Site Admin
- Posts: 483
- Joined: Sun May 11, 2008 7:07 pm
- OLAP Product: IBM TM1/PA, SSAS, and more
- Version: Anything thru 11.x
- Excel Version: 2003 - Office 365
- Location: Alabama, USA
- Contact:
Re: String Rule
Hi,
You can't use internal cube references ([...])for any returned string data in a rule. You need a DB() reference instead. I don't know your cube and its dimensions, so the best example I can give you is a bit fake to illustrate:
Putting it another way, when TM1 sees the internal cube references it always assumes a number is coming out of that and, because this rule is String-based it won't allow it to compile.
Regards,
Mike
You can't use internal cube references ([...])for any returned string data in a rule. You need a DB() reference instead. I don't know your cube and its dimensions, so the best example I can give you is a bit fake to illustrate:
Code: Select all
['IRA-USP', 'Post Period']=S:
if(DB('YourCube',!OtherDim1,!OtherDim2,'USP','Post Period')@='',DB('YourCube',!OtherDim1,!OtherDim2,'IRA','Post Period'),DB('YourCube',!OtherDim1!OtherDim2,'USP','Post Period') );
Regards,
Mike
Mike Cowie
QueBIT Consulting, LLC
Are you lost without Print Reports in Planning Analytics for Excel (PAfE)? Get it back today, for free, with Print Reports for IBM Planning Analytics for Excel!
QueBIT Consulting, LLC
Are you lost without Print Reports in Planning Analytics for Excel (PAfE)? Get it back today, for free, with Print Reports for IBM Planning Analytics for Excel!
-
- Posts: 90
- Joined: Tue Aug 19, 2008 4:56 pm
Re: String Rule
Awesome, thanks. If all my issues were only so easy