COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: sbk12 on 26 Apr 2013 11:16:00 AM

Title: How to use multiple conditional variables on single page
Post by: sbk12 on 26 Apr 2013 11:16:00 AM
Hi All -

I have a single page report with several sections, each of which have an associated "indicator" (green light or red light image) that is rendered based on a conditional variable.

The problem I am having is that each conditional variable is based on components from a different query, but I can only assocate a single query to the page (Query property of the Page object).

Can someone tell if there is a way to use multiple conditional varables - each derived from a different query - on the same page?

Thanks in advance!
Title: Re: How to use multiple conditional variables on single page
Post by: yossiea on 01 May 2013 10:11:20 AM
Have you tried using an Advanced Conditional Variable?
Title: Re: How to use multiple conditional variables on single page
Post by: CognosPaul on 01 May 2013 10:24:07 AM
Try associating each query to a singleton, and placing the sections in the singletons.
Title: Re: How to use multiple conditional variables on single page
Post by: sbk12 on 02 May 2013 10:41:54 AM
Using singletons did the trick.  Thanks so much for the tip!