- IBM Cognos 8 Report Studio Cookbook
- Abhishek Sanghani
- 455字
- 2021-08-06 17:15:49
Overriding crosstab intersection drill-through definition
Let us consider an extension of the last recipe. Let us say the users want to see a Discontinuous crosstab as main report. Instead of just Order methods on column, we need to display Order methods and Product lines as columns.
The rows display Month. Measure is sales quantity.
The drill-through from the intersection has to go to the appropriate report depending on whether the column is Product line or Order method.
Getting ready
Create a new drill-through target that accepts Month and Product line as parameters. We will call it as Drill-3 from now on.
For the main report, we will use the same crosstab report as in the last recipe.
How to do it...
- We will start by creating the discontinuous crosstab on the main report. We already have Order method on columns. Drag Product line also on the crosstab, as column. The report will look like this.
- Now select the intersection cells under the product line column.
- From its Properties, set Define contents to Yes. This will make the intersection empty.
- Unlock the report items. Drag Quantity from Data Items pane again on report, in this empty crosstab intersection.
- You will notice that there is no drill-through for this instance of Quantity.
- Now select this instance of Quantity and define the drill-through definition in the same way as you did previously. The only difference will be that the target report is Drill-3 which accepts Product line and Month.
- Run the report to test both the drill-throughs from intersections.
How it works...
In the last recipe, we saw that creating drill-through link from crosstab intersection needs that we unlock the item and create it from the text item within.
In the case of a discontinuous report, we have different items on columns (product lines and order methods). However, when you select the text item from intersection, Report Studio doesn't distinguish between them.
Hence, we need to select the intersection under one of the column items and set its Define content to Yes. This means we want to override the contents of this intersection and define the contents ourselves.
After changing the property, Report Studio makes that intersection empty. We can then unlock the items and drag any measure/calculation in it. We chose to drag Quantity again. Now Report Studio will distinguish between both the Quantity items (the one under Product line and the one under Order methods).
Finally, we defined drill-through to Drill-3 appropriately.
There's more...
You can use the Define content option also to override the information being displayed. For example, if you want to show "Revenue" under Product lines instead of showing Quantity.
This also gives you the opportunity to differently define styles and conditional styling.
- 突破平面Photoshop UI界面設計與制作剖析
- Ext JS 3.0 Cookbook
- Photoshop CC 2018實用教程
- 中文版3ds Max 2016/VRay效果圖制作實戰基礎教程
- 剪映專業版(電腦版)視頻剪輯全攻略:音效添加+轉場特效+視頻制作
- Procreate繪畫創作從入門到精通
- Google Web Toolkit 2 Application Development Cookbook
- Photoshop+Adobe Camera Raw+Lightroom(攝影后期照片潤飾實戰)
- 中文版Photoshop CS6平面設計從新手到高手(超值版)
- Photoshop CC入門與進階
- 中文版3ds Max 2022基礎教程
- 原片蛻變:Photoshop CC商業修圖必修課
- 中文版Maya 2016基礎培訓教程
- CAD/CAE技術應用
- Building SOA/Based Composite Applications Using NetBeans IDE 6