Can any one help why this is giving error.

Post Reply
ryan
Posts: 59
Joined: Thu May 26, 2011 5:04 am
OLAP Product: COGNOS
Version: 9.0
Excel Version: 2007

Can any one help why this is giving error.

Post by ryan »

['Budget','ContainerCount','BudgetedVoyage','FinalVal']=S:
IF(['Budget','ContainerCount','BudgetedVoyage','OverwriteVal'] @<> '', ['Budget','ContainerCount','BudgetedVoyage','OverwriteVal'],['Budget','ContainerCount','BudgetedVoyage','BudgetVal']);

When I save the rule, I am getting error - " Syntax error on or before logical expression"

All the three elements(FinalVal, OverwriteVal, BudgetVal) are String Type.

Can anyone help what was the reason behind this.

Thanks in advance.
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: Can any one help why this is giving error.

Post by Gregor Koch »

Hi

You need to use the DB(cube, ...) syntax rather than the [] syntax for String elements.
Cheers
ryan
Posts: 59
Joined: Thu May 26, 2011 5:04 am
OLAP Product: COGNOS
Version: 9.0
Excel Version: 2007

Re: Can any one help why this is giving error.

Post by ryan »

Gregor Koch wrote:Hi

You need to use the DB(cube, ...) syntax rather than the [] syntax for String elements.
Cheers
Thanks George, I am able to get the result. Now I have another problem, when I include Skipchek & Feeder statments

SKIPCHECK;
['Budget','ContainerCount','BudgetedVoyage','Budget_Final']=S:
IF(DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Overwrite') @<> '',
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Overwrite'),
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Calc'));

FEEDERS;
['Budget','ContainerCount','BudgetedVoyage','Budget_Overwrite']=>
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Final');
['Budget','ContainerCount','BudgetedVoyage','Budget_Calc']=>
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Final');

I Can see values under Budget_Final element reflecting from Budget_Overwrite. But when I click 'Supress Zeroes", I cannot see the element - 'Budget_Final' in the any view.
Can u please help me in this regard.
Last edited by ryan on Mon Jul 04, 2011 12:02 am, edited 1 time in total.
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Can any one help why this is giving error.

Post by tomok »

You have to use the FEEDSTRINGS statement to feed string values.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
ryan
Posts: 59
Joined: Thu May 26, 2011 5:04 am
OLAP Product: COGNOS
Version: 9.0
Excel Version: 2007

Re: Can any one help why this is giving error.

Post by ryan »

tomok wrote:You have to use the FEEDSTRINGS statement to feed string values.
oops I forgot to include that statement.

FEEDSTRINGS;
SKIPCHECK;
['Budget','ContainerCount','BudgetedVoyage','Budget_Final']=S:
IF(DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Overwrite') @<> '',
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Overwrite'),
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Calc'));

FEEDERS;
['Budget','ContainerCount','BudgetedVoyage','Budget_Overwrite']=>
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Final');
['Budget','ContainerCount','BudgetedVoyage','Budget_Calc']=>
DB('BD_CargoMixUsed4Calc','Budget',!SF_InterlineFlag,!SF_BorneFlag,!SF_Direction,'ContainerCount',!SF_Service,!BD_Period,'BudgetedVoyage','Budget_Final');

I Can see values under Budget_Final element reflecting from Budget_Overwrite. But when I click 'Supress Zeroes", I cannot see the element - 'Budget_Final' in the any view.
Can anyone please help me whether anything to be corrected in feeders?

Thanks in advance.
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
Post Reply