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
Issue with CELLGETN returning numeric values
-
- 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
Suharsh....
-
- 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
What do you mean by "<>="? If you want not equal to, use "<>".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
-
- 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
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.
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....