COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: jahnavi on 24 Feb 2010 11:02:46 PM

Title: same parameter for different prompts
Post by: jahnavi on 24 Feb 2010 11:02:46 PM
Hi Guruss,

I am facing the issue like this . I have 2 prompts one is the value prompt which contains today.last week,last month these are all static choices  and the second is date range i.e., date prompt. The user should select either this or that. I am tried all the ways in cognos. but no luck. Kindly suggest?

Regards,
Jahnavi
Title: Re: same parameter for different prompts
Post by: cognosjon on 25 Feb 2010 03:00:30 AM
Hi in your first static prompt add another option titled User defined date.

then create a filter in your query in the following format

if(?staticprompt?=1) then (what ever date period you want it to be)

else if (?staticprompt?=2) then (what ever date period you want it to be)

else if(?staticprompt?=3) then (what ever date period you want it to be)

else (date field you are using for your date range prompt in_range ?Dateprompt?)

Hope it helps

Title: Re: same parameter for different prompts
Post by: jahnavi on 02 Mar 2010 07:51:57 AM
Thanks its working fine with conditional formatting...