COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Kid_in_Cognos on 13 Apr 2016 11:49:21 AM

Title: Filtering Value Prompt
Post by: Kid_in_Cognos on 13 Apr 2016 11:49:21 AM
Hi

I want to filter the value prompt based on the data.

say, i have prompt which is having 15 countries. The value prompt should display only the countries which is having data.

Like if there are India, USA, Uk are in the file.
Suppose,UK does not have data, the user only has to see the India and USA only in the prompt.

Can you guide me how to do it?

Thanks
Title: Re: Filtering Value Prompt
Post by: bdbits on 13 Apr 2016 03:53:38 PM
Define "have data". You will need to modify the query which populates the value prompt to only include the rows that "have data", however you define that.
Title: Re: Filtering Value Prompt
Post by: Kid_in_Cognos on 14 Apr 2016 03:20:18 AM
Hi bdbits

I am still not clear. I could not able to find "have data" option.

can you explain me in more detail?

Thanks
Title: Filtering Value Prompt
Post by: Kid_in_Cognos on 14 Apr 2016 03:24:10 AM
Hi
I want to filter the value prompt based on the data.

say, i have prompt which is having 15 countries. The value prompt should display only the countries which is having data.

Like if there are India, USA, Uk are in the file.
Suppose,UK does not have data, the user only has to see the India and USA only in the prompt.

Is it possible to do? If so, Can you guide me how to do it?

Thanks
Title: Re: Filtering Value Prompt
Post by: MFGF on 14 Apr 2016 03:28:31 AM
Quote from: realgowri on 14 Apr 2016 03:24:10 AM
Hi
I want to filter the value prompt based on the data.

say, i have prompt which is having 15 countries. The value prompt should display only the countries which is having data.

Like if there are India, USA, Uk are in the file.
Suppose,UK does not have data, the user only has to see the India and USA only in the prompt.

Can you guide me how to do it?

Thanks

Hi,

Can you define exactly what you mean by "UK does not have data"?

The approach to take is to filter the query that delivers the prompt values, but unless you can be specific about how to implement the "does not have data" filter, it's not really possible to guide you with any more detail...

MF.
Title: Re: Filtering Value Prompt
Post by: MFGF on 14 Apr 2016 03:31:55 AM
Quote from: realgowri on 14 Apr 2016 03:20:18 AM
Hi bdbits

I am still not clear. I could not able to find "have data" option.

can you explain me in more detail?

Thanks

Why have you posted the same question in two threads?

http://www.cognoise.com/index.php/topic,30514.0.html

Please read the forum etiquette post, paying particular attention to point 4:

http://www.cognoise.com/index.php/topic,24030.0.html

MF.
Title: Re: Filtering Value Prompt
Post by: Kid_in_Cognos on 14 Apr 2016 07:17:16 AM
Hi MF,

Please find the below scenerio

country    company    revenue
---------   ----------    --------- 
Ind          abc            5000
Aus          xyz            6000
UK                                   
USA         ms             7000


The above table does not have data for UK.

MY scenerio is , I have the value prompt for Country.

is it possible to show the value prompt to the user, only the countries which are having data?
in the above case ,when the user select the prompt,he has to see only Ind,Aus and USA.   And he should not see UK in the prompt, as it is not having data. is it possible?

Am I clear atleast this time?
Title: Re: Filtering Value Prompt
Post by: Kid_in_Cognos on 14 Apr 2016 07:35:48 AM
Kindly remove this topic from Cognos 8 thread as Cognos 10 report studio was not working yesterday, i updated here.

Thanks
Title: Re: Filtering Value Prompt
Post by: HalfBloodPrince on 14 Apr 2016 08:41:26 AM
Add revenue column in prompt query and put filter as  Revenue > 0
Title: Re: Filtering Value Prompt
Post by: MFGF on 15 Apr 2016 05:31:01 AM
Quote from: realgowri on 14 Apr 2016 07:35:48 AM
Kindly remove this topic from Cognos 8 thread as Cognos 10 report studio was not working yesterday, i updated here.

Thanks

I have merged the two threads so you don't lose responses from either.

MF.
Title: Re: Filtering Value Prompt
Post by: venkatesham2132 on 16 Apr 2016 03:06:46 PM
Put filter in prompt query as company is not null then run the report

Sent from my GT-N8000 using Tapatalk