Cognos Analytics - Getting Started With Data Modules
Cognos Analytics - Getting Started With Data Modules
Instructions Update:
This demo has been updated to use IBM Cognos Analytics on the Cloud version 11.2.
Prepared By: Dennis Buttera, Technology Advocate, Center for Advanced Studies, IBM Canada
(Ottawa)
With Cognos Analytics, users are not restricted to existing enterprise data sources. The data
blending and modeling capabilities in Cognos Analytics allows the business user to include
external data sources without requiring assistance from IT. This does not replace IT, it simply
augments the user experience to allow the user to work with personal data sets and analyze
that data in conjunction with the enterprise data.
Users can import external data from files on-premise, data sources and cloud data sources into
Cognos Analytics. Multiple data sources may be shaped, blended, cleansed and joined together
to create a custom, reusable and shareable data module for use in dashboards and reports.
In this workshop, you will explore the following capabilities in IBM Cognos Analytics:
Enter your IBM ID sign-in credentials to launch IBM Cognos Analytics. You will land on the
welcome page.
With Cognos Analytics’ Data Module capabilities, you can blend data from multiple disparate
systems such as uploaded files, databases, etc. You’ll start with uploading the data files, so you
may build out a data module to have a single source of integrated data to work with for
analysis.
For this exercise you wish to combine existing Customer Loyalty Program information with
Customer Churn information and Customer Claim analysis. You have this information in various
files which you can upload directly into Cognos Analytics and blend, cleanse and model for use
in your analysis. For the first upload, you want to include your Customer Churn information for
customers who had, or currently have, cell phone plans that are part of your Loyal customers
program.
The files you will use for this tutorial are Customer Churn.xlsx, Customer Claim Analysis.xlsx,
and CustomerLoyaltyProgram_Full.csv.
As the file uploads, notice that under the Switcher Menu, a series of status bars will be
visible as the upload process reads and analyzes the data being brought in.
The uploaded file will now show in the Recent content on your homepage.
For the next upload you want to include Customer Churn information. Repeat the upload steps
for the “Customer Churn.xlsx”
For the last upload, you want to include Customer Claim Analysis data. Repeat the upload steps
for the “Customer Claim Analysis.xlsx”
Once the uploads are complete, the files are available in the Recent area of the main home
page and saved in your My Content folder which you can access from the navigation bar.
TECH TIP: You can also perform the uploads directly from the Data Module user interface or by
using the drop zone at the bottom of the home screen.
TECH TIP: The Select sources window allows users to filter by Type and Modified date. Data
modules, data sets, data servers, framework manager packages, and uploaded files can be
included in the data module.
o Custom Tables can also be created from tables in the data module.
By default, Cognos Analytics starts with the Grid view of the data. Click on Customer churn.xlsx
to preview the data.
Click the Relationships view. You will now see a diagram showing each of the three data files
you brought into the data module. Notice that Customer Churn is highlighted as it is the one
that is currently in focus.
TECH TIP: To move the entire diagram at once, you may click in the whitespace and move while
holding down the left mouse button. You may also zoom in/out on the diagram using the zoom
buttons on the lower right of the canvas.
On the top right of the canvas is the Diagram settings dialog box. Here, you may set the
Degrees of separation. This box will remain greyed out until the joins between the tables have
been defined.
At the top left of the window, click on the down arrow next to the Save icon on the main
toolbar. Click Save As. Navigate to My Content and save as “Customer Analytics DM”.
The first relationship you will define is between CustomerLoyaltyProgram_Full and Customer
Claim Analysis.
For the instructions in this exercise, we are working with the CustomerLoyaltyProgram_Full on
the left and the Customer Claim Analysis on the right. Use the Switch left and right tables
toggle button to place your tables in this order.
From the Create relationship window, you can see that the common data between the files is
the Loyalty#/LoyaltyId. Using the pick lists, from CustomerLoyaltyProgram_Full, select
Loyalty# and from Customer Claim Analysis, select LoyaltyID.
Click the Match Selected Columns button, and then the Refresh button to update the viewer to
show the joined tables. Use the scroll bar to see that the common fields used for the join are
now highlighted.
The Matched columns indicates the number of relationship joins defined for these two tables.
There are many ways to join data between files. The goal of the join is to ensure that the
relationship between the two files creates a unique record.
Click Refresh to update the preview of the joined data and then
click OK.
You can now see a 1 to 1 relationship is built between the two files.
The next relationship you will define is between CustomerLoyaltyProgram_Full and Customer
Churn.
Click the Match Selected Columns button, and then the Refresh button to update the viewer.
Then click OK.
Right-click on the
CustomerLoyaltyProgram_Full table in the
Relationships diagram to open the options
and then select Properties.
Close the Properties panel by clicking the ‘X’ in the upper right corner of the panel. Save the
Data module.
Right click on “Customer Loyalty Program”. Under New, select “Folder”. The new folder is
added to the top of the data item list, just under the table name.
• "Customer Location"
• "Customer Demographics"
• "Loyalty Program Details and Measures"
You can reorder the tables and folders to display in your preferred order. To reorder, just drag
and drop them into your preferred placement order.
From the Customer Loyalty table, multi-select all remaining data items and drag them into the
“Loyalty Program Details and Measures” folder.
Hidden fields. Notice Row id is greyed out. This indicates the item is hidden from the report
authors view.
Usage Type. The icons next to the field names indicate the data type setting.
• Numeric fields. The ‘#’ sign next to an item indicates it’s a Numeric field used as an
identifier.
• Alpha-numeric fields. The ‘abc’ sign next an item indicates it’s an Alpha numeric field
used as an identifier or attribute.
• Location. The pin indicates the field is a location dimension which may be used for
geospatial mapping.
Similar to the options you saw earlier for tables, data items also have many options to modify
their properties.
This will maintain the default format of a leading currency symbol and two decimal places.
Repeat these steps to and verify Unit Cost and Revenue are set to Currency.
By adding this calculation to the data module, it will be reusable anywhere in the analysis. Users
will not need to rebuild the calculation each time they need them in their dashboards, reports,
etc. - they simply use the calculated measure.
Select “Use calculation editor” to open the full calculation dialog box.
The Expression editor provides many capabilities that make it easy for you to create, document,
evaluate, and test your expressions. At the far top-right of the window, you will find the
following options:
Preview. Provides a sample rendering of the calculation results along with the
Execution time to run. Click Preview. Results appear in the lower right window.
Validate. Validation allows Users to test their calculation to ensure no errors occur.
Click Validation. Results appear in the lower right window.
Comment. Allows Users to insert comments within the calculation itself; to make
notations throughout the expression. Click Comment. Notice that the calculation is greyed
out and preceded with the familiar “//” used in SQL. Click Comments again to uncomment
calculation.
Prettify. Restructures calculation expression into a more readable format for users.
E.g. When a CASE WHEN expression is in one long block of text that wraps across lines,
Prettify will clean it up and break it out into shorter segments with each condition clause on
a separate line.
High Contrast Mode. This mode reverses the color scheme in the expression editor.
This provides black background with light text some users prefer. Click High Contrast. Click
again if you wish to restore the original background.
Click on the functions tab on the far left navigation panel and click the arrow to expand
Operators. Here, you are presented with the full scope of mathematical operators and
commands to create complex calculations.
Scroll through the list and select various Operators. Click Information to see the
expression syntax for the operator in the bottom right window. See examples below.
You can also use Find to search for functions. Enter “average” into the Find field. Click on
“average” in the results list to view the function definition.
To do so, use a simple drag-and-drop method to bring over the data items and operators from
the components panel. Users could also manually build their expressions directly in the
Expression window, or copy/paste them into the editor.
Click on the Clear button in the Find field to remove the search criteria.
In the Expression window, place your cursor at the end of the expression shown on Row 1.
Click Enter to bring your cursor to a new line, line 2.
We will use the expression on line 1 for reference and remove the duplicate expression at the
end of the exercise.
Click on the calculation expression in row 1 and click Comment . This will “comment
out” the entire line so you may now validate your new expression to ensure there are no
errors in syntax.
Click Validate . The validation results in the lower window should state “The expression
is valid”. Click OK to return to your data module.
For instance, there may not be a great deal of difference between someone who has been a
member for 15 months versus 16 months. Rather, you would be more interested in the
behaviors of members with similar membership durations.
Therefore, you will create custom groupings to “bin/bucket” the individual membership
duration into “Months as Member” category groups.
You can override the equal distribution to manually define your month groups and customize
the group names.
The equal distribution is interesting and shows that the distribution is very close to full years.
Click Create.
Leave the Properties panel open. Click on the new Membership Group data item (in the Data
module panel). Click on View or edit next to Expression to open the Edit calculation window.
Click Cancel to close the calculation editor window. Close the Property panel and Save the data
module.
Navigation paths can be defined in a data module or dashboard to help users easily explore and
drill down to see their underlying data. These can be “natural” navigation paths that follow a
defined hierarchy, or they can be defined to allow users to navigate and drill down in any order
that makes sense for their analysis.
In traditional BI and OLAP technologies, a drill down action requires a pre-defined hierarchical
data structure so that you could navigate the drill down i.e. Year to Month to Day.
Navigation paths are much more flexible and can accommodate a drill down path that aligns
with the thought process users go through to analyze their business.
A navigation path will now be created so to allow you to drill down into your data on that path.
The main goal is in analyzing Product Line performance by Country and Membership Group.
TECH TIP: The same column may be added to multiple navigation groups.
Click on the icon on the upper left of the main toolbar. Cognos Analytics will open a new
browser tab that will allow for the creation of a report to validate the new Data Module.
TECH TIP: Beware of Pop-up blockers in the browser. If they are enabled, allow them for this
server. For more information on pop-up blockers, see Appendix B.
Counts are brought in for each of the Membership Groups you defined.
Click on the header for the Count column to bring it into focus.
The on-demand toolbar opens, providing you with context specific formatting options for the
column. Hover over each of the icons on the toolbar to view options available. Click on the
Summarize icon to open the summary options for the column. Select Total.
An Overall-Total count is generated (which matches what was shown earlier in the workshop as
the “Number of Values” under Data group statistics (when creating the custom data group).
Click on the Membership Group header and then click delete from your keyboard. The column
is removed, leaving only the Count, where the total has remained the same.
Your quick test confirms the setup is correct and the data module is behaving as expected.
Close the Test ‘New Report’ tab in the browser to return to the data module.
Navigation panel. On the left side of the UI is the main Navigation panel, the icon is . This
navigation panel is present on the UI at all times and updates dynamically as the User works
with the various capabilities within Cognos Analytics. The upper part of the panel provides
Users with direct access to search for their content, and links to content to which they have
access. The bottom portion of the panel provides Users with one-click access to capabilities to
create and manage new activities such as creating new content, uploading personal data files,
accessing notifications and managing the environment (dependent on User permissions as set
by the Administrator). The Navigation panel will dynamically update with capabilities based on
the content the User is working with on the canvas.
• Home. The Home page is main screen the User will come to when entering Cognos
Analytics. The default view will render lists of recently used content, a file drop zone for
uploading files, and a quick reference section which allows the User resources to get
started, sample data sets, and links to support materials. For the home page, the User may
change their view by selecting a saved Dashboard, Report or Story to render on this home
page. Administrators may also set the homepage view globally, or by User Group.
• Search. The New Smart Search in Cognos Analytics provides a modernized search
engine that uses a smart, intent-driven search algorithm to assist the User. Click on Search
to open the search panel. Type “Sales” in the search dialog box. As you type, an auto-fill
feature will launch and render search suggestions for related terms. Click outside the Search
panel to close it. It is on the top right side, and is not part of the hamburger icon.
• My Content. The My Content folder provides the User with direct access to
the content they have saved. This is content owned by the User and may only be viewed by
the User. You will be saving your work from today’s workshop in this folder. Click on
Content in the navigation panel to see My Content, Samples and Team
Content. Click on My Content to open the navigation panel to see if there is any User
content in your environment.
• Team Content. The Team Content folder contains all the published enterprise
and shared content the user has permissions to view. Click on Content in the
navigation panel to see My Content, Samples and Team Content. Click on Team Content to
open the navigation panel. Notice there is a list of folders. We will go deeper into these
later in the exercises.
• Manage. Users who have been granted departmental administration permissions are
able to manage content and create or modify Users, schedules, data sources and customize
the environment.
• New. The New button allows Users to create new content. It is intent-driven, meaning
that it allows Users to select what type of content they wish to create, and the Cognos
Analytics UI will open the associated capabilities in UI. From here, Users may create new
Reports, Dashboards, Explorations, Stories and Data Modules.
Switcher Menu. The Switcher menu at the top center of the UI provides a
dropdown button that allows Users to easily move between the different objects they have
worked with during their current session, without opening additional browser windows. (None
will currently show as you have not opened any objects so far, but example is shown below).
Drop Zone. Users may now easily upload files to Cognos Analytics using the Drag and drop
files, open Quick Launch or Browse section at the bottom of the home page.
Now that you are familiar with the User Interface, you’re ready to take Cognos Analytics for a
test drive.
CHROME (WINDOWS)
By default, Chrome will notify you when a pop-up is blocks and give you an option to see it. To
turn off pop-up blocker, follow these instructions:
1. Click the Customize and control Google Chrome menu (the three horizontal bars in the
upper right corner)
2. Select Settings.
3. Click the Show advanced settings... at the bottom.
4. Under Privacy, click the Content Settings button.
5. To disable the pop-up blocker, check the Allow all sites to show pop-ups box.
6. To enable pop-ups on specific sites, check Do not allow any site to show pop-
ups (recommended) and click Exceptions and enter the URL(s).
FIREFOX (WINDOWS)
To continue your Analytics journey, please check out our other tutorials in this Cognos
Analytics 11.2 series.
Visit: https://www.ibm.com/demos/collection/IBM-Cognos-Analytics/