COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS Impromptu => Topic started by: austen on 02 Mar 2007 05:20:20 AM

Title: If then else
Post by: austen on 02 Mar 2007 05:20:20 AM
I am trying to set up an "if then else" field on Impromptu for an HR product called ResourceLink.  The text reads as follows:

"if (Pers Known As is missing) then (Pers First Forename) else (Pers Known As)"

For example, if the President of the USA were on our system, if his Pers Known As were missing, it would list his name as George, and if it were not missing, it would list his name as Dubya.

However, it is not working.   For staff without a Known As name, it is simply returning a blank.

Is there something obvious that I am missing?
Title: Re: If then else
Post by: CognosChicago on 19 Mar 2007 03:22:18 PM
You may need to also check for a space and not just missing.  Missing implies Null.
Title: Re: If then else
Post by: austen on 28 Mar 2007 11:38:32 AM
It works!

I did the following:

if (Pers Known As is missing or Pers Known As = ' ') then (Pers First Forename) else (Pers Known As)

Thanks very much!