Flexible Report Design in Cognos Analytics

Upgrades, migrations and audits are just a few reasons why you will periodically need to test and validate every single report being used in your organization. It is during these times that you often realize the enormity of the volume of reports that exist (many of which look identical) and wonder if there are opportunities to consolidate. And when you are working with Cognos Analytics, the answer is almost always YES!

There are various reasons why you may have several reports that are very similar. Below is a list of the top three.

  1. Date filter requirements (monthly, MTD, YTD, and rolling 12 month)
  2. Layout requirements by output type (HTML, PDF, Excel)
  3. Top-ranked and bottom-ranked filtering requirements (top 2 regions by sales, bottom 3 products by profit)

In this blog, we give you step-by-step instructions for consolidating date filter requirements reports.  For instructions on consolidating layout and top-rank/bottom-ranked requirements reports, download our whitepaper.

Cognos Upcoming Webinars

Data filter requirements

One of the huge benefits of sourcing Cognos Analytics reports from cubes is often the ability to quickly modify the date context. A report author can quickly switch from showing month-to-date, quarter-to-date, year-to-date, rolling eight quarters or an endless number of other date range options as those are typically defined in the cube and accessible via drag and drop. Unfortunately, a cube is not always available or practical for many business cases.

Relational data sources typically require the report author to create date range variations by using detail filters, which often results in multiple instances of the exact same report with the only difference being the date filters. Let’s look at one example and find a creative solution that will accommodate several user selected date range options in a single Cognos report.

Business requirement

Create a visualization that shows monthly revenue or gross profit with the ability to select a MTD, YTD or rolling 12 month time frame.

We want to give the end user the ability to select the time frame as well as the metric to evaluate performance.

Solution
  1. Create a Column Chart using the GO Sales (query) sample package.
  2. Drag a Query calculation from the Toolbox into the Default Measure drop zone with the following expression:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 1
  3. Since our sample data is aged we will simulate a current data set by adding five years to the data set. Navigate to the query and add the following query calculation named Date to the Data pane:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 2
  4. Eliminate future data by adding the following detail filter:
    FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 3
  5. Select the Data tool, expand GO Sales (query) > Sales (query) > Time and drag Month number into the data pane.
  6. Navigate back to the report page.
  7. Drag a query calculation from toolbox into the column chart Series drop zone with the following expression: FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 4
  8. Select the Data tool and nest GO Sales (query) > Sales (query) Time > Month below Year.
  9. Select the Month chart node member and Edit Layout Sorting using the on-demand toolbar.
  10. Sort by Month number:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 5
  11. Create the following filter to accommodate our three-date range options:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 6
  12. Drag a Table from the Toolbox into the work area in the front of the chart.
  13. Keep the default 2 columns by 1 row selections and deselect the Maximize width.
  14. Drag a Value prompt into the left cell of the table.
  15. Choose Use existing parameter and select Time. Click Finish.
  16. Add the following Static choices to populate the value prompt from the Properties pane:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTIC 7
  17. Set the Default selections property to MTD.
  18. Set the Auto-submit property to Yes.
  19. Drag a Value prompt into the left cell of the table.
  20. Choose Use existing parameter and select Measure. Click Finish.
  21. Add the following Static choices to populate the value prompt from the Properties pane:FLEXIBLE REPORT DESIGN IN COGNOS ANALYTICS 8
  22. Set the Default selections property to Revenue.
  23. Set the Auto-submit property to Yes.
  24. Run the report and test the filters.

MTD monthly revenue

MTD Monthly Revenue 1

YTD monthly revenue

MTD Monthly Revenue 2

Rolling 12 months monthly gross profit

Rolling 12 Months Monthly Gross Profit

In summary

Our design accommodates six report variations (3 date ranges x 2 measures) in a single report.

Next steps

Use the steps described above for consolidating date filter requirements reports.  For instructions on consolidating layout and top-rank/bottom ranked requirements reports, download our whitepaper.

 

Connect with Senturus

Sign up to be notified about our upcoming events

Back to top