COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: lonas on 14 Oct 2013 11:56:13 AM

Title: One query, 2 pages - different filters
Post by: lonas on 14 Oct 2013 11:56:13 AM
Hi,
I'm new in Cognos - I was working in Business Objects.
I have 2 tabs on my report - based on one query -
In first report tab I need filter different than on tab 2.
How can I achive this?

In BO I could create filter on report level for particular tab - how about Cognos?



Title: Re: One query, 2 tabs - different filters
Post by: Lynn on 14 Oct 2013 12:26:09 PM
I'm not sure what you are referring to by "tabs", but sounds like a query reference might do the trick.

http://www.cognoise.com/index.php?topic=12032.0
Title: Re: One query, 2 tabs - different filters
Post by: lonas on 15 Oct 2013 03:05:55 AM
this is what I need :) many thanks!
Title: Re: One query, 2 tabs - different filters
Post by: lonas on 15 Oct 2013 06:29:53 AM
one more question is - are we sure that at the end there is only ONE query to DB  and my query reference are working on these results?
Title: Re: One query, 2 tabs - different filters
Post by: Lynn on 15 Oct 2013 06:50:04 AM
Nope. There will be multiple queries sent to the database.
Title: Re: One query, 2 tabs - different filters
Post by: lonas on 15 Oct 2013 07:06:31 AM
so how can I achive to send only one query and use resultset on different pages with different filters?

I'm retriving data from procedure.
Title: Re: One query, 2 pages - different filters
Post by: blom0344 on 15 Oct 2013 10:37:24 AM
I think that is essentially the drawback of webbased reporting. Way back when full client reporting software had the advantage of building many different report (layouts, filtered sets) on the same retrieved dataset.  Those were happy days   ;)
Title: Re: One query, 2 pages - different filters
Post by: lonas on 15 Oct 2013 10:54:33 AM
I solve this issue hidding rows based on conditional boolean variable like here: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014221133