COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Jeka on 18 Dec 2008 02:48:33 PM

Title: ParamDisplayValue('.......')
Post by: Jeka on 18 Dec 2008 02:48:33 PM
Hello,

Im using ParamDisplayValue('Location') in te report header.
This prompt is optional, so when the user is not selecting anything for Location, it will show Blank in ParamDisplayValue.

Is it possible, if blank, then display 'ALL'?


Thank-you for your help!
Nikki
Title: Re: ParamDisplayValue('.......')
Post by: Gopinath on 19 Dec 2008 01:43:08 AM
Use a layout calculation like

If(ParamDisplayValue('Location') is null) then ('All') else (ParamDisplayValue('Location'))
Title: Re: ParamDisplayValue('.......')
Post by: Suraj on 19 Dec 2008 10:12:04 AM
Yes, answer is posted by gopinath.
Sometimes it favors case statement over if then else.