COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: joecog on 25 Apr 2011 08:33:35 PM

Title: Hide Blank row in Value Prompt
Post by: joecog on 25 Apr 2011 08:33:35 PM
Hi,

I had a value prompt as below :-

Product
---------------------
(Blank)
A
B
C


How do I filter out the (Blank) row from the value prompt?
I had tried using detail filter as below but when run the report, still show out.

[Ori].[Product].[Product].[Product-Category Code] not in ('(Blank)')

Anyone come across this problem before?

Joe
Title: Re: Hide Blank row in Value Prompt
Post by: PRIT AMRIT on 25 Apr 2011 09:00:03 PM
QuoteI had tried using detail filter as below but when run the report, still show out.
Have you filtered your Report query or Value prompt query? I mean, you must have two queries. One for you Value Prompt and another one for your Report?

Apply the filter on the query your value prompt is point to.
trim([Ori].[Product].[Product].[Product-Category Code])<>'(Blank)'

See if it helps?
Title: Re: Hide Blank row in Value Prompt
Post by: cognostechie on 25 Apr 2011 09:02:29 PM
Try this -

[Ori].[Product].[Product].[Product-Category Code] > ''

and I dont knwo why you are using the Category Code for this.
Title: Re: Hide Blank row in Value Prompt
Post by: joecog on 25 Apr 2011 10:32:31 PM
Hi Prit,

I had create a detail filter for value prompt query and also report query
I had tried your expression but still not working.

The (blank) is still appear.

Joe
Title: Re: Hide Blank row in Value Prompt
Post by: PRIT AMRIT on 26 Apr 2011 12:14:28 AM
First, are you able to capture the value '(blank)'?
can you just create a simple report with [Ori].[Product].[Product].[Product-Category Code]. So the report would be showing all the Category Code including the '(blank)' value.

Now create a Boolean variable:
[Ori].[Product].[Product].[Product-Category Code]='(Blank)'

If yes: Background color is 'YELLOW'
    no: Background color is 'Blue'

and see if it works?

The whole point is first you have to identify the value and then apply  the same in your filter condition to filter it out.

BTW, as cognostechie said, I too found it bit weired why are you using [Product-Category Code], how your Code(key) contains blank values?

Thanks
Prit
Title: Re: Hide Blank row in Value Prompt
Post by: joecog on 26 Apr 2011 12:46:39 AM
Hi Prit,

Ya, I was able to capture the (blank) value.
It is part of the member under the mentioned hierarchy.

I had create a filter base on the MUN of the (blank) and now it is not showing anymore at the value prompt.

Thanks guys...
It's working now...

Joe