Hi all,
I'm planning to use the rule function TODAY() to obtain the current date, then use SUBST to extract YY-MM base on the 1st 5 characters in the returned date.
Is TODAY function dynamic such that the rule is always evaluating the current date? So I will see another YY-MM-DD tomorrow as compared to what I have seen today? Or is it base on the date that the rules are loaded into memory. If the latter is true, this will mean that TODAY is evaluated once only during rule loading, and then this same value is used until the rules are next compiled again.
I tried this before and I vaguely remember that it is static until the next rule compilation. Any ideas? Many thanks!
Question on TM1 rule function TODAY()
-
- Regular Participant
- Posts: 226
- Joined: Thu Apr 02, 2009 2:51 pm
- OLAP Product: IBM Planning Analytics
- Version: Latest version
- Excel Version: 2003 to 2019
Question on TM1 rule function TODAY()
Planning Analytics latest version, including Cloud
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Question on TM1 rule function TODAY()
Not sure where you picked up that idea from. We use the Today() function in rules in our TI control cube, and it always shows the date of calculation.harrytm1 wrote: I'm planning to use the rule function TODAY() to obtain the current date, then use SUBST to extract YY-MM base on the 1st 5 characters in the returned date.
Is TODAY function dynamic such that the rule is always evaluating the current date? So I will see another YY-MM-DD tomorrow as compared to what I have seen today? Or is it base on the date that the rules are loaded into memory. If the latter is true, this will mean that TODAY is evaluated once only during rule loading, and then this same value is used until the rules are next compiled again.
I tried this before and I vaguely remember that it is static until the next rule compilation. Any ideas?
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Question on TM1 rule function TODAY()
The values of string rules are not cached, strings are re-evaluated every time they are queried. Although the value of the rule will not update itself in the background, it will return the correct value whenever the result is re queried. So from a user perspective the value will always be correct.
-
- Regular Participant
- Posts: 226
- Joined: Thu Apr 02, 2009 2:51 pm
- OLAP Product: IBM Planning Analytics
- Version: Latest version
- Excel Version: 2003 to 2019
Re: Question on TM1 rule function TODAY()
cool, this means that i can use TODAY() in the rule since it always re-evaluates when the derived value is recalculated.
thanks!
thanks!
Planning Analytics latest version, including Cloud