COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: utathyaghosh on 15 Nov 2012 01:14:09 AM

Title: value prompt
Post by: utathyaghosh on 15 Nov 2012 01:14:09 AM
i have to use a value prompt for the month. but its in month-number. i want to use month-name instead but it's not present in the package. so how can i achieve it??
thanks in advance.
Title: Re: value prompt
Post by: Gopinath on 15 Nov 2012 01:50:27 AM
Create a date item with a case statement like

Case [Month]
when 1 then 'January'
when 2 then 'February'
.....
....
End

and use it as Display Value for the value prompt
Title: Re: value prompt
Post by: utathyaghosh on 15 Nov 2012 11:26:31 PM
i tried that but as it is not in the package from where the data is pulled out, the data item that i created using the 'case' is not available in the value to display drop down.......
any other option??
Title: Re: value prompt
Post by: HalfBloodPrince on 15 Nov 2012 11:39:59 PM
i think u have created column in some other query. Try this

right click on Ur value prompt -> go to query option . it will take u to the prompt query . here create the calculated column, then set use value , display value as per Ur requirement.
Title: Re: value prompt
Post by: utathyaghosh on 22 Nov 2012 04:01:24 AM
thanks a ton ..
it worked