COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: srivalli on 16 Nov 2010 02:25:27 PM

Title: logic for selecting all values in a table
Post by: srivalli on 16 Nov 2010 02:25:27 PM
Hi all,

I need logic correction. Requirement is..

Column has c1 and c2 values.we are using static choices prompt with options c1, c2, c1+ c2.if user selects c1, c1 values should be displayed. if he selects c2 values should be displayed. if he selects c1+c2, both c1 and c2 values should be displayed.

use value for c1+c2 is 9999

Filter condition is
IF (?parameter? = 9999  ) THEN
    ([Product line code] = 'all' )
ELSE
    ( [Product line code] = ?parameter? )

it is not taking all option. could you please correct the logic. if it cannot be achieved through static choices, how to do with value prompt..help me please.

Thank you

Title: Re: logic for selecting all values in a table
Post by: blom0344 on 16 Nov 2010 02:41:51 PM
Are you not making this too complicated? Simply define a multi select value prompt through an additional prompt query. The user can then select c1 or c2 or both.  Then feed the associated prompt parameter to the data query..