COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Nithesh UC on 31 May 2013 04:40:39 AM

Title: Drill through based on the condition
Post by: Nithesh UC on 31 May 2013 04:40:39 AM
Hi All,

I have one scenario where i need to drill through to the other report when the condition is satisfied.
FYI: When the employee itself is a manager then i need to display the details of complete employee details.

Any help/suggestion would be of great!

Thanks,
uC
Title: Re: Drill through based on the condition
Post by: RKMI on 31 May 2013 01:00:24 PM
Hi uC,

If you have a list of managers then you can make a render varible, use marco which looks at user login if true/ false. After which you need to creat a drillable objectis non drillable when employee is not on the manager list else if he is show up on the list render the a copied object which has drill through enabled. *Note: Object can be text feild or data item value.

Drawback to this is when manager runs the report in backgroud and send email report over to employee the link will remain active. To disable this you need to lock the drill target report in premission and deny the employee from that level access.

I hope this makes sense.

Thanks,
RK

Title: Re: Drill through based on the condition
Post by: Satheesh on 03 Jun 2013 12:58:15 AM
Hi,
You can use Conditional Blocks.
1. Create a String or Boolean variable with the condition EMPcode = mangr
2. In report page List drag column (on which you apply). Unlock the report drag two Conditional blocks  in that column assign to Boolean variable One Condition Block is for YES another is For No. Copy the data item on which u apply drill through and paste it into 2 conditional blocks.
3. Select YES conditional block apply drill thru.


You can get the output like who ever Manager then only drill thru is apply.


Regards
Sateesh
+91 98672 00664
Title: Re: Drill through based on the condition
Post by: RKMI on 03 Jun 2013 10:42:57 AM
Hi Satheesh,

Thanks for spelling out the steps, thats the same solution I provided in trems of logic.  :o

Thanks,
RK
Title: Re: Drill through based on the condition
Post by: Nithesh UC on 05 Jun 2013 12:34:38 AM
Thanks both of you guys..


That solution really make sense!