COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Gyana on 19 Mar 2012 04:15:12 AM

Title: Casecading Prompt
Post by: Gyana on 19 Mar 2012 04:15:12 AM
Hi,
  I have 2 value promps(p1 & p2).

p1         p2
---------------
A           1
             2
             3
B           4
C           5
             6
My requiremant is if i select p1 it ll shows (None,A,B,C) for 'None' I used static choise.
When i select ' A' it shows (1,2) But when i select None the p2 not showing anything. It should show all p2 values.
Please guide me.

Thanks,
Bapee
Title: Re: Casecading Prompt
Post by: wyconian on 19 Mar 2012 05:14:10 AM
Hi

The problem is you have an unbalanced tree i.e. there are values for p2 that don't have a corresponding p1 value.  So when you have a cascading prompt from p1 to p2 and you select p2 = none there are no corresponding p2 values.

Using static choices allows you to select p1 = none but it doesn't create the relationship between p1 and p2 values.

If there is a hierarchical relationship in your warehouse between p1 and p2 values you can add a 'static member' for p1 called 'none' in the lookup you use for surrogate key substitution.  This will establish the relationship between p1 and p2 values where p1 = none and the cascade prompt should work OK.

The other thing to do remove the cascade prompt and just have 2 simple prompts instead.

Hope that helps
Title: Re: Casecading Prompt
Post by: PRIT AMRIT on 19 Mar 2012 09:15:41 PM
I agree with Wyconian.

There is another work around to get it done though. Use Union to do it.

Create another Query with a Dummy 'PI' query item([P1]='None'. And have your other query items as you have in your existing query. Then do a UNION. Do your cascading on your final query and hence the report.

Hope this should help you.

Thanks
P
Title: Re: Casecading Prompt
Post by: wyconian on 20 Mar 2012 03:25:43 AM
Prit

That sounds like a nice quick work around :)
Title: Re: Casecading Prompt
Post by: Gyana on 22 Mar 2012 01:13:12 AM
Thanks wyconian and PRIT