COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Captain on 09 Jan 2015 06:41:06 PM

Title: Page Number Query
Post by: Captain on 09 Jan 2015 06:41:06 PM
I have 1 single query that I'm repeating on multiple pages. I want to have a conditional filter so that each page would show different result sets. How do I have a "page number" data item or something similar to use in my conditional where clause filter?

Thank you in advanced.


PS: I'm expecting to have up to 20 pages, so no, I'm afraid having 20 different queries (with custom filter) would not be the ideal answer for me.
Title: Re: Page Number Query
Post by: kc9400 on 12 Jan 2015 05:25:57 AM
Hmmm maybe adding text items to each page which shows the page number?

or creating 20 different data items and then putting each one on each relevant page?

Title: Re: Page Number Query
Post by: CognosAnalytics on 15 Jan 2015 05:28:16 PM
Hello Captain,
Is there some logic that you need to follow for page splits. Example: Data for Department X on Page 1, Department Y on Page 2 etc.
If you have such a condition available, then you can create a data item with the case logic for the same.
CASE Department
WHEN X THEN 'PAGE1'
WHEN Y THEN 'PAGE2'
END
Finally, use this data item to setup Page Breaks in the page explorer.

-Cognos810