}ElementAttributes_Time rules

Post Reply
shinymcshires
Posts: 58
Joined: Wed Nov 26, 2008 10:21 pm
OLAP Product: OlapObjects Publisher 5.0
Version: 9.5.1
Excel Version: 2003

}ElementAttributes_Time rules

Post by shinymcshires »

Fellow forum members -

I my efforts to edit a rule (written by our VAR), which I am now kicking myself for not copying the original to a text editor before modifying, I seem to have rendered its syntax to be incorrect. I'd like to find which directory the rule for this Element attribute is stored so I can view the backup of the data directory from and copy the backup.

The syntax looks correct to me:
Element Attributes Time Rule.JPG
Element Attributes Time Rule.JPG (70.55 KiB) Viewed 3480 times
but I am getting an error message that I am missing a comma:
Rule Error Message.JPG
Rule Error Message.JPG (11.84 KiB) Viewed 3480 times
Any of the following will help me -

- The directory where I can find the rule for }ElementAttributes_Time
- The syntax error in the rule

Thank you in advance for your help!
Richard Lee
Financial Systems Analyst
City of Millbrae
User avatar
Mike Cowie
Site Admin
Posts: 484
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: }ElementAttributes_Time rules

Post by Mike Cowie »

shinymcshires wrote:Any of the following will help me -

- The directory where I can find the rule for }ElementAttributes_Time
- The syntax error in the rule

Thank you in advance for your help!
Hi:

Saved rules can be found as .RUX files in your TM1 server's data directory.

I believe the syntax problem is that you didn't completely finish the inline IF() function here. You need to specify:

IF( <some condition>, <do this when condition is true>, <do this when condition is false> )

It's the final part of the IF that you're missing, from what I can see. Your rule at the moment is setting "Budget Months" = "" when the FY attribute of the current period = the "Budget Year 1" or "Budget Year 2" Control Panel cube settings. You haven't told the rule what to do when the FY attribute does not equal either of those Control Panel cube settings.

HTH!

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!
shinymcshires
Posts: 58
Joined: Wed Nov 26, 2008 10:21 pm
OLAP Product: OlapObjects Publisher 5.0
Version: 9.5.1
Excel Version: 2003

Re: }ElementAttributes_Time rules

Post by shinymcshires »

Mr. Cowie -

Once again, you provide a great answer. I could have sworn I looked at all of the .rux files in the data directory. Oh well. I found the syntax from the backup copy of the rule, and you are absolutely right about the syntax. the 'TRUE' section of the IF statement should have been 'Y", then the FALSE section being = ' '. Once I changed that, the rule editor was happy again.

If you ever come out to the SF Bay Area, I'm going to have to buy you lunch. Thanks again!
Richard Lee
Financial Systems Analyst
City of Millbrae
Post Reply