PacktLib: IBM Cognos 10 Report Studio Cookbook, Second Edition

IBM Cognos 10 Report Studio Cookbook Second Edition


About the Authors

About the Reviewers


Report Authoring Basic Concepts


Summary filters and detail filters

Sorting grouped values

Aggregation and rollup aggregation

Implementing if-then-else in filters

Formatting data – dates, numbers, and percentages

Creating sections

Hiding columns in crosstabs

Prompts – display value versus use value

Advanced Report Authoring


Adding cascaded prompts

Creating a nested report – defining the master-detail relationship

Writing back to the database

Adding conditional formatting

Formatting negative values

Playing with conditional styles

Using conditional blocks – many reports in one

Defining drill-through from crosstab intersection

Overriding crosstab intersection drill-through definitions

Using JavaScript Files – Tips and Tricks


Defining dynamic default values for prompts

Changing the title of the value prompt

Validating textbox prompts

Showing/hiding prompt controls at runtime

Selecting and submitting values automatically

Manipulating the Date Time control

Creating a variable width bar chart using JavaScript

The Report Page – Tips and Tricks


Showing images dynamically (traffic light report)

Handling the missing image issue

Dynamic links to an external website (a Google Maps example)

Alternating drill links

Showing tooltips on reports

Merged cells in Excel output

Worksheet name in Excel output

Conditional column titles

Working with XML


Changing drill targets quickly

Copying and pasting drill links

Removing references to old packages or items

A hidden gem in XML – row level formatting

Writing Printable Reports


Controlling the container size and rows per page

Eliminating orphan rows

Defining page orientation and size (and overriding them for one page)

Avoiding page title repetition

Horizontal pagination

Page numbering with horizontal pagination

Choosing the output format from a prompt

Choosing the right colors

Defining page sets

Cautions about HTML items and JavaScript files

Displaying the report name in a footer

Working with Dimensional Models


List report or crosstab report

Filtering rows or columns

Filtering a whole report

Adding a prompt into Slicer and its limitations

Achieving zero suppression

Aggregation versus preaggregated values

The roleValue() function

Swapping dimensions using MUN manipulation

Working with Macros


Adding data-level security using the CSVIdentityMap macro

Using the Prompt macro in native SQL

Making prompts optional

Adding a token using macros

Using the prompt() and promptmany() macros in query subjects

Showing the prompt values in a report based on security

String operations to get it right

Showing a username in the footer

Using Report Studio Efficiently


Using Report Studio's environmental options

Copying and pasting partial or full reports

Upgrading report specifications

Setting the execution timeout

Setting the maximum row limit

Handling slow report validation

Capturing a query

Browsing values from the data expression window

Viewing the page structure

Picking up and applying styles

Using the "grab them all" practice

Using Default Data Formats

Working with Active Reports


Building tabbed reports

Working with Decks

Working with the Data Deck

Filtering data using Data Check Box Group

Charts and New Chart Features


Chart formatting options

Converting a chart to another chart type

Working with pie charts

Getting started with bullet charts

Getting started with scatter charts

More Useful Recipes


Timing report execution

Missing values versus zero values

Overriding data formatting using patterns

Setting up conditional drill-throughs

Dynamically switching between reports using an iFrame

Freezing column titles

Best Practices


Reducing the number of query items

Highlighting hidden items

Using relative paths for images

Controlling JavaScript file execution

Customizing classes for report-wide effect

Creating templates

Regression testing

Commenting the code

Naming data containers (lists, crosstabs, and charts) for use in Cognos Workspace

Enabling a larger worksheet size for Excel 2007

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References

Recommendations and References