Variable becomes undefined

Post Reply
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Variable becomes undefined

Post by BariAbdul »

I don't know it is just me or anybody else come across this,When I defined new variable in variables tab for example
V9='Customers'; and change to V9 to vCUSTOMER now it is vCUSTOMER='Customer'; when I click evaluate and ok the variable becomes undefined turn to old value V9='Customers'; Then I have to define it again to work as vCUSTOMER='Customer';

Why I need to define it twice?Is there something I am doing wrong here.Thanks :)
"You Never Fail Until You Stop Trying......"
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Variable becomes undefined

Post by declanr »

The second you change the name it is considered an entirely different variable as far as TM1 is concerned.
Best case is you know up front what you want it to be called and don't change the name; since the formula actually contains the variable name this obviously needs to be rewritten - wouldn't be hard for IBM to automate this but also probably not high on their list of priorities.

Other options are to not use the custom defined variables in the variables tab at all and just set in yourself in the prolog if it's not data source dependent (as with your example this would be preferable as it doesn't have to evaluate it for every record) or in the data/metadata tabs if its is source data dependent.
Declan Rodger
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Variable becomes undefined

Post by BariAbdul »

Thanks declanr,I was just interested to know the reason behind this peculiar behavior.Appreciate it.
"You Never Fail Until You Stop Trying......"
Post Reply