Cognos 8 BI中如何實現關聯報表

 

在Cognos 8 BI中實現報表參數傳遞、鑽取,只需要設置Drill Throughs的屬性,即可將參數從主報表傳達到關聯的目標報表。

還是以一個簡單的例子來演示整個的實現過程。示例中使用的數據和Package都是Cognos自帶的Sample數據,關於如何創建和導入Sample數據,請參考Cognos自帶的幫助(Cognos(R) 8 Business Intelligence Installation and Configuration Guide)。

1.創建子報表

在Report Studio中創建一個list類型的報表,從GO Sales and Retailers包中的Products表中插入ProductName,Product Cost等列作爲報表數據。

在Page Explorer中新建一個Prompt Page,並在其中插入一個Value Prompt,在Prompt Wizard中新建一個Parameter,Package item選擇[gosales_goretailers].[Products].[Product name],設置或者創建該parameter對應的query。

2.創建主報表

在Report Studio中新建一個list類型的報表,從GO Sales and Retailers包中的Orders表中插入Product Name,Quantity等列。

選中Product Name列的值部分,設置屬性的Data->Drill Throughs,Target Report設置爲第一步中創建的子報表,Action選擇Run the report,Format選擇HTML,根據需要選擇Open in new window。
Cognos Drill Throughs 1

然後編輯Parameter信息,Method使用Pass data item value,value使用Product Name。
Cognos Drill Throughs 2

3.運行主報表

可以看到Product Name列都是以超鏈接的形式顯示的。
Cognos Drill Throughs 3

4.跳轉到子報表

點擊主報表的超鏈接,自動跳轉到子報表。例如,點擊Bear Edge,可以發現子報表的Parameter已經應用,只顯示了一條記錄。
Cognos Drill Throughs 4

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章