Cognos Analytics Tutorial for Beginners
Cognos Analytics Tutorial for Beginners
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 1 / 544
Table of Contents
3. Reports 8. Dashboards
5. Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 2 / 544
Introduction
1. Introduction
1.1 About this Tutorial
1.2 Important sources
1.3 Motivation
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 3 / 544
1.1. About this Tutorial Introduction
1. Introduction
1.1. About this Tutorial
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 4 / 544
1.1. About this Tutorial Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 5 / 544
1.2. Important sources Introduction
1. Introduction
1.2. Important sources
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 6 / 544
1.2. Important sources Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 7 / 544
1.2. Important sources Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 8 / 544
1.3. Motivation Introduction
1. Introduction
1.3. Motivation
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 9 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 10 / 544
1.3. Motivation Introduction
Example Scenario
You perform data analysis for a large company that produces and several
kinds of dairy products in different regions.
The decision makers plan to upgrade production at some place. But they
need information on which location, and which product type to focus on.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 11 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 12 / 544
1.3. Motivation Introduction
Problems arise:
Underlying data may change
New sources may be involved later
The evaluation may need to be modified, or repeated later
How much rework is needed in each case?
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 13 / 544
1.3. Motivation Introduction
Problems arise:
Visualization may require additional software
Underlying data may still change
This may be needed many times, so the procedure should be as
streamlined as possible
We may have to tamper with underlying queries and the visualizing
documents at the same time
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 14 / 544
1.3. Motivation Introduction
Example (1): You come up with a diagram telling total revenues per
product, per region.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 15 / 544
1.3. Motivation Introduction
Example (2): You come up with a solution that can be filtered by time,
regions, products in various ways.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 16 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 17 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 18 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 19 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 20 / 544
1.3. Motivation Introduction
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 21 / 544
Basics
2. Basics
2.1 About Cognos Analytics
2.2 User Interface
2.3 Uploading a file
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 22 / 544
2.1. About Cognos Analytics Basics
2. Basics
2.1. About Cognos Analytics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 23 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 24 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 25 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 26 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 27 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 28 / 544
2.1. About Cognos Analytics Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 29 / 544
2.2. User Interface Basics
2. Basics
2.2. User Interface
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 30 / 544
2.2. User Interface Basics
Username and password shall be provided.
Note
User privileges determine what functionalities are available. If some are not
(e.g. missing menu item), seek help.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 31 / 544
2.2. User Interface Basics
The screen is separated into areas:
Welcome screen (Work area or Canvas if editing a document)
Application Toolbar (top)
Navigation panel (left)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 32 / 544
2.2. User Interface Basics
Figure: Welcome screen selected in the Switcher Menu (middle), and more menu
buttons on the right
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 33 / 544
2.2. User Interface Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 34 / 544
2.2. User Interface Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 35 / 544
2.2. User Interface Basics
Figure: Options
available in the New
menu
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 36 / 544
2.2. User Interface Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 37 / 544
2.2. User Interface Basics
My Content
Owned and only available to current user
Recommended to work here
Team Content
Available to most users, everyone can access, modify
Some samples (for tutorial purposes) are also installed here
Recommended not to modify, copy everything from here to
My Content if needed
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 38 / 544
2.2. User Interface Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 39 / 544
2.3. Uploading a file Basics
2. Basics
2.3. Uploading a file
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 40 / 544
2.3. Uploading a file Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 41 / 544
2.3. Uploading a file Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 42 / 544
2.3. Uploading a file Basics
https://community.ibm.com/community/user/businessanalytics/
blogs/steven-macko/2017/06/19/
guide-to-ibm-cognos-analytics-sample-data-sets
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 43 / 544
Reports
3. Reports
3.1 The Report document type
3.2 Preparations for a Report
3.3 Creating our first Report
3.4 Reporting Interface
3.5 Sorting, Aggregations, Filters
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 44 / 544
3.1. The Report document type Reports
3. Reports
3.1. The Report document type
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 45 / 544
3.1. The Report document type Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 46 / 544
3.1. The Report document type Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 47 / 544
3.1. The Report document type Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 48 / 544
3.2. Preparations for a Report Reports
3. Reports
3.2. Preparations for a Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 49 / 544
3.2. Preparations for a Report Reports
Steps:
1 Upload an XLSX file as data source
2 Create a Data Module based on the XLSX file
3 Create a new Report with specific template, based on the Data
Module
4 Create a Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 50 / 544
3.2. Preparations for a Report Reports
Data source for this example is the Banking Loss Events data set:
List of financial losses for a fictitious large multi-national bank
A single table with fields in the first row
Each record is an event
https://community.ibm.com/community/user/businessanalytics/
blogs/steven-macko/2017/06/19/
guide-to-ibm-cognos-analytics-sample-data-sets
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 51 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 52 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 53 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 54 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 55 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 56 / 544
3.2. Preparations for a Report Reports
Figure: Dialog for browsing target directory for selected files. At this point, we
can choose whether to copy or move
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 57 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 58 / 544
3.2. Preparations for a Report Reports
Second method:
1 Navigation Panel, New icon > choose Data module
2 Data source(s) must be selected in a dialog
3 Find Banking loss events.xlsx, then click OK
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 59 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 60 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 61 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 62 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 63 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 64 / 544
3.2. Preparations for a Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 65 / 544
3.2. Preparations for a Report Reports
Figure: Hovering over the file reveals the Ellipsis icon, clicking on it shows the
context menu for the file
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 66 / 544
3.2. Preparations for a Report Reports
Figure: The file name at the top of the Properties pane is an editable text field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 67 / 544
3.3. Creating our first Report Reports
3. Reports
3.3. Creating our first Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 68 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 69 / 544
3.3. Creating our first Report Reports
We can select a Template and a Theme for the Report. Templates have
two purposes:
Providing an initial layout
Deciding if we want an Active Report: each ordinary Template has an
Active Report equivalent
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 70 / 544
3.3. Creating our first Report Reports
Themes determine appearance:
Default colors, fonts, etc.
Note that
Note
Some Themes and particular Report may not be contrasting enough. Try
new Themes with caution.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 71 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 72 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 73 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 74 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 75 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 76 / 544
3.3. Creating our first Report Reports
Create a new Visualization by either method:
First method: Click the Plus icon in the middle of the Canvas, which
is a placeholder for a new element > Pinned elements appear >
Select Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 77 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 78 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 79 / 544
3.3. Creating our first Report Reports
Choose the Stacked Column Visualization and click OK
Design window appears on the Canvas, as the newly created
Visualization is selected
If the Properties Pane is visible on the right, it shows details on the
selected Report element
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 80 / 544
3.3. Creating our first Report Reports
Clicking on the area near the Visualization deselects it, and selects
the single Table Cell in the background (or the Page Body, if the first
presented method of Visualization creation was used)
The Visualization still takes a significant portion of the Canvas
The Properties of the Table Cell are now shown on the right
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 81 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 82 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 83 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 84 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 85 / 544
3.3. Creating our first Report Reports
Note
Formats other than HTML do not support particular
Report features.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 86 / 544
3.3. Creating our first Report Reports
Figure: Report view page with tooltip for the largest green bar
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 87 / 544
3.3. Creating our first Report Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 88 / 544
3.4. Reporting Interface Reports
3. Reports
3.4. Reporting Interface
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 89 / 544
3.4. Reporting Interface Reports
Head back to the Report and observe that a different On-demand
Toolbar appears depending on which element is selected:
Visualization:
Table Cell:
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 90 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 91 / 544
3.4. Reporting Interface Reports
We can also select each Data Item itself:
Click the field name in the Visualization
Will be used later to change aggregation method
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 92 / 544
3.4. Reporting Interface Reports
As soon as fields were assigned to the Visualization, a third icon appeared
in the Content Pane: Data Items:
Lists queries associated with Report elements, and their used fields
Queries are behind all Visualizations and other elements displaying
data from the data source (currently the Banking Loss Events
Data Module)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 93 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 94 / 544
3.4. Reporting Interface Reports
Figure: When Pages is selected, the interface for editing pages is shown
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 95 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 96 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 97 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 98 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 99 / 544
3.4. Reporting Interface Reports
Show generated SQL/MDX :
Lists all queries used in the Report
Selecting a query shows its SQL (in some instances MDX) code
Native SQL and IBM Cognos SQL can be selected, the latter is a bit
more compact
Note: exact content may depend on Report history (previous
deletions or modifications, even reverted)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 100 / 544
3.4. Reporting Interface Reports
Observe how the SQL code is the business logic behind the Stacked
Column Visualization:
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 101 / 544
3.4. Reporting Interface Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 102 / 544
3.4. Reporting Interface Reports
The Application Toolbar is also special for reports, tools of interest are at
the top left:
Save icon (floppy disk)
Edit/Preview icon (pencil): toggles between Edit and Preview
mode:
different from page view modes design, preview and structure
Preview mode displays final result, click again to Edit
usually much faster than running the Report
Undo/Redo for editing
Run options: HTML is recommended
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 103 / 544
3.5. Sorting, Aggregations, Filters Reports
3. Reports
3.5. Sorting, Aggregations, Filters
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 104 / 544
3.5. Sorting, Aggregations, Filters Reports
Sorting:
Order of items in Visualizations is not always what we want
We can sort at each instance (like data item in a Visualization):
ascending
descending
using default ordering
Sorting is usually a viewing option, not reflected in the query of the
Visualization
Sorting at Data Module level: we can define custom order for each
category data field (see Section 7)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 105 / 544
3.5. Sorting, Aggregations, Filters Reports
Aggregations:
Calculating one numeric value based on many
Total (SUM) is the simplest and default in most cases
There are others: AVG, MAX, MIN, COUNT, variance, median, etc.
Aggregation can be selected each time a measure field is displayed
Aggregations are reflected in the query of the Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 106 / 544
3.5. Sorting, Aggregations, Filters Reports
Filters:
In the First Report, the Visualization was based on all data records
Filter: only select specific records for the basis of the Visualization
Filters can also be defined at Data Module level
Filters are reflected in the query of the Visualization, in a specific way
for each filter type
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 107 / 544
3.5. Sorting, Aggregations, Filters Reports
Filter types:
Detail Filters: work on individual records
Before auto aggregation: analogous to WHERE in SQL, the single
data records can be directly filtered
After auto aggregation: analogous to HAVING in SQL, the grouped
and aggregated fields can be referred
Summary Filter: more complex logic, filtering based on one or more
summary (aggregation) values
Note
If we do not specify, on Filters we mean Detail Filters evaluated before
aggregation. These are simple logical statements determined for each
data record before any aggregations.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 108 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 109 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A
Create a new Report with 2 columns Template and Teal Theme
Use the data source Banking Loss Events
Save the Report as Report 1A
Give the following title to the report:
BANKING LOSS EVENTS: VISUALIZATIONS
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 110 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: This template provides text boxes for the titles of both columns and the
whole page itself
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 111 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Insert a Stacked Bar Visualization to the left column where Year is
over the Y-axis, the sum of Net Loss is over the X-axis, and colors
are for Region
Type the title NET LOSS PER YEAR AND REGION above the
Visualization
Sort values of Year into ascending, and Region into descending order
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 112 / 544
3.5. Sorting, Aggregations, Filters Reports
Create the visualization as follows:
Assign the fields to the three roles as shown (see preview)
Note that this is a transposed version of the example problem
Simply edit the Text item provided by the Template to provide the
title
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 113 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Visualization (or any Report element) might take an unacceptably
large portion of the screen
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 114 / 544
3.5. Sorting, Aggregations, Filters Reports
Note
Inserting another element (like in the
second column) may alter the
appearance again. It is advised to
apply cosmetics at the end of Report
editing.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 115 / 544
3.5. Sorting, Aggregations, Filters Reports
2 From the On-demand Toolbar, select the Sort icon and apply the
required sorting
Note
Currently we cannot sort by measure fields in a Report this way.
For example, we cannot order the displayed bars by length.
In contrast, Dashboards (see Section 8) allow this option.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 116 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The small blue triangles near field names indicate the sorting option
applied to that field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 117 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
In the Stacked Bar Visualization:
Change the viewing format of X-axis labels for Net Loss to million
USD
Temporarily change the aggregation method of Net Loss from Total
to Max, and observe the results
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 118 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 119 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 120 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 121 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The length of the bars is determined by the sum, or the maximum of
event Net Loss values for the particular Year and Region - note how the scale
of the X-axis changes
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 122 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Filter the data set the Stacked Bar Visualization is based on:
Filter by Year: only even years shall be considered (2008 , 2010 ,
2012 , 2014 )
Filter by Region: only EMEA and North America shall be considered
Filter by Status: only Approved status shall be considered
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 123 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 124 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The content of a Custom Filter editor dialog depends on the field data
type (textual, numeric, etc.), but a more complex logic requires Advanced Filters
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 125 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: Filters for Year and Region exclude some bars, but do not change the
remaining ones at all
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 126 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The filters are reflected in the query for the Visualization under the WHERE
statement
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 127 / 544
3.5. Sorting, Aggregations, Filters Reports
Filtering for Status is a bit different, because it does not appear among
fields already used for the Visualization - therefore cannot be selected as
before.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 128 / 544
3.5. Sorting, Aggregations, Filters Reports
Note
In most cases, representing a field as Extra Data prior to filtering based on
it is not required, although it is a good practice.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 129 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The total of Net Loss values, but only for events with Approved value
for Status - Note that the presence of the filter for Status is not apparent from
the Visualization, such filters must be kept in mind when interpreting results
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 130 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The filter for Status appears in the query in the exact same manner as for
the other fields
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 131 / 544
3.5. Sorting, Aggregations, Filters Reports
How to access:
From the On-demand Toolbar, select the Filter icon
Choose Edit Filters... to access the Filters dialog
You can add, remove or modify all filters for the Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 132 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 133 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 134 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 135 / 544
3.5. Sorting, Aggregations, Filters Reports
Note
Expression includes (’Approved’) does not work in this case, this is a
display syntax for Custom Filters.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 136 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: Dragging the Status field from the Source tab works, although it results
in an obfuscated definition
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 137 / 544
3.5. Sorting, Aggregations, Filters Reports
Whenever fields already used are required for an Advanced Filter, like
Year, Region or Net Loss, it is better to access them from the
Data items tab.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 138 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: Once Status is included as Extra Data, it can be inserted from the
Data items tab, resulting in the much shorter [Status] expression.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 139 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Validate button (white tick on green background) checks whether the
expression is syntactically correct, and displays errors below
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 140 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 141 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Insert a Packed Bubble Visualization to the right column where:
The bubbles are determined by the Business field
Bubble sizes are determined by Estimated Gross Loss
Bubble colors are determined by the field Risk Category
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 142 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Packed Bubble Visualization displays a bubble for each Business
and Risk Category pair, scaled by total Estimated Gross Loss - note the
minimum and maximum values displayed at the top right
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 143 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Add a filter to the Packed Bubble Visualization:
Consider the following four Risk Category values:
Clients, Products and Business Practices
Execution, Delivery and Process Management, External Fraud,
Internal Fraud
Only include data for these four risk categories in the Visualization
and ignore everything else
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 144 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 145 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: Categories have a convenient filter editing interface provided that the
number of values is not too high, therefore Custom Filters are usually
recommended when possible
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 146 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Packed Bubble Visualization after the filter and sorting are done for
Risk Category
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 147 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Add another filter to the Packed Bubble Visualization:
Filter values based on Year
Only data from 2013 or later shall be considered
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 148 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 149 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 150 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Packed Bubble Visualization after the filter is done for Year
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 151 / 544
3.5. Sorting, Aggregations, Filters Reports
Exercise 1A (cont’d)
Add a third filter to the Packed Bubble Visualization:
Filter values based on the measure Estimated Gross Loss
Only events having a loss not greater than 300,000 shall be
considered for the Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 152 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 153 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Packed Bubble Visualization after the Custom Filter for
Estimated Gross Lost is activated
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 154 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 155 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: We can verify from the generated SQL code that the filter is indeed
applied to the aggregated values instead of each event individually
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 156 / 544
3.5. Sorting, Aggregations, Filters Reports
The problem is that the Estimated Gross Loss is a measure which is
aggregated, and filters for it are by default applied After auto
aggregation. This can be verified under Edit Filters...
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 157 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: We can see from the generated SQL code that the filter now applies
correctly
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 158 / 544
3.5. Sorting, Aggregations, Filters Reports
Figure: The Packed Bubble Visualization after the last filter, set correctly to apply
before aggregation
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 159 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 160 / 544
3.5. Sorting, Aggregations, Filters Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 161 / 544
Summary Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 162 / 544
Tabular data
4. Tabular data
4.1 Lists
4.2 Crosstabs
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 163 / 544
Tabular data
These work like ordinary Visualizations in many aspects, but have special
characteristics.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 164 / 544
4.1. Lists Tabular data
4. Tabular data
4.1. Lists
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 165 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 166 / 544
4.1. Lists Tabular data
Exercise 1B
Create a new Report:
Use the 2 columns Template with Red Theme
Assign the data source Banking Loss Events
Save the Report as Report 1B
Give the following title to the report:
BANKING LOSS EVENTS: LISTS
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 167 / 544
4.1. Lists Tabular data
Figure: Appearance of the Report with 2 columns Template and Red Theme,
after performing the mentioned initial steps
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 168 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Add a new List to the left column in the report, with the following fields
displayed (from left to right):
Risk Category
Risk Sub-Category
Net Loss
Recovery Amount
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 169 / 544
4.1. Lists Tabular data
To add a List to the Report, we may:
Click the placeholder Plus icon, which pops up the List option, as it
is Pinned in the Toolbox by default
Or, Drag & Drop List from the Toolbox directly to the Canvas
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 170 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 171 / 544
4.1. Lists Tabular data
Figure: Design and Preview mode view of the List after all four fields are assigned
in the correct order - for example, the first row display that a total of 22.8 million
Net Loss and a total of 6 million Recovery Amount were present in the
Risk Category named Clients, Products and Business Products, under
subcategory Product Flows
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 172 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 173 / 544
4.1. Lists Tabular data
Note
There are various options for a List under its Properties Pane which alter
visual appearance, including Rows per page.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 174 / 544
4.1. Lists Tabular data
Figure: In case the List does not fit in a single page when viewed, we can navigate
with buttons - the right image is the only row which spanned onto the second
page
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 175 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Apply the following options to the newly created List:
Temporarily sort by Risk Category and Risk Sub-Category
ascending and observe the results
Group by the field Risk Category and then sort by
Risk Sub-Category ascending
Display the total of Net Loss, but the average of Recovery Amount
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 176 / 544
4.1. Lists Tabular data
To sort by a column:
1 Select it in the List
2 In the On-demand Toolbar, click the
Sort icon and choose Ascending
3 Note that the small blue arrow right of
the List column field name in Design
view mode indicates a sorting setting
Note
Repeating the procedure for Risk Sub Category would end up sorting
only by that field, not both.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 177 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 178 / 544
4.1. Lists Tabular data
Figure: Under the Sort icon we could choose Edit Layout Sorting... to set a
hierarchical sorting rule (additional sorting criteria to resolve ties)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 179 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 180 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 181 / 544
4.1. Lists Tabular data
Figure: Now each Risk Category value appears in one merged cell across all
corresponding columns
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 182 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 183 / 544
4.1. Lists Tabular data
Figure: Now, in the column of Recovery Amount, the average for all events
corresponding to the Risk Category and Risk Sub Category values is
displayed instead of the sum for these events
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 184 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Further enhance the appearance of the List by the following:
Display 200 rows per page, so that the whole List fits
Set all numbers formatted into 1000s and zero digits after the
decimal point
Give a meaningful title to the List
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 185 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 186 / 544
4.1. Lists Tabular data
To change number displaying format:
1 Select the appropriate column(s) of the List
2 In the Properties Pane, under DATA, choose Data format
3 Set Number of decimal places to 0 and Scale to -3
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 187 / 544
4.1. Lists Tabular data
Figure: The title Total Net Loss and Average Recovery Amount was given
to the List
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 188 / 544
4.1. Lists Tabular data
Figure: The SQL code generated for the List in the left column of the Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 189 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Create a new List in the right column of the Report displaying the
following data (from left to right):
Business
Status
Estimated Gross Loss
Recovery Amount
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 190 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 191 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Apply the following to the newly created List:
Group by Business
Sort by both Business and Status
Display the totals of Estimated Gross Loss and Recovery Amount
at the bottom of the List
Align text to the left in the category fields, to the right in the
measure fields
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 192 / 544
4.1. Lists Tabular data
These tasks can all be done after selecting the appropriate columns in the
List, then using the icons on the On-demand Toolbar as follows:
Use the Group/Ungroup icon to group by Business
Use the Sort icon to sort by Business and Status
To display a summary at the bottom of a list, select columns
Estimates Gross Loss and Recovery Amount > choose the
Summarize icon > click Total
To align texts, select the appropriate cells, then choose the
Horizontal alignment > click either Left or Right
Note
For selection purposes, the header, the body and the summary areas are all
distinct and can be formatted independently for each column.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 193 / 544
4.1. Lists Tabular data
Figure: Options for the Horizontal alignment and Summarize icons in the
On-demand Toolbar
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 194 / 544
4.1. Lists Tabular data
Figure: Preview of the List after grouping, sorting, summarizing and alignment
tasks
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 195 / 544
4.1. Lists Tabular data
Figure: Design view mode after grouping, sorting, summarizing and alignment
tasks
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 196 / 544
4.1. Lists Tabular data
Exercise 1B (cont’d)
Display the following two new Calculations at the end of the List:
Difference of Estimated Gross Loss and Recovery Amount
Ratio of Recovery Amount and Estimated Gross Loss
Finally, give a meaningful title to the second List.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 197 / 544
4.1. Lists Tabular data
Calculations:
Expression involving other fields resulting in numeric or textual data
Can be introduced in Data Module directly and used as ordinary fields
in a Report
For Lists, we can easily add simpler expressions as Calculations based
on one or two other columns in the List
From the On-demand Toolbar, use the Insert Calculation icon
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 198 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 199 / 544
4.1. Lists Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 200 / 544
4.1. Lists Tabular data
Final steps:
Column order can be changed using Drag & Drop
A name for the List could be:
Estimated Gross Losses and Recovery Amounts
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 201 / 544
4.1. Lists Tabular data
Figure: The Report from Exercise 1B - some rows and the summaries at the
bottom are not visible, and the other page of the right List is only accessible by
the Page down or Bottom navigation buttons
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 202 / 544
4.1. Lists Tabular data
Figure: The SQL code generated for the List in the right column of the Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 203 / 544
4.2. Crosstabs Tabular data
4. Tabular data
4.2. Crosstabs
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 204 / 544
4.2. Crosstabs Tabular data
Note
Crosstabs accept measures in columns or in rows rather than in the
intersection area.
In that case, the intersection area may take no fields.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 205 / 544
4.2. Crosstabs Tabular data
Exercise 1C
Create a new Report:
Use the 2 columns Template with Teal Theme
Assign the data source Banking Loss Events
Save the Report as Report 1C
Give the following title to the report:
BANKING LOSS EVENTS: CROSSTABS
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 206 / 544
4.2. Crosstabs Tabular data
Figure: Appearance of the Report with 2 columns Template and Teal Theme,
after performing the mentioned initial steps
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 207 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Add a Crosstab to the left column:
Rows are determined by Business, sort by ascending
Columns are determined by Year, sort by ascending
Values are determined by total Net Loss
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 208 / 544
4.2. Crosstabs Tabular data
Management of Crosstabs is very similar to the management of Lists:
Create either from the toolbox or by the Plus icon in the center, as
Crosstab is Pinned by default
Add fields by Drag & Drop, or double-click to make Cognos guess
their position
Sorting works the same way
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 209 / 544
4.2. Crosstabs Tabular data
Figure: The Crosstab in Design view mode after the fields are correctly assigned -
note that more category fields could be inserted to be rows or columns
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 210 / 544
4.2. Crosstabs Tabular data
Figure: The Crosstab viewed after sorting for both Business and Year is set
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 211 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Apply the following formatting options to the Crosstab:
Display numbers in millions, with two digits after the decimal point,
and with a M$ suffix
Only display values for years 2007 , 2008 , 2009
Use a Conditional Style for the numerical cells:
under 1 million, cells shall be Excellent (green)
over 10 million, cells shall be Poor (red)
between the two, cells shall be Average (yellow)
Give the title Net Losses for Businesses for the Crosstab
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 212 / 544
4.2. Crosstabs Tabular data
Restriction to years 2007 , 2008 and 2009 is done exactly the same way as
for Visualizations, by either a Custom or Advanced Filter for the field Year.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 213 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 214 / 544
4.2. Crosstabs Tabular data
Figure: Preview of the Crosstab after the number format and the filter for Year is
set
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 215 / 544
4.2. Crosstabs Tabular data
Conditional Style:
Formats individual cells in a List or Crosstab based on value
When the area or field is selected, available in the Properties Pane,
under CONDITIONAL, by selecting Conditional styles
Add a new Conditional Style with the green plus icon, choosing
New Conditional Style...
Select the field Net Loss and click OK
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 216 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 217 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 218 / 544
4.2. Crosstabs Tabular data
Figure: Initial and final design of the Conditional Style required for the Crosstab
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 219 / 544
4.2. Crosstabs Tabular data
Figure: Final appearance of the left Crosstab, after the conditional style for the
Net Loss cells
Note
Unlike Visualizations and Lists, Cognos generates MDX code for Crosstabs
instead of SQL under the Show generated SQL/MDX option, which is a
bit more obfuscated.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 220 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Add a new Crosstab into the right column of the Report:
Rows are determined by Risk Category, and then
Risk Sub-Category
Columns are determined by Year
Values to be presented are the average of the Net Loss field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 221 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 222 / 544
4.2. Crosstabs Tabular data
Figure: Final appearance of the right Crosstab in Design view mode - note that
grouping is automatic if multiple fields are assigned to the same role (either row
or column)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 223 / 544
4.2. Crosstabs Tabular data
Figure: Either the Crosstab corner or the Crosstab intersection (the cross-section
area) can be selected to access the DATA ITEM part in the Properties Pane,
which works the same way for Visualizations and Lists as well
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 224 / 544
4.2. Crosstabs Tabular data
Figure: Preview of the right Crosstab, with the Risk Category field selected to
highlight group boundaries
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 225 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Apply filters for the newly created Crosstab:
Only consider data from 2011 and earlier
Only consider data where Risk Category is either
Clients, Products and Business Practices or
Execution, Delivery and Process Management
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 226 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 227 / 544
4.2. Crosstabs Tabular data
Figure: Editing the filters for the Crosstab - note that Advanced Filter expressions
can be Validated before confirmed, which detects syntax and semantic errors
resulting from manual manipulation
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 228 / 544
4.2. Crosstabs Tabular data
Figure: As both filters affected the row and column fields only, these effectively
result in the exclusion of rows and columns from the Crosstab, all data still
displayed is kept unaltered
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 229 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Display three default summaries for the right Crosstab as follows:
1 For each Year, as a single bottom row for the Crosstab
2 For each Year and Risk Category, as a row per Risk Category
value
3 For each Risk Sub Category row in the Crosstab, as a single right
column for the Crosstab
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 230 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 231 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 232 / 544
4.2. Crosstabs Tabular data
Figure: Design view mode changes after adding the outer summary (right two
figures, first task), and the inner summary (bottom two figures, second task)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 233 / 544
4.2. Crosstabs Tabular data
Figure: Design view mode after all three summaries are done
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 234 / 544
4.2. Crosstabs Tabular data
Figure: The default summaries display an overall average over all records from the
data source with corresponding Risk Category, Risk Sub Category and Year
values
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 235 / 544
4.2. Crosstabs Tabular data
Note
Default summary from the On-demand Toolbar is not the same as what
Average would do from there.
This is because default summary is an average for all records in the data
source (i.e. each row in the original Banking Loss Events table), but
the Average summary option displays an average for all displayed values
in the Crosstab.
This is different functionality for average. It was not if the method was
summation instead. (The total of totals is unambiguous, but the average
of averages depend on the exact partitions.)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 236 / 544
4.2. Crosstabs Tabular data
Exercise 1C (cont’d)
Format the newly created Crosstab as follows:
Display numbers in millions, with two digits after the decimal point,
and with a M$ suffix
In the main intersection cells, numbers not greater than half million
shall be in green and bold font
In the summaries for each Risk Sub Category, numbers greater
than 600,000 shall be in white with purple background
Give the title Net Losses for Risk Categories
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 237 / 544
4.2. Crosstabs Tabular data
Figure: Formatting numbers is done the same way for the second Crosstab, but
keep in mind that all relevant areas containing numbers must be selected
(including summaries), but not textual areas
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 238 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 239 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 240 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 241 / 544
4.2. Crosstabs Tabular data
Figure: The font style can be arbitrarily selected - now set Foreground color to
green and Font to Bold
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 242 / 544
4.2. Crosstabs Tabular data
Figure: Final appearance of the Conditional Style resulting in green bold font for
Net Loss values not greater than 500,000
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 243 / 544
4.2. Crosstabs Tabular data
To implement the second Conditional Style:
1 Select the appropriate area of the Crosstab: it is not the cross-section,
not a summary row, but the single row summaries in the last column
2 Apply the same procedure as for the first Conditional Style (the
simple interface would also be sufficient)
3 Use the same Net Loss field in the expression - no need for the
summaries
4 Alter the Foreground color and Background color formatting options
Figure: Area to be selected for the second Conditional Style in the right Crosstab,
in Design view mode
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 244 / 544
4.2. Crosstabs Tabular data
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 245 / 544
4.2. Crosstabs Tabular data
Figure: Completed Report for Exercise 1C, with Crosstab titles - note that all
implemented filters are apparent from the view
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 246 / 544
Summary Tabular data
Lists can display data rows of multiple fields, while Crosstabs can have
fields in rows, columns, and intersection area.
In this Section, the following about these tabular tools was discussed:
Basic formatting
Grouping by fields
Sorting, aggregations and filters, which work similarly to ordinary
Visualizations
Calculations and summaries
Formatting with ordinary tools and Conditional Styles
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 247 / 544
Parameterized Reports
5. Parameterized Reports
5.1 Basics of Parameters
5.2 Prompt Wizard
5.3 Advanced Filter formulas
5.4 Custom Filter auto-prompt
5.5 More complex example
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 248 / 544
Parameterized Reports
Although a simple Report has many features, its contents are static.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 249 / 544
5.1. Basics of Parameters Parameterized Reports
5. Parameterized Reports
5.1. Basics of Parameters
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 250 / 544
5.1. Basics of Parameters Parameterized Reports
Two ways for more dynamic Report documents, which exclude each other:
Parameterized Reports
Parameters which depend on the current user and/or his choices
Parameter-based filters
Prompts, choosing values at running the Report, limited interactivity
thereafter
How to use: add parameters, parameter-based filters, or prompts to an
ordinary Report
Active Reports (see Section 6)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 251 / 544
5.1. Basics of Parameters Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 252 / 544
5.1. Basics of Parameters Parameterized Reports
That means, parameters can only obtain their values from a single
category field from the data source.
Single-Select: can obtain one value for the field
Multi-Select: can obtain a set of values for the field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 253 / 544
5.1. Basics of Parameters Parameterized Reports
For each option, a common sample report is given. This shall be copied
before the trial of each method.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 254 / 544
5.1. Basics of Parameters Parameterized Reports
Exercise 2A
Import the XLSX Boston 311 Calls
Create a Data Module with the same name
Create a Report based on this source
Use the 2 columns non-active Template with Blue Theme
Create a Heat Map and a Pie Visualization in the two columns, with
the following properties (cont’d)
Add suitable titles
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 255 / 544
5.1. Basics of Parameters Parameterized Reports
Exercise 2A (cont’d)
Set up the Heat Map Visualization as follows:
Rows are by the Ward field, sort ascending
Columns are by the Month field, do not sort
Heat is determined by the Count field, aggregation is default (Total)
Set up the Pie Visualization as follows:
Segments are determined by the Source of Request field
Sizes are determined by the Count field, aggregation is default (Total)
This state of the Report is used as a starting point for all three methods.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 256 / 544
5.1. Basics of Parameters Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 257 / 544
5.1. Basics of Parameters Parameterized Reports
Exercise 2A (cont’d)
Set up a parameter for the Source of Request field.
Multiple values shall be allowed
Filter the Visualizations to represent data matching the prompted
values of this parameter
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 258 / 544
5.2. Prompt Wizard Parameterized Reports
5. Parameterized Reports
5.2. Prompt Wizard
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 259 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 260 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 261 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 262 / 544
5.2. Prompt Wizard Parameterized Reports
Figure: Prompt Wizard, creating the parameter (or selecting an existing one)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 263 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 264 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 265 / 544
5.2. Prompt Wizard Parameterized Reports
Third page of the Wizard asks which Queries shall be filtered. Identify and
check the Queries for the Visualizations to filter (in this case, both).
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 266 / 544
5.2. Prompt Wizard Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 267 / 544
5.2. Prompt Wizard Parameterized Reports
Figure: Prompt Wizard, setting up the values to choose for the parameter
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 268 / 544
5.2. Prompt Wizard Parameterized Reports
Drag and insert a Prompt Button somewhere in the Report, which will
allow submitting changes to the Value Prompt while the Report is being
displayed.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 269 / 544
5.2. Prompt Wizard Parameterized Reports
Figure: Multi-Select Value Prompt being displayed as a List Box – the Prompt
Button allows submitting the selected Source of Request values, causing both
Visualizations to filter data accordingly
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 270 / 544
5.2. Prompt Wizard Parameterized Reports
In the Properties Pane, the Value Prompt has some useful options:
Required: whether a prompt and a
parameter value in the beginning is
required or not
Multi-select
Select UI : different methods are
allowed, e.g. drop-down list, check
boxes, for Single-Select and
Multi-Select
Auto-submit: changes are submitted
without a Prompt Button
Note
The Required and Multi-select options only take effect if the filters
themselves are also modified.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 271 / 544
5.3. Advanced Filter formulas Parameterized Reports
5. Parameterized Reports
5.3. Advanced Filter formulas
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 272 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 273 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 274 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 275 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 276 / 544
5.3. Advanced Filter formulas Parameterized Reports
This results in shorter code, but only if one of the above two conditions
hold, otherwise the same code would generate an error when trying to
view the Report.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 277 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 278 / 544
5.3. Advanced Filter formulas Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 279 / 544
5.3. Advanced Filter formulas Parameterized Reports
Figure: Final view when the pSourceOfRequest parameter includes the values
Maximo Integration and Twitter
Note that the Pie Visualization is not affected, as filters must be set for
each Visualization independently.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 280 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
5. Parameterized Reports
5.4. Custom Filter auto-prompt
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 281 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 282 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 283 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
Check Prompt for values when report is run in viewer .
Provide a parameter name below.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 284 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
Figure: The new Custom Filter can also be viewed in the Edit Filters... dialog, but
the code does not reflect the fact that the filtered values are prompted
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 285 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
The Prompt Page is automatically generated when the Report is run.
Exact appearance depends on field and filter type.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 286 / 544
5.4. Custom Filter auto-prompt Parameterized Reports
Figure: Final appearance of the Pie Visualization after the Custom Filter is
applied with the three shown field values given in the prompt
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 287 / 544
5.5. More complex example Parameterized Reports
5. Parameterized Reports
5.5. More complex example
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 288 / 544
5.5. More complex example Parameterized Reports
Exercise 2B
Create a Report as follows:
The Report is based on Boston 311 Calls
Use the Blank (non-active) Template
Create a Hierarchical Packed Bubble Visualization:
Bubbles are determined by Request Reason, sort ascending
Color is determined by Month, do not sort
Size is determined by Count
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 289 / 544
5.5. More complex example Parameterized Reports
Exercise 2B (cont’d)
Filter the Report by parameters corresponding to the following fields:
Case Status: allow a single value or no values (does not filter)
Temperature (F) (measure, numeric): value must fit into a given
interval, therefore two temperature values are needed
Rain ( Y N ): any combination of values
Weather Condition: allow either a single value to filter for, or not
filtering at all, and also insert prompting tools to change the
parameter while the Report is running
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 290 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 291 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 292 / 544
5.5. More complex example Parameterized Reports
Figure: This is how the new Advanced Filter should look like for the desired result
- note that Optional filters have a distinct icon
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 293 / 544
5.5. More complex example Parameterized Reports
Figure: The Visualization for data where Case Status is Open, the smaller
counts indicate that most cases are rather Closed
The largest bubble size (see right) should be 589 for Open
only, 21702 for Closed only, and 21720 if not filtering.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 294 / 544
5.5. More complex example Parameterized Reports
The filter for Temperature (F) would work with two distinct parameters,
and Advanced Filters with the <= and >= operators, but a different
approach is presented here, with a Custom Filter:
1 Add Temperature (F) as Extra data, then create a Custom Filter
2 In the dialog, click the Range tab
3 Provide any two values (prompt will overwrite them anyway)
4 Check Prompt for values when report is run in viewer , and provide a
name for the parameter
5 Important: In the Edit Filters... dialog, set Application to
Before auto aggregation to tell Cognos that the individual
temperature values are filtered, not the sums of temperature values in
each group
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 295 / 544
5.5. More complex example Parameterized Reports
Figure: The Custom Filter dialog allows ranges to be set for numeric values, and
even to prompt them - note that NULL values could be uniformly included or not
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 296 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 297 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 298 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 299 / 544
5.5. More complex example Parameterized Reports
Figure: The Visualization when Temperature (F) is between 30 and 50, and
Rain ( Y N ) can be anything but N
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 300 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 301 / 544
5.5. More complex example Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 302 / 544
5.5. More complex example Parameterized Reports
Figure: Final overview of filters in the Edit Filters... dialog, note that the fourth
filter was added by the Prompt Wizard
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 303 / 544
5.5. More complex example Parameterized Reports
Figure: Filters may leave no records to show, for example, when Rain ( Y N ) is
set to Y , but Weather Condition is also set to Overcast
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 304 / 544
5.5. More complex example Parameterized Reports
Figure: The Visualization with the same settings, but now Weather Condition
is set to Light Drizzle with the prompt elements, note that the Report is not
launched again
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 305 / 544
Summary Parameterized Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 306 / 544
Active Reports
6. Active Reports
6.1 Basics
6.2 Active Report Fundamentals
6.3 Multi-Select variables
6.4 More complex example
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 307 / 544
Active Reports
We have seen that static Report documents are inconvenient to use for
discovering the data, more interactivity is desirable.
Two ways for more dynamic Report documents, which exclude each other:
Parameterized Reports (see Section 5)
Active Reports
Variables which can be manipulated by form elements
View adjusts to variables instantaneously, giving more interactivity
How to use: choose an Active Report template in the beginning
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 308 / 544
6.1. Basics Active Reports
6. Active Reports
6.1. Basics
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 309 / 544
6.1. Basics Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 310 / 544
6.1. Basics Active Reports
Again, a basic problem is presented to serve as a starting point for our first
Active Report, and remark some UI features.
Exercise 3A
Create an Active Report as follows:
Import the XLSX American Time Use
Create a Data Module with the same name
Create a Report based on this source
Use the 2 by 2 active report Template with Blue Theme
Title: Time Use by Education Level
The American Time Use data set contains statistics about how much
time people with different attributes spend on a range of activities.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 311 / 544
6.1. Basics Active Reports
Exercise 3A (cont’d)
Create a Pie Visualization into the top left corner as follows:
Categories are by Gender, sort ascending
Values are by Weekly Hours Worked
Select the sixth Color Palette
Resize the Visualization to 300x300
Title: Weekly Hours Worked
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 312 / 544
6.1. Basics Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 313 / 544
6.1. Basics Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 314 / 544
6.1. Basics Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 315 / 544
6.1. Basics Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 316 / 544
6.1. Basics Active Reports
Figure: Final appearance of the Active Report, with its single Pie Visualization,
serving as a starting point for Active Report fundamentals
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 317 / 544
6.2. Active Report Fundamentals Active Reports
6. Active Reports
6.2. Active Report Fundamentals
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 318 / 544
6.2. Active Report Fundamentals Active Reports
Exercise 3A (cont’d)
Add interactive behavior to the Active Report as follows:
Add a Data drop-down list to the Report
The list shall select value for variable vEducationLevel from the
field Education Level
Connect the list to the Pie Visualization to filter values based on the
given education level
Give the High School default value for vEducationLevel
Copy the Pie to the other three corners, representing the same
statistic for the Volunteering, Shopping and Television fields
Ensure that the Data drop-down list filters the newly created
Visualizations as well
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 319 / 544
6.2. Active Report Fundamentals Active Reports
Note
The Data drop-down list is intended to contain a single field. Do not
confuse it with Drop-down list, which is just next to it in the Toolbox.
Note
Drag onto the Data drop-down list itself, not to the Icon or Extra Items
area which shows up when selecting the list.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 320 / 544
6.2. Active Report Fundamentals Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 321 / 544
6.2. Active Report Fundamentals Active Reports
Connect the Data drop-down list with the Pie Visualization as follows:
1 Select the Data drop-down list
2 Click the Create a new connection icon
3 Important: set Behavior from Select to Filter
4 Set the Active Report Variable name to vEducationLevel
5 We could set default values as well, but we will do it later
Note
Naming convention for variables is analogous to parameters.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 322 / 544
6.2. Active Report Fundamentals Active Reports
Figure: The Create a new connection dialog, with current tasks already set up
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 323 / 544
6.2. Active Report Fundamentals Active Reports
Note
If the Pie does not show up as potential target (happened in earlier
versions), then cancel the dialog and add Education Level to
Extra Categories in the Pie Visualization first.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 324 / 544
6.2. Active Report Fundamentals Active Reports
Figure: The Interactive behavior dialog offers further settings (not detailed here)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 325 / 544
6.2. Active Report Fundamentals Active Reports
Figure: The Content Pane can be used to manage Active Report controls (left)
and Active Report variables (right)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 326 / 544
6.2. Active Report Fundamentals Active Reports
Clicking the Preview button above the Canvas while in Page preview mode
for the Report displays the lists with possible contents.
Clicking again, on the Edit button reverts to design mode for the list.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 327 / 544
6.2. Active Report Fundamentals Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 328 / 544
6.2. Active Report Fundamentals Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 329 / 544
6.2. Active Report Fundamentals Active Reports
Figure: Final form of the four Pie Visualizations – note that High School is the
initial value when the Report is run, but can be changed and Visualizations
update immediately, displaying some animation
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 330 / 544
6.3. Multi-Select variables Active Reports
6. Active Reports
6.3. Multi-Select variables
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 331 / 544
6.3. Multi-Select variables Active Reports
Multi-Select variables work like Single-Select ones, just different Active
Report elements are used. This is demonstrated in an example problem.
Exercise 3B
Create a new Active Report as follows:
Source: American Time Use, Template: 2 over 1 active report,
Theme: Green
Title: Sleeping by Age Range and Employment Status
Top left: Clustered Column Visualization, displaying average of
Sleeping minutes, X axis: Age Range (sort ascending), Color :
Employment Status
Top right: same as top left, just median instead of average
At the bottom, create a Data toggle button bar selecting
Employment Status, and filter both Visualizations, default values:
Employed and Unemployed
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 332 / 544
6.3. Multi-Select variables Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 333 / 544
6.3. Multi-Select variables Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 334 / 544
6.3. Multi-Select variables Active Reports
Figure: Because the Employment Status field is already in the query of the
Clustered Column Visualization, Cognos recognizes it as target automatically
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 335 / 544
6.3. Multi-Select variables Active Reports
Figure: The Data toggle button bar allows selection of multiple values, therefore
providing multiple default values is interpreted as a default starting selection
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 336 / 544
6.3. Multi-Select variables Active Reports
Similarly to Data drop-down list, the Data toggle button bar is found in
the Toolbox, not to be confused with the Toggle button bar.
In preview we can see that Employment Status has three possible values:
Employed, Unemployed and Not in labor force, and any subset of these
can be selected for filtering.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 337 / 544
6.3. Multi-Select variables Active Reports
Note
If we simply copy-pasted the Clustered Column and changed the
Detail aggregation to Median in the second, that would affect the original
one as well, because the query is not copied.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 338 / 544
6.3. Multi-Select variables Active Reports
Figure: If we select the Visualization, then the area showing the fields, we select
the Data Container of the Visualization, the Properties Pane for which clearly
indicates which query the Visualization is based on
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 339 / 544
6.3. Multi-Select variables Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 340 / 544
6.3. Multi-Select variables Active Reports
Figure: Final form of the Report: the default selection is Employed and
Unemployed, filtering is apparent, and the two Visualizations differ slightly
because of their different aggregation methods
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 341 / 544
6.4. More complex example Active Reports
6. Active Reports
6.4. More complex example
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 342 / 544
6.4. More complex example Active Reports
Example problem with two more Active Report elements, and Sorting.
Exercise 3C
Create a new Active Report as follows:
Source: American Time Use, Template: 2 over 1 active report,
Theme: Cool blue
Title: Volunteering by Gender and Employment Status
Top left: Heat Map Visualization, Color : Volunteering, X :
Age Range, Y : Education Level, sort both ascending
Top right: Stacked Bar Visualization, Value: Volunteering, X :
Education Level, Color : Age Range, sort both ascending
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 343 / 544
6.4. More complex example Active Reports
Exercise 3C (cont’d)
In the bottom area, create a 1x4 table with the following contents:
1 Label: Gender:
2 Data check box group for the field Gender (Multi-Select), default
setting: Male and Female
3 Label: Employment Status:
4 Data radio button group for the field Employment Status
(Single-Select), default setting: Employed
Sort the contents of both Active Report elements and connect them with
both Visualizations for filtering.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 344 / 544
6.4. More complex example Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 345 / 544
6.4. More complex example Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 346 / 544
6.4. More complex example Active Reports
Sorting for the Active Report elements:
1 Select the element (the three orange
dots may help)
2 In the Properties Pane, under DATA,
click Sorting
3 Simply sort by the field ascending, note
that the dialog also makes multi-level
sorting possible
Figure: Design view mode for the table with the two Active Report elements, note
that the blue arrows indicate sorting
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 347 / 544
6.4. More complex example Active Reports
Figure: Dialog for setting up sorting rules for Active Report elements
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 348 / 544
6.4. More complex example Active Reports
Figure: After the four Connections are set, we can review them in the Content
Pane, under Active Report controls, note that default values are also visible
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 349 / 544
6.4. More complex example Active Reports
Figure: Final form of the Report, note the sorted Active Report elements
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 350 / 544
Summary Active Reports
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 351 / 544
Data Modules
7. Data Modules
7.1 Overview
7.2 Data Module Interface
7.3 Data Groups and Calculations
7.4 Custom Sorting
7.5 Navigation Paths
7.6 Exercise Problem
7.7 Multiple Tables
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 352 / 544
Data Modules
In this Section, the data sources providing a basis for these are
investigated. In Data Modules we can customize the fields used by Reports
and other documents.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 353 / 544
7.1. Overview Data Modules
7. Data Modules
7.1. Overview
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 354 / 544
7.1. Overview Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 355 / 544
7.1. Overview Data Modules
Note
Be careful when altering a Data Module some document or other Data
Module is based on, as it may break those documents and sources.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 356 / 544
7.1. Overview Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 357 / 544
7.2. Data Module Interface Data Modules
7. Data Modules
7.2. Data Module Interface
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 358 / 544
7.2. Data Module Interface Data Modules
Figure: User interface for the newly created American Time Use Data Module
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 359 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 360 / 544
7.2. Data Module Interface Data Modules
Figure: Contents of the Data Module on the left, with a context menu accessed
for the (currently only) table
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 361 / 544
7.2. Data Module Interface Data Modules
Note
In the left, the Data Module, and its table are represented on two different
levels. Make sure you click on the table, and not the Data Module when
doing modifications.
Under the table, its fields are listed, with icons referring to data type and
usage, for example:
: numeric identifier
: measure field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 362 / 544
7.2. Data Module Interface Data Modules
Figure: To access the context menu for the Data Module, a table, or a field,
select it and click on the Ellipsis icon
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 363 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 364 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 365 / 544
7.2. Data Module Interface Data Modules
Context menu entries for a field depends on data
type and usage. Example for a text type identifier
field (see right):
Split...: create new fields by delimiters in a
single text type field
Clean...: basic modifications on input data
Create data group...: new field based on
collections of values of another field
Create navigation path...: provides interaction
features in documents
Properties: usage, formula (for Calculations),
aggregation method, sorting options
Data format: settings of how data is
interpreted, for example percent, decimal
separator, time and date formats, etc.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 366 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 367 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 368 / 544
7.2. Data Module Interface Data Modules
Figure: If a field contains special data (time or geographic location), Cognos may
automatically recognize it, otherwise it can be set as the Represents option in the
Properties menu
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 369 / 544
7.2. Data Module Interface Data Modules
Cognos detects type and intended usage for a field, but can be wrong:
Job Searching is an activity measured in minutes, like the others
Recognized as numeric identifier (possibly too few distinct values)
That prevents Job Searching, for example, to be used as measures
in Visualizations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 370 / 544
7.2. Data Module Interface Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 371 / 544
7.2. Data Module Interface Data Modules
Note
The key question about usage is whether the field should be a Measure or
not. Attributes and Identifiers are interchangeable in most situations, if
unsure, use Identifier.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 372 / 544
7.2. Data Module Interface Data Modules
The Try it on the Application Toolbar provides a simplified
Report interface to check field behavior and values.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 373 / 544
7.3. Data Groups and Calculations Data Modules
7. Data Modules
7.3. Data Groups and Calculations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 374 / 544
7.3. Data Groups and Calculations Data Modules
Data Group:
Defines a new field in a table, dependent on an original field
Introduces several named groups for values of the original field,
therefore decreasing granularity
Text type original field: each group is a set of possible values,
resulting in a partition of the original values
Numeric original field: intervals can be defined to describe the groups
Note
Technically, a Data Group can be implemented using a Calculation as well.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 375 / 544
7.3. Data Groups and Calculations Data Modules
Exercise 4A
Create two Data Groups as follows:
Name: Qualified, is based on Education Level, and value is 1 if
the level is at least High School, and 0 otherwise
Name: Earnings Level, is based on Weekly Earnings, and value
is Low below 100, High for 500 and above, and Medium in between
Create two Calculations as follows:
Name: Daily Hours Worked, and is the Weekly Hours Worked
divided by 5
Name: Total Spent, and is the sum of all daily activities
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 376 / 544
7.3. Data Groups and Calculations Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 377 / 544
7.3. Data Groups and Calculations Data Modules
Note
Multiple fields can be selected by Ctrl+Click or Shift+Click (selection
order is important), then the context menu for any field can be used.
Note
The Create calculation... option is missing if the selected field is text type,
however, general expressions defining Calculations can be based on text
type fields as well.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 378 / 544
7.3. Data Groups and Calculations Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 379 / 544
7.3. Data Groups and Calculations Data Modules
Note
A default group can be defined for all values not assigned to any group. If
there is no default group, the value of the Data Group field for any
unassigned value will be the value itself.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 380 / 544
7.3. Data Groups and Calculations Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 381 / 544
7.3. Data Groups and Calculations Data Modules
Note
The numeric Data Group interface can initially set up the groups having
equal length intervals between the minimum and maximum (but not equal
row count).
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 382 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Creating the Daily Hours Worked Calculation based on a single field and
basic operations – a similar interface is available if two Calculations are selected
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 383 / 544
7.3. Data Groups and Calculations Data Modules
The general Calculation editor is similar to the one used for Advanced
Filters in Reports:
Fields from the Data Module can be dragged from the left to the
expression area
Functions can be found in another tab on the left
The expression can be validated, and even previewed
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 384 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Creating the Total Spent Calculation based on 14 different fields, with a
preview generated at the bottom
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 385 / 544
7.3. Data Groups and Calculations Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 386 / 544
7.3. Data Groups and Calculations Data Modules
The Data Group for the numeric Weekly Earnings field generates
another field named Earnings Level bin nr:
Same as Earning Levels, but the values are integers
Hidden by default
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 387 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Properties of the two Data Groups, plus the automatically created one
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 388 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Expressions for the originally created Earnings Level and the
automatically created Earnings Level bin nr Data Groups
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 389 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Expression for the Qualified Data Group is more obfuscated, because it
is based on another text type field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 390 / 544
7.3. Data Groups and Calculations Data Modules
Figure: Properties for the two Calculations, note that the usage of both are set to
Measure by default
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 391 / 544
7.3. Data Groups and Calculations Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 392 / 544
7.3. Data Groups and Calculations Data Modules
To check Calculations:
Use validation and preview in
the editor
Use the Grid view (see right)
Note
To reorder fields in the Grid view,
reorder them in their list on the left
by drag and drop.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 393 / 544
7.4. Custom Sorting Data Modules
7. Data Modules
7.4. Custom Sorting
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 394 / 544
7.4. Custom Sorting Data Modules
Exercise 4A (cont’d)
Set custom sorting for Education Level so that ascending ordering of the
field results a lower to higher level, i.e. from 9th grade to Prof. Degree.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 395 / 544
7.4. Custom Sorting Data Modules
Figure: Unsorted, ascending, and descending order for the Education Level
field before any custom sorting is set, as seen in the Try it Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 396 / 544
7.4. Custom Sorting Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 397 / 544
7.4. Custom Sorting Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 398 / 544
7.4. Custom Sorting Data Modules
Figure: Formula for the Education Level Order Calculation, note that the
observed expression for Data Groups used a similar logic
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 399 / 544
7.4. Custom Sorting Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 400 / 544
7.4. Custom Sorting Data Modules
Figure: Checking the new Calculation with the Try it option, before setting
Education Level to sort by it
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 401 / 544
7.4. Custom Sorting Data Modules
Figure: Setting our Calculation named Education Level Order to serve as the
sorting order for the original Education Level field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 402 / 544
7.4. Custom Sorting Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 403 / 544
7.5. Navigation Paths Data Modules
7. Data Modules
7.5. Navigation Paths
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 404 / 544
7.5. Navigation Paths Data Modules
Note
It is shown how to create, modify, and delete Navigation Paths, but their
usage is not demonstrated here. See Section 8 for applications.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 405 / 544
7.5. Navigation Paths Data Modules
Exercise 4A (cont’d)
Create a Navigation Path involving the fields Qualified,
Education Level and Employment Status in this order.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 406 / 544
7.5. Navigation Paths Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 407 / 544
7.5. Navigation Paths Data Modules
Figure: Dialog for creating the Navigation Path from the exercise
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 408 / 544
7.5. Navigation Paths Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 409 / 544
7.5. Navigation Paths Data Modules
Figure: Navigation Paths involving a particular field can be viewed and modified
from the Properties menu of that field, but not created or deleted
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 410 / 544
7.5. Navigation Paths Data Modules
Figure: The Properties from the context menu of the Data Module itself allows
creation, deletion and modification of all Navigation Paths
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 411 / 544
7.6. Exercise Problem Data Modules
7. Data Modules
7.6. Exercise Problem
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 412 / 544
7.6. Exercise Problem Data Modules
Exercise 4B
Create a Data Module based on the Banking Loss Events XLSX.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 413 / 544
7.6. Exercise Problem Data Modules
Exercise 4B (cont’d)
Do the following additional modifications on the Data Module:
Set up a custom sorting rule for Status, to sort the values in this
order: Not Started, In Progress, Under Review , Rejected, and
Approved
Create a Navigation Path named Risk Category - Year, with the
following fields in order: Risk Category, Risk Sub Category,
Year
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 414 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 415 / 544
7.6. Exercise Problem Data Modules
Figure: Similarly, Category of Net Loss can be a Data Group based on the
Net Loss measure, which is numeric
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 416 / 544
7.6. Exercise Problem Data Modules
Figure: Correct behavior of the Data Groups checked in the Try it Report
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 417 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 418 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 419 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 420 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 421 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 422 / 544
7.6. Exercise Problem Data Modules
Figure: Although the formulas for both Calculations are ratios, the Data format...
dialog from the context menu shows that these fields are formatted as Percent
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 423 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 424 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 425 / 544
7.6. Exercise Problem Data Modules
Figure: The important part of the dialog creating the Navigation Path, note that
the default name is the same as expected in the exercise
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 426 / 544
7.6. Exercise Problem Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 427 / 544
7.7. Multiple Tables Data Modules
7. Data Modules
7.7. Multiple Tables
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 428 / 544
7.7. Multiple Tables Data Modules
A small example is presented for two tables in the same Data Module and
defining a Relationship between them.
Two XLSX files are required from the GO, Great Outdoors Data Module:
Order methods: very small table matching codes of order methods
to their textual representation
Sales: long list of items sold by the company, with various fields
including the code for the order method
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 429 / 544
7.7. Multiple Tables Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 430 / 544
7.7. Multiple Tables Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 431 / 544
7.7. Multiple Tables Data Modules
Figure: The dialog for creating the Relationship between the tables
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 432 / 544
7.7. Multiple Tables Data Modules
Figure: The Diagram view shows a visual representation of tables and their
Relationships, you can also edit or delete a Relationship by right-clicking its
connector line
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 433 / 544
7.7. Multiple Tables Data Modules
Figure: The Try it Report can be used to verify that fields from the two distinct
tables, for example Order Method Type and Revenue, can be in the same query
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 434 / 544
Summary Data Modules
Data Modules are used in Cognos to model data, extend data sources with
new features, and serve as a source for documents.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 435 / 544
Dashboards
8. Dashboards
8.1 Basic Features
8.2 Selections and Drill down
8.3 Further examples
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 436 / 544
Dashboards
So far, the Report document type and Data Modules were examined
thoroughly.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 437 / 544
8.1. Basic Features Dashboards
8. Dashboards
8.1. Basic Features
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 438 / 544
8.1. Basic Features Dashboards
Dashboards vs Reports:
Underlying logic of data sources and Visualizations is similar
Reports can be run, and exported in different formats, while
Dashboards focus heavily on interactivity and data discovery
User interface is completely new, although similar in features, and
common tasks for Dashboards are usually more convenient
Dashboards have their own embedded Data Module with limited
functionality: creation of Calculations and Navigation Paths, and
alteration of basic properties of fields are possible
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 439 / 544
8.1. Basic Features Dashboards
Exercise 5A
Create a new Dashboard as follows:
Tabbed layout, blank template
Source is the Banking Loss Events XLSX file
Create a Crosstab and an automatic Visualization representing the
sum of Net Loss per Business
Sort the Business values in the automatic Visualization by the
depicted Net Loss sums, ascending
Filter both Visualizations for only the following Status values:
In Progress and Rejected
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 440 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 441 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 442 / 544
8.1. Basic Features Dashboards
Set the source as follows:
In the Source Pane on the left, click Select a source
Select the XLSX file for Banking Loss Events
Alternative: click Create dashboard in the context menu for the file.
Note
Unlike Reports, Dashboards can be based on the uploaded XLSX file
directly due to their embedded Data Module functionality.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 443 / 544
8.1. Basic Features Dashboards
Note
Some further problems depend on fields
created in the Banking Loss Events Data
Module (see Section 7). Use that Data
Module as a source to skip those steps.
Note that all exercises can be solved within
the Dashboard interface.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 444 / 544
8.1. Basic Features Dashboards
Figure: There is a Data tray available below the Canvas: views the data source,
works similarly to the Grid view for Data Modules
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 445 / 544
8.1. Basic Features Dashboards
Note
Dashboards have a different set of Visualizations available than
Reports, although most are common. In particular, Lists and
Crosstabs are also Visualizations for Dashboards.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 446 / 544
8.1. Basic Features Dashboards
The Application Toolbar contains some new icons (from the left):
1 Full screen mode
2 View widget connections
3 Properties: shows the Properties Pane also available in Reports,
although for Dashboards, settings are mostly about layout and
formatting
Note
Dashboards cannot be ”run”, they are either opened in
Edit or in Preview mode, which can be switched with the
pencil icon on the left of the Application Toolbar.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 447 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 448 / 544
8.1. Basic Features Dashboards
To create a Crosstab:
1 Drag a Crosstab from the Visualizations Pane
2 Drag the fields Business and Net Loss fields from the Sources Pane
to the Rows and Values slots of the Crosstab, respectively
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 449 / 544
8.1. Basic Features Dashboards
Figure: All Visualizations, including Crosstabs have a specific user interface, which
also includes a preview
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 450 / 544
8.1. Basic Features Dashboards
To sort the columns in the Visualization, click the Ellipsis icon next to the
Net Loss field in the Visualization editor, then click Sort.
Note
Unlike in Reports, columns can be sorted by their depicted values.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 451 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 452 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 453 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 454 / 544
8.1. Basic Features Dashboards
To filter both the Crosstab and the Columns Visualization, drag Status to
the This tab area above the Canvas, then select the appropriate values.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 455 / 544
8.1. Basic Features Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 456 / 544
8.2. Selections and Drill down Dashboards
8. Dashboards
8.2. Selections and Drill down
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 457 / 544
8.2. Selections and Drill down Dashboards
Dashboards are very versatile in viewing data, two important features are
demonstrated here:
Selecting a category value serves as a filter for all Visualizations in
that tab: this effectively does what Parameterized Reports and Active
Reports were used for in our examples, much faster and easier,
although with less options
The drill down option can be used to change the scope of the
Visualization: if a value of a category field X is present in a
Visualization, then we can replace X with another category field Y
while filtering for the value of X
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 458 / 544
8.2. Selections and Drill down Dashboards
Exercise 5B
As prerequisites, add the following to the source data of the Dashboard:
Calculation, named Is Banking, and is Yes or No based on whether
Business contains the word ”Banking” or not
Two Navigation Paths with two fields each: from Risk Category to
Risk Sub Category, and from Year to Region
Note
Modifications done to the data source of the Dashboard are local to that
particular Dashboard and do not affect the source file or Data Module.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 459 / 544
8.2. Selections and Drill down Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 460 / 544
8.2. Selections and Drill down Dashboards
The Navigation Paths can be created as in a Data Module, by clicking on
the plus icon next to the Navigation Paths directory in the source.
Figure: The data source after creating the Calculation and the Navigation Path
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 461 / 544
8.2. Selections and Drill down Dashboards
Exercise 5B
Add a new tab to the Dashboard with the following:
List Visualization showing Risk Category
Stacked Column Visualization, Bars are by Year, Length is by
Net Loss, and Color is by Business, and filtered by Is Banking to
be Yes
Another Stacked Column Visualization with the same attributes, but
Is Banking is No instead
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 462 / 544
8.2. Selections and Drill down Dashboards
Only the filter for Is Banking is special:
Unrelated to the fields in the Visualizations
Therefore: drag them into the Local filters area, and select the
appropriate value
This is analogous to Extra data in Reports
Note
One of the Stacked Column Visualizations can be finished including the
filter, then the other one created by the Duplicate icon from the
On-demand Toolbar. There are no ”common query” issues as experienced
in Reports.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 463 / 544
8.2. Selections and Drill down Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 464 / 544
8.2. Selections and Drill down Dashboards
Note
The initial point is without selection, so clear all selections before trying
another scenario. If unsure, the filter icon at the top right corner of
Visualizations displays active filters, which can also be removed from there.
Note
To select multiple items, use Ctrl+Click.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 465 / 544
8.2. Selections and Drill down Dashboards
First scenario:
Select these three values in the List:
Business Disruption and System Failures, Damage to Physical Assets
and Employment Practice and Workplace Satety
This introduces a filter: Risk Category must be one of these values,
also for the Stacked Column Visualizations (see below)
Some Business categories disappear, indicating they had no events
within these Risk Category values
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 466 / 544
8.2. Selections and Drill down Dashboards
Figure: First scenario: selecting values from the Risk Category List
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 467 / 544
8.2. Selections and Drill down Dashboards
Second scenario:
In the color legend of the Stacked Column Visualization, having
Is Banking set to No, select Agency Services and
Asset Management
This filters all Visualizations for these two Business values
As a consequence, the List shrinks, indicating completely missing
combinations
The other Stacked Column Visualization is greyed out, because the
two Stacked Column Visualizations are mutually exclusive anyway
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 468 / 544
8.2. Selections and Drill down Dashboards
Figure: Second scenario: selecting Business category values from one of the
Stacked Column Visualizations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 469 / 544
8.2. Selections and Drill down Dashboards
Third scenario:
In the Stacked Column Visualization where Is Banking is Yes, select
the bar piece corresponding to Year 2013 (bar) and Business
Commerce Banking (color)
Filters indicate that a data point is selected (see below)
Actually two filters are generated, one for each category
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 470 / 544
8.2. Selections and Drill down Dashboards
Figure: Third scenario: selecting a data point, filtering for both Business and
Year
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 471 / 544
8.2. Selections and Drill down Dashboards
Fourth scenario:
Select an item from each Visualization simultaneously:
Business Disruption and System Failures in the List, Retail Banking
and Trading and Sales in the respective Stacked Column
Visualizations
This introduces only two filters instead of three: the selection from
the Stacked Column Visualizations involve the same Business field,
so the filter for Business allows any of the two selected values
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 472 / 544
8.2. Selections and Drill down Dashboards
Figure: Fourth scenario: selecting a Risk Category and two Business values
from different Visualizations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 473 / 544
8.2. Selections and Drill down Dashboards
Note
This drill down operation requires the Navigation Path from
Risk Category directly to Risk Sub Category.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 474 / 544
8.2. Selections and Drill down Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 476 / 544
8.2. Selections and Drill down Dashboards
Figure: Further selections can be made for the newly appearing field
Risk Sub Category, this keeps the original filter for Risk Category
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 477 / 544
8.2. Selections and Drill down Dashboards
Figure: Filters introduced by the drill down operation and the newly selected
Risk Sub Category values
Note
A Risk Sub Category may appear under more than one Risk Category.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 478 / 544
8.2. Selections and Drill down Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 479 / 544
8.2. Selections and Drill down Dashboards
Figure: Result of the second drill down, from the Year of 2013 to Region
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 480 / 544
8.2. Selections and Drill down Dashboards
Note
If there are multiple Navigation Paths for the same field, we can choose
the direction of the drill down operation.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 481 / 544
8.3. Further examples Dashboards
8. Dashboards
8.3. Further examples
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 482 / 544
8.3. Further examples Dashboards
Exercise 5C
Add a new tab to the Dashboard with the following:
Pin the List from the previous example
Insert the list, then convert to Data Player Visualization, and change
the field from Risk Category to Year, filter it for odd years only
Two Heat Map Visualizations, Rows are by Risk Category,
Columns are by Risk Sub Category, and Heat is by
Recovery Amount (Percent)
Aggregation for the two Heat Maps shall be average and maximum
Create a Calculation named Category of Net Loss, values can be
Low , Moderate, High and Very High respectively if below 100 000,
500 000, 2 000 000, or above, then filter both Heat Maps to only Low
and Moderate values of Category of Net Loss
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 483 / 544
8.3. Further examples Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 484 / 544
8.3. Further examples Dashboards
Figure: The Pinned Pane allows saving Visualizations for quick access
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 485 / 544
8.3. Further examples Dashboards
Figure: Menu for converting the selected List Visualization to another type
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 486 / 544
8.3. Further examples Dashboards
Figure: Result of the conversion: the Data Player Visualization displays the same
Risk Category field as the original List
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 487 / 544
8.3. Further examples Dashboards
Note
A more sophisticated solution for the odd
years would be relying on a new Calculation
detecting odd numbers mathematically.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 488 / 544
8.3. Further examples Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 489 / 544
8.3. Further examples Dashboards
Clicking the play button on the Data Player performs an animation:
selected values are iterated and Visualizations are constantly filtered
according to the current selection.
Figure: Final view of the Data Player being played and the two Heat Maps
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 490 / 544
8.3. Further examples Dashboards
Exercise 5D
Add a new tab to the Dashboard with the following:
Create a Calculation named Estimation Value, showing by how
many percent Estimated Gross Loss is higher than Net Loss
Line and Column Visualization, X-axis: Status, Length: sum of
Estimated Gross Loss, Line position: average of
Estimation Value
Set up a sorting rule for Status: Not Started, In Progress,
Under Review , Rejected, and Approved in ascending order
Try sorting for all three fields in the Visualization
Create a Word Cloud Visualization: Words: Business, Size: sum of
Net Loss, Color : Status, then apply a drill down operation on the
largest word, from Business to Region
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 491 / 544
8.3. Further examples Dashboards
The Calculation for Estimation Value can use the following formula.
In the context menu for the newly created Calculation, click Data format...
and set Percent for formatting purposes.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 492 / 544
8.3. Further examples Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 493 / 544
8.3. Further examples Dashboards
Figure: The Line and Column Visualization without specific sorting settings,
which is now automatically sorted by the specified order of Status values
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 494 / 544
8.3. Further examples Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 495 / 544
8.3. Further examples Dashboards
Figure: The Line and Column and Word Cloud Visualizations before drill down
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 496 / 544
8.3. Further examples Dashboards
The drill down operation as requested requires a new Navigation Path
from Business to Region.
Figure: Result of the drill down operation: filter for Corporate Finance Business,
the selection further filters for Approved Status, and the Business category is
replaced by Region in the Word Cloud
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 497 / 544
8.3. Further examples Dashboards
Exercise 5E
Add a new tab to the Dashboard with the following:
Crosstab Visualization, Rows: Category of Net Loss, Columns:
Is Banking, Values: Net Loss
Three Summary Visualizations for total Net Loss, total
Recovery Amount, and average Recovery Amount (Percent),
denote that the latter is average by some text
Pie Visualization representing total Net Loss by Risk Category,
and filter out the two largest parts belonging to External Fraud and
Execution, Delivery and Process Management
Data Player Visualization for Region
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 498 / 544
8.3. Further examples Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 499 / 544
8.3. Further examples Dashboards
Figure: Providing the title for the Summary Visualization already displaying the
average of the Recovery Amount (Percent) field
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 500 / 544
8.3. Further examples Dashboards
Figure: The Exclude option can be used to filter out specific category values from
a Visualization, without affecting the other Visualizations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 501 / 544
8.3. Further examples Dashboards
Figure: Final view of the Dashboard tab, with the Data Player being played,
currently selecting North America and filtering the five other Visualizations as well
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 502 / 544
Summary Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 503 / 544
Explorations
9. Explorations
9.1 Getting Started
9.2 Drivers
9.3 Comparison
Back to Top
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 504 / 544
Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 505 / 544
9.1. Getting Started Explorations
9. Explorations
9.1. Getting Started
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 506 / 544
9.1. Getting Started Explorations
Explorations in Cognos
Document type designed for fast discovery of trends in data
Each Visualization is represented by a single Card
An Exploration is technically a collection of Cards
Starting Points Card to provide some initial investigation of how
fields are related
Assistant to quick-access functionality by textual commands
Minimal formatting and layout options – content is in focus
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 507 / 544
9.1. Getting Started Explorations
This is a single table database containing customer data for the fictional
Telco telecommunications company, and whether the customer left the
service (churn) or not. The goal is to find which group of customers are
less and more likely to churn.
If Cognos base samples are installed, the Data Module for Telco
customer churn is found in Team Content > Samples > Data.
Note
It is highly recommended to make a copy of the sample module in
My Content and base your work on the copy, to avoid accidental changes
in the shared samples.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 508 / 544
9.1. Getting Started Explorations
To create a new Exploration, do either:
In the context menu of the Data Module, click Create exploration, or
Click the New button, choose Exploration, then later assign the Data
Module as source, as for Reports and Dashboards
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 509 / 544
9.1. Getting Started Explorations
Figure: Initial view of the new Exploration for Telco customer churn
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 510 / 544
9.1. Getting Started Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 511 / 544
9.1. Getting Started Explorations
Figure: The Explorations Pane which lists all Cards, note that the Starting Points
Card is always listed
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 512 / 544
9.1. Getting Started Explorations
Figure: The Pins Pane contains pinned content across Cognos, including the List
Visualization in the Dashboards from Exercise 5C
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 513 / 544
9.1. Getting Started Explorations
The Assistant:
accepts informal, textual
commands
also available in the top right
corner (see above)
example: ask for the Tenure
field, by simply typing Tenure
(see left)
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 514 / 544
9.1. Getting Started Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 515 / 544
9.1. Getting Started Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 516 / 544
9.1. Getting Started Explorations
The Starting Points Card:
Displays how pairs of fields correlate
May select a single field as Field of interest
May set the number of unique fields to be shown in the graph
The thicker lines represent stronger predictive strength, tooltip shows
exact value
Figure: Payment Method has a predictive strength of 30% for Churn Value,
which represents as a measure whether the customer churned or not
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 517 / 544
9.1. Getting Started Explorations
Note
Some fields, like Churn Label and Churn Value have 100% correlation
because of redundancy in the data set.
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 518 / 544
9.1. Getting Started Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 519 / 544
9.1. Getting Started Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 520 / 544
9.1. Getting Started Explorations
Figure: Our first Card, displaying a Heat Map Visualization for Tenure, by
Contract and Churn Label
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 521 / 544
9.1. Getting Started Explorations
Figure: The Details tab displays some key facts Cognos found potentially valuable
regarding the present Visualization, while the Data slots tab provides the basic
functionality for editing fields in the Visualization
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 522 / 544
9.2. Drivers Explorations
9. Explorations
9.2. Drivers
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 523 / 544
9.2. Drivers Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 524 / 544
9.2. Drivers Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 525 / 544
9.2. Drivers Explorations
Figure: Contract and CLTV drivers selected (orange disc), and displayed
Visualization below
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 526 / 544
9.2. Drivers Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 527 / 544
9.2. Drivers Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 528 / 544
9.2. Drivers Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 529 / 544
9.2. Drivers Explorations
Figure: The Tree sunburst view of the Decision Tree Visualization for Tenure
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 530 / 544
9.2. Drivers Explorations
Figure: The Tree diagram view of the Decision Tree Visualization for Tenure
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 531 / 544
9.2. Drivers Explorations
Figure: The Rules view of the Decision Tree Visualization for Tenure
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 532 / 544
9.2. Drivers Explorations
Figure: Overall view of Cards after generating the Heat Map, Driver Analysis,
Bubble and Decision Tree Visualizations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 533 / 544
9.3. Comparison Explorations
9. Explorations
9.3. Comparison
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 534 / 544
9.3. Comparison Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 535 / 544
9.3. Comparison Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 536 / 544
9.3. Comparison Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 537 / 544
9.3. Comparison Explorations
Figure: The Duplicate option can be found by clicking the Ellipsis icon shown
when hovering over the Card with the cursor in the Explorations Pane
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 538 / 544
9.3. Comparison Explorations
Figure: The Compare option can be found by selecting both Cards (Ctrl+Click),
then clicking the Ellipsis icon at the top of the Explorations Pane
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 539 / 544
9.3. Comparison Explorations
Figure: Initial view of the newly created Comparison type Card, note the
synchronized axes, compare lines and summaries
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 540 / 544
9.3. Comparison Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 541 / 544
9.3. Comparison Explorations
Figure: Selection of different set of data points is possible, the summaries update
accordingly
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 542 / 544
9.3. Comparison Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 543 / 544
Summary Explorations
A. Éles, I. Heckl (University of Pannonia) Tutorial for Cognos Analytics Feb 2023 (v1.3) 544 / 544
Thank you for your attention!