COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: ChrisF79 on 10 Apr 2014 02:51:20 PM

Title: How to drill down in Report Studio?
Post by: ChrisF79 on 10 Apr 2014 02:51:20 PM
I have a crosstab report with the sales rep name in the rows.  I want to make it so that if someone clicks on the salesrep's name, it shows the customers in the same crosstab.  How do I go about doing that?

Here's a screenshot of what I'm doing:

(http://i.imgur.com/2vYDSMt.jpg)

Notice I have SalesRepCombo(ShipTo) in the crosstab now.  I want someone to be able to click on a rep anme and have the column be replaced by ShiptoCustCombo - Long Name instead.

I've done it before by making a second report and passing a parameter.  Any way of doing it right in this same report?

Thanks
Title: Re: How to drill down in Report Studio?
Post by: charon on 11 Apr 2014 03:31:22 AM
Hi Chris,

one way might be to create a data item with a "if (?pt_choice? = 1) then ([SalesRepCombo(ShiptTo)]) else ([ShipCustCombo]) and use this for rows.
You then have to create a prompt/ button to choose which one you want to see. Of course it should be possible to use javascript for passing this parameter as well. For great javascripts in cognos check out : http://cognospaul.com/category/javascript/ , maybe you will find there the solution.

regards
charon
Title: Re: How to drill down in Report Studio?
Post by: Raghuvir on 24 Apr 2014 10:03:50 AM
Hi Chris,

As per the screenshot shared, you are using a dimensionally modelled package.

What you need to do is enable the drill behaviour of the report. you can do this by going to

Data>>Drill Behaviour>>Allow Drill up and Drill down

You need to check Allow Drill up and Drill down to enable the functionality.

Regards,

Do applaud if the information was helpful  :)