Issue with CELLGETN returning numeric values

Post Reply
Suharsh
Posts: 33
Joined: Mon Apr 09, 2012 8:31 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003

Issue with CELLGETN returning numeric values

Post by Suharsh »

Hi Friends,

I am facing an issue. I am retrieving a value using CELLGETN function and assigning it to a variable as shown below.

nRevAdjPctVal = CellgetN (sCube, V10, V1, 'REV ADJ PCT', 'LoadStat-All', 'BP-All', 'BOXMES-All', 'FOP-All', 'Sector-All', 'AP-All', V8, 'data');

Now when I am comparing the value for nRevAdjPctVal in the If statement,

If ( nRevAdjPctVal <>= 0 );

I am getting an error that says, "Incorrect Logical Comparison".

Can Anybody help me as to why it is happening?

Thanks in advance
Suharsh....
asutcliffe
Regular Participant
Posts: 164
Joined: Tue May 04, 2010 10:49 am
OLAP Product: Cognos TM1
Version: 9.4.1 - 10.1
Excel Version: 2003 and 2007

Re: Issue with CELLGETN returning numeric values

Post by asutcliffe »

Suharsh wrote:Hi Friends,

I am facing an issue. I am retrieving a value using CELLGETN function and assigning it to a variable as shown below.

nRevAdjPctVal = CellgetN (sCube, V10, V1, 'REV ADJ PCT', 'LoadStat-All', 'BP-All', 'BOXMES-All', 'FOP-All', 'Sector-All', 'AP-All', V8, 'data');

Now when I am comparing the value for nRevAdjPctVal in the If statement,

If ( nRevAdjPctVal <>= 0 );

I am getting an error that says, "Incorrect Logical Comparison".

Can Anybody help me as to why it is happening?

Thanks in advance
What do you mean by "<>="? If you want not equal to, use "<>".
Suharsh
Posts: 33
Joined: Mon Apr 09, 2012 8:31 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003

Re: Issue with CELLGETN returning numeric values

Post by Suharsh »

Hi asutcliffe,

Thanks for the suggestion. It was a small error which got rectified. Actually I was going through one of the other reputed TM1 forum and someone there suggested to use ~ and <>= operators.

Thanks for the help anyways.
Suharsh....
Post Reply