Course 1 Guide
Course 1 Guide
Course Guide
IBM Cognos Analytics:
A t or eports ndamentals (v11.0)
Course code B605 ERC 4.0
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
IBM Training
Preface
January 2018
NOTICES
This information was developed for products and services offered in the USA.
IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for
information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to
state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not
infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any
non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document.
The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive, MD-NC119
Armonk, NY 10504-1785
United States of America
The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in
certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these
changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the
program(s) described in this publication at any time without notice.
Any references in this information to non-IBM websites are provided for convenience only and do not in any manner serve as an endorsement of
those websites. The materials at those websites are not part of the materials for this IBM product and use of those websites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Information
concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available
sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM
products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.
This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the
examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and
addresses used by an actual business enterprise is entirely coincidental.
TRADEMARKS
IBM, the IBM logo, ibm.com and Cognos are trademarks or registered trademarks of International Business Machines Corp., registered in many
jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is
available on the web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml.
Adobe, and the Adobe logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other
countries.
Microsoft, Windows, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.
© Copyright International Business Machines Corporation 2018.
This document may not be reproduced in whole or in part without the prior written permission of IBM.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Contents
Preface................................................................................................................. P-1
Contents ............................................................................................................. P-3
Course overview................................................................................................. P-9
Verify services used in the course environment................................................ P-10
Document conventions ..................................................................................... P-11
Exercises.......................................................................................................... P-12
Additional training resources ............................................................................ P-13
IBM product help .............................................................................................. P-14
Introduction to IBM Cognos Analytics - Reporting ............................ 1-1
Unit objectives .................................................................................................... 1-3
What is IBM Cognos Analytics - Reporting? ....................................................... 1-4
Explore the environment..................................................................................... 1-5
Examine the side panel ...................................................................................... 1-6
Explore authoring templates ............................................................................... 1-7
Design then run the report .................................................................................. 1-8
Change the properties of an object ..................................................................... 1-9
Demonstration 1: Create a simple report .......................................................... 1-14
Dimensionally-modeled and dimensional data sources .................................... 1-21
Demonstration 2: Create a report from a dimensionally-modeled
relational data source .................................................................................. 1-22
Examine personal data sources and data modules .......................................... 1-26
Demonstration 3: Create a report from a personal data source ........................ 1-27
Unit summary ................................................................................................... 1-30
Exercise 1: Create a revenue report ................................................................. 1-31
Create list reports ................................................................................. 2-1
Unit objectives .................................................................................................... 2-3
Examine list reports ............................................................................................ 2-4
Group data ......................................................................................................... 2-5
Include list headers and footers .......................................................................... 2-6
Format list columns ............................................................................................ 2-7
Demonstration 1: Enhance a list report............................................................... 2-8
Understand fact/measure data ......................................................................... 2-17
Understand aggregate data .............................................................................. 2-18
Understand difference in aggregation ............................................................... 2-19
Demonstration 2: Explore data aggregation ..................................................... 2-20
Use shared dimensions to create multi-fact queries ......................................... 2-26
Demonstration 3: Create a multi-fact query in a list report ................................ 2-27
Add repeated information to reports ................................................................. 2-32
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Compare values and highlight proportions using gauge charts and pie charts . 5-22
Demonstration 2: Create a gauge report and a pie chart report ........................ 5-23
Display items on separate axes ........................................................................ 5-30
Demonstration 3: Show the same data graphically and numerically ................. 5-31
Customize charts.............................................................................................. 5-37
What is RAVE?................................................................................................. 5-38
Demonstration 4: Display RAVE visualizations ................................................. 5-39
Unit summary ................................................................................................... 5-43
Exercise 1: Create a dashboard report ............................................................. 5-44
Focus reports using prompts .............................................................. 6-1
Unit objectives .................................................................................................... 6-3
Examine parameters and prompts ...................................................................... 6-4
Create a parameter item on the report................................................................ 6-5
Build a prompt page ........................................................................................... 6-6
Add a prompt item to a report ............................................................................. 6-7
Demonstration 1: Create a prompt by adding a parameter ................................. 6-8
Identify prompt type .......................................................................................... 6-13
Demonstration 2: Add a value prompt to a report ............................................. 6-14
Add pages to a report ....................................................................................... 6-20
Demonstration 3: Add a Select & search prompt to a report ............................. 6-21
Create a cascading prompt .............................................................................. 6-26
Demonstration 4: Create a cascading prompt................................................... 6-27
Unit summary ................................................................................................... 6-34
Exercise 1: Focus a report using value prompts ............................................... 6-35
Extend reports using calculations ....................................................... 7-1
Unit objectives .................................................................................................... 7-3
Derive additional information from the data source ............................................. 7-4
Add run-time information to your report .............................................................. 7-5
Add Date/Time functions to your report .............................................................. 7-6
Add string functions to your report ...................................................................... 7-8
Demonstration 1: Add calculations to a report .................................................... 7-9
Display prompt selections in report titles .......................................................... 7-15
Demonstration 2: Display prompt selections in the report title .......................... 7-16
Unit summary ................................................................................................... 7-22
Exercise 1: Sales percent by sales representative and country ........................ 7-23
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Course overview
Preface overview
IBM Cognos Analytics: Author Reports Fundamentals (v11.0) provides report
authors an opportunity to learn report building techniques using relational data models.
Techniques to enhance, customize, and manage professional reports will be explored.
Demonstrations and exercises will illustrate and reinforce key concepts during this
learning opportunity.
Intended audience
Report Authors
Topics covered
Topics covered in this course include:
• Explore IBM Cognos Analytics report authoring, different report object types (list,
crosstab, chart, visualization, etc.)
• Create and format reports using grouping, headers, footers, and other formatting
options
• Focus reports by filtering data and using prompts
• Add value to your reports using calculations and additional report building
techniques
• Enhance reports with advanced formatting and exceptional data highlighting
Course prerequisites
Participants should have:
• Knowledge of business requirements
• Experience using the Windows operating system
• IBM Cognos Analytics for Consumers (v11.0) WBT or equivalent knowledge
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
To review the services, click Start > Windows Administrative Tools > Services, and
ensure that Status of the above services is Running. If you have closed your virtual
machine and launched it again, it is a best practice to review the status of the services
before continuing with your demonstrations and exercises.
If the “Apache Directory Server - default” or the “DB2 - DB2COPY1 - DB2” service have
stopped, you will need to stop the IBM Cognos service, start the stopped service(s),
and then start the IBM Cognos service once the previously stopped service(s) has
(have) started successfully. You can start and stop a specific service selecting it, then
clicking the Start button in the Toolbar.
Note that it may take around 15 minutes for the IBM Cognos service to start, depending
on system resources. You may also see the following message, which is normal:
Click OK, then continue to monitor and check that the Service is started.
Periodically check if the IBM Cognos service has started, by clicking Refresh .
Once the service has started, you will see a status of Started:
Once you have confirmed that the Service has started, close the Services window.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Document conventions
Conventions used in this guide follow Microsoft Windows application standards, where
applicable. As well, the following conventions are observed:
• Bold: Bold style is used in demonstration and exercise step-by-step solutions to
indicate a user interface element that is actively selected or should be clicked, or
text that must be typed by the participant.
• Italic: Used to reference book titles.
• CAPITALIZATION: All file names, table names, column names, and folder names
appear in this guide exactly as they appear in the application.
To keep capitalization consistent with this guide, type text exactly as shown.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercises
Exercise format
Exercises are designed to allow you to work according to your own pace. Content
contained in an exercise is not fully scripted out to provide an additional challenge.
Refer back to demonstrations if you need assistance with a particular task. The
exercises are structured as follows:
The business question section
This section presents a business-type question followed by a series of tasks. These
tasks provide additional information to help guide you through the exercise. Within
each task, there may be numbered questions relating to the task. Complete the
tasks by using the skills you learned in the unit. If you need more assistance, you
can refer to the Task and Results section for more detailed instruction.
The task and results section
This section provides a task based set of instructions that presents the question as
a series of numbered tasks to be accomplished. The information in the tasks
expands on the business case, providing more details on how to accomplish a task.
Screen captures are also provided at the end of some tasks and at the end of the
exercise to show the expected results.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Task-oriented You are working in the product Welcome page > Help > Help
and you need specific task-
oriented help.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
U n i t 1 I n t r o d u c t i o n t o I B M C o g n o s A n a l yt i c s - R e p o r t i n g
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Examine IBM Cognos Analytics - Reporting and its interface
• Explore different report templates
• Create reports in preview or design mode
• Create a simple, sorted, and formatted report
• Examine dimensionally modelled and dimensional data sources
• Explore how data items are added queries
• Examine personal data sources and data modules
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Home
Data
Toolbox
Pages
Queries
Content pane
Side
panel
Work area
Manage
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Data
Toolbox
Pages Queries
Toolbox – Use this to modify the report by adding objects to the report, that aid in
creating a professional look and feel to the report.
Pages – Use this to navigate through the different pages of the report (report pages
and prompt pages), as well as classes for styling.
Queries – Use this to navigate through the different queries of the report, and change
properties of a query, its data items, or its filters. As well as navigating between
conditional variables; to define conditional variables and their values.
New – Use this to start creating new Reports, Dashboards, Stories, Data Modules, or
upload files to the Cognos Analytics portal
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Item name
Property
Property
setting
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. In the User ID box type brettonf, in the Password box type Education1, and
then click Sign in.
The IBM Cognos Analytics software page displays, the features of the
application that your user has permission to use are displayed.
Now you two tabs on the left: Source and Data items. The Source tab includes
a package explorer for using the data in the package that you have selected,
while the Data items tab contains a list of data items that are in use in your
report.
8. In the middle of the work area, click Add , then click the List icon.
9. In the Source tab, expand the Sales and Marketing (query) folder.
The expanded folder displays the namespaces that are available to you in this
package. The starting point information in this example will work with the Sales
(query) namespace.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
From here, you would work with the metadata of query subjects, query items,
and facts within this selected namespace unless otherwise mentioned.
Follow the start point information carefully, as there will be different logins,
packages, report types, and namespaces used for each demonstration and
exercise in this course.
At the end of each unit, in the last demonstration or exercise, you will be
instructed to log off. This is a best practice, to free up resources, and another
best practice is to close all browser windows, especially if you are finished
working with IBM Cognos Analytics for the day.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Create a simple report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create a simple report
Purpose:
Sales executives would like you to create a report that lists all of the sales
representatives and the revenue they have generated to date. The report
should include their name, position, city, and country. Sort the report by
revenue, in descending order, and display revenue in American dollars.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. Click Open.
5. On the Application bar, click Page views , and then click Page preview.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
8. From the Source tab, expand the Sales fact query subject, and then click and
drag Revenue to add it to the end of the list (you should see a flashing black
bar inside of a white bar, indicating the correct drop zone).
If you place the query item outside of the list report object you will receive a
message indicating that you have created a singleton. You instead want the
new query item to be added to the end of the List, so if this is the case, undo
your last action, then redo step 8.
You may get a summary footer at the end of the List, like the following:
If this happens, then it means that IBM Cognos Analytics Reporting grouped
and summarized the List by default. You don’t want to have the summary footer
by default. In the Application bar, click Undo . To turn off this option:
• In the Application bar, click More > Options.
• In the Report tab, uncheck Automatic group and summary behavior for
lists.
• Click OK.
Now drag the Revenue data item again to the List.
You would like to see Last name appearing before First name.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
9. In the work area, drag the Last name column to the left of the First name
column.
A flashing black bar appears when the item is over a drop zone.
Note: Make sure that the list column body is selected by clicking any one of the
cells in the column, not the column header. To check to see what element of the
report you have selected, check the title bar of the Properties pane.
Now that you have built the report you can view the data items in the query.
Task 4. View the data items in the query.
1. On the side panel, click Queries , then on the content pane, click Query1.
The data items you added to the list appear in the Data Items pane for the
query. The names of the data items correspond to the column titles in the report
layout.
2. In the Data Items pane, click Position name.
You want to view information about the data the Position name data item
retrieves from the data source.
8. On the side panel, click Pages , and then click Page1 to return to the work
area.
Task 5. Remove a column from the report.
It has been decided that Employee level in the list report object is not needed in
the report. You will remove it from the list.
1. In the list report object, click anywhere in the Employee level column.
2. From the now visible container toolbar, click More , and then click Cut .
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
place, and so on. If you want to see data displayed in a particular currency, the
data must be stored in the data source in that currency.
7. Click OK to close the Data format dialog box.
8. Click Page views , and then click Page design.
The result appears as follows:
Page design mode is an alternate way to edit report objects such as the List.
9. On the Application bar, click Run options , and then click Run HTML.
A section of the result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Create a report from a dimensionally-modeled relational data source
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Create a report from a dimensionally-modeled relational data
source
Purpose:
You want to explore a dimensionally-modeled relational data source and
create a report that enables you to drill down to a lower level of detail.
5. Click Add in the center of the work area, click List, and then click OK to
accept the default options presented.
6. Expand Sales and Marketing (analysis).
You see the namespaces in the Sales and Marketing (analysis) folder. Notice
the namespace symbols .
7. Expand the Sales namespace.
A section of the results appear as follows:
The available measures and dimensions are displayed in the data tree.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Members folder and the Region code query item display in the data
tree.
4. Expand the Members folder (under Region) to see the five sales regions.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. Click the body of the 2011 cell (notice that 2011 now appears as a hyperlink),
then click 2011 to drill-down for more detail.
The results appear as follows, showing the quarterly time periods of 2011.
3. Close the rendered report page (Reporting) tab to return to the work area.
4. Leave IBM Cognos Analytics open.
Results:
You have explored a dimensionally-modeled relational data source in IBM
Cognos Analytics - Reporting. You created a report that demonstrated how
you can drill down to a lower level of detail in the data source.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Create a report from a personal data source
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Create a report from a personal data source
Purpose:
The purpose of this demonstration is to show you how to take a simple
Microsoft Excel file and use its data as the source for a report.
10. From the dropdown menu in the Application bar at the top, click Remove to
the right of Sales Data Module.
Task 3. Create a report from the data module.
1. Return to the Welcome page, and then click New > Report , from the
New dialog, select the Blank template, and then click OK.
2. From the side panel, click Data, under the Source tab, click Add report data,
and then click My content.
3. Click Sales Data Module, and then click Open.
4. From work area add List object, and then click OK.
5. From source tap, expand Sales Data Module > Sales Data Module.
6. Drag Retailer country to the list.
7. Drag Order method type to the right of Retailer country.
8. Drag Quantity to the right of Order method type.
9. From the application bar, click Run options, and then click Run HTML.
A section of the results appear as follows:
10. Close the rendered report page tab to return to the reporting work area.
11. Leave IBM Cognos Analytics open.
Results:
You created a report from a Microsoft Excel file. By uploading the file, and
creating a data module from it, you were then able to take that result and
create a standard list report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Examine IBM Cognos Analytics - Reporting and its interface
• Explore different report templates
• Create reports in preview or design mode
• Create a simple, sorted, and formatted report
• Examine dimensionally modelled and dimensional data sources
• Explore how data items are added queries
• Examine personal data sources and data modules
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Create a revenue report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Create a revenue report
Sales executives, from the Great Outdoors Samples Company, want you to create a
report showing revenue for each product within each product type for each product line.
The report must list the revenue from the greatest to the least.
• Create a list report using the GO data warehouse (query) package.
• Navigate to Sales and Marketing (query) / Sales (query).
• Add the following query items to a new list report object in the order provided:
• Products: Product line, Product type, and Product
• Sales fact: Revenue
• Sort Revenue in descending order.
For more information about where to work and the exercise results, refer to the Tasks
and results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Tasks and results
Server: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Task 1. Create a list report.
• Create a new Blank report using the Team content\Samples\Models\GO data
warehouse (query) package.
• Add a List object to the report.
• Data/Source tab: Navigate to
Sales and Marketing (query) / Sales (query) / Products.
• Add Product line, Product type, and Product to the List object.
• Source tab: Navigate to
Sales and Marketing (query) / Sales (query) / Sales fact.
• Add Revenue to the List object.
The results appear as follows:
• Close all web browser windows and tabs, and if prompted, select Leave this
page.
Note: If your environment appears to not react to your clicks, there may be
another browser tab in the background with a message awaiting your response.
Try clicking the other open browser tab(s), and select Leave this page, when
you see this prompt.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You created a report showing revenue for each product within each product type for
each product line, and the list is sorted on revenue in descending order.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 2 Create list reports
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Group, sort, and format list reports
• Describe options for aggregating data
• Create a multi-fact query
• Create a report with repeated data structure
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Group data
• Group your data and choose how often to display item names by
changing the group span properties.
Group data
You can group on one or more columns depending on how you want to see your data.
The List report should preferably follow a 1:n cardinality from left to right in order to
properly display the grouping. Which means that you start by the root parent level, then
its children, then more children (e.g. Region, then Country, then City... etc.).
Spanning one group of items by a second group can be helpful if the second group
contains many items.
You can level span grouped items only by other grouped items on the report.
To group related information together, select a column and click Group/Ungroup on the
Toolbar. For example, when country and city are both grouped, you can choose to
show the country name each time the country changes (span Country by Country),
each time the city changes (span Country by City), or every time there is a new record
(no level spanning).
A grouped item will appear at the top of a new page regardless of level spanning. For
example, when the List is grouped by Country, the Country name will appear at the top
of the next page, even for records in the same City.
Grouping a column in a List generates an "order by" clause in the generated SQL, so
your data is returned grouped and automatically sorted ascending.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Footer for a
Data Item
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Enhance a list report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Enhance a list report
Purpose:
Executives want you to create and format a report to highlight and sort the
product lines based on the revenue that they generated. They also want you
to highlight the retailer type and sort revenue descending by quantity sold.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Note: If you are unsure as to how to begin using the starting point information above,
please refer to Unit 1, in the section titled Demonstration and exercise start point
information.
2. From the Application bar, click Run options, and then click Run HTML.
A new web browser tab opens with the rendered report.
3. Click the Bottom navigation button found on the lower left of the page to view
the final rows of the report, noting that there is no summary data.
Due to the complexity of the final report, you will not include any summary row
in your final report. This will make it easier for the consumer to review the data.
4. Close the rendered report tab and return to the report authoring work area tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Task 2. Group and span columns, and then add a report title
1. In the list data container, click the <Product line> list column body, Ctrl-click
the <Product type> and <Product> List column bodies, and then from the
Toobar, click Group / Ungroup .
Results appear as follows:
5. On the side bar, click Toolbox , and then drag a Block to the left of
the List, dropping it when there is a flashing black vertical bar.
6. Drag a Text item inside the Block object that you just placed in the work
area.
7. In the Text dialog box, type Product type Sales and Revenue by Product,
and then click OK.
8. In the Toolbar, click Font , then change Family to Arial, Size to 16pt,
Weight to Bold, and check Underline, then click OK.
A section of the result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
9. On the Application bar, click Run options, and then click Run HTML.
A section of the results appear as follows:
Product type is spanned by Product. Every time Product changes the Product
type is repeated.
10. Close the rendered report tab.
Task 3. Add a list page header, an overall header, and a group
header.
You want to add a List page header for the report and an overall header to add
additional information to the report.
1. Click anywhere in the List, then from the Toolbar, click More > Headers &
footers > List headers & footers.
2. Select List page header and Overall header, and then click OK.
6. In the Font dialog box, change Family to Arial, Size to 12 pt., Weight to Bold,
then click OK.
7. In the List, double-click Overall.
8. In the Text box, replace the default text with Attention: Sales Managers, then
click OK.
9. In the List, click the <Product line> List column body.
10. On the Toolbar, click More > Headers & footers > Create header.
When a header is created from a column, the header stays within the List
object. You cannot create a header from a spanned column. Now you will move
the List column titles to the start of the details of the report
11. Select the List object, and from the Properties pane, under the GENERAL
section, change the Column titles property to At start of details.
12. With the <Product line> List column body still selected, press the Delete key in
the keyboard to remove the redundant column.
A section of the results appear as follows:
When a column is sorted the Sort icon appears in the list column title
cell .
2. With the <Revenue> List column body still selected, on the Toolbar, click Data
format .
3. In the Data format dialog box, under Format type, select Currency.
4. Under Properties, click Currency.
5. From the list, select $ (USD) United States of America, dollar, and then
click OK.
Task 5. Format the list column body.
1. Click the <Retailer type> List column body.
2. On the toolbar, click Font , change Family to Arial, Style to Italic.
3. Click Foreground Color, click Purple, click OK, and then click OK again.
The font properties are applied to the body cells in the Retailer type column.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The color property is applied only to the column title because the List column
body formatting overrides the list column formatting. However, because you
have not set the size or weight for the list column body, the value in the cells
now appears in 12pt bold font.
Task 7. Sort the Product line column by the Revenue
generated.
1. Click the <Revenue> List column body, on the Toolbar, click Summarize
and then click Total .
2. In the upper left corner of the Product type header cell click the Container
Selector to select the entire List.
You may need to click Esc to clear the toolbar so that you can see the List
column headers.
3. In the Properties pane, under DATA, double-click Grouping & sorting.
Because Product line, Product type, and Product are grouped, these items
appear under the Groups folder.
4. In the Groups pane, expand Product line, and then from the Data items pane,
drag Revenue onto the Product line \ Sort list folder.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Product line column will now be sorted in ascending order based on the
revenue generated by each product line. The product line that generated the
least revenue will appear at the beginning of the report.
5. Click OK, and then, on the Application bar, run the report in HTML.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Explore data aggregation
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Explore data aggregation
Purpose:
You have been asked by management to create a report that compares how
different order methods are performing for each product line. This report
should display the revenue that individual order methods generate for each
product line and the average revenue all order methods generate for each
product line. You will create this report and examine the underlying query
model at various stages.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a basic report and examine the query model.
1. On the side panel, click New > Report.
2. In the Templates and themes dialog, choose the Blank template, and click OK.
3. In the Data \ Source tab click Add report data .
4. Browse to the Team content \ Samples \ Models \ GO data warehouse
(query), then click Open.
5. Add a List object to the report page, click OK to accept the defaults.
6. Add the following query items to the List:
• Products: Product line
• Order method: Order method type
• Sales fact: Revenue
7. On the side panel, click Queries , and then under Queries, click Query1.
Note the three data items in the Data Items pane. Each data item corresponds
to an item in a column in the List.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
8. In the Data Items pane, click Revenue, and then click Show properties from
the Application bar.
In the Properties pane notice that the Detail aggregation property is set to Total.
When the query groups and summarizes data at the lowest level of detail, the
query will summarize data by calculating the total revenue generated at the
lowest level of detail. In our report, the lowest level of detail is Revenue
generated by each Order method type, in each Product line.
You have not yet added any aggregate revenue values for grouped data items
in report layout. Therefore, the Summary aggregation property for Revenue is
set to Default.
9. Run the report in HTML.
A section of the results appear as follows:
10. You can examine the revenue generated by each product line using each order
method.
11. Close the rendered report tab.
Task 2. View individual records rather than data grouped and
summarized at the lowest level of detail.
You would like to review the amount of revenue generated by each order made
using a particular Order method type for each product line. To achieve this
result, you will set the Auto Group & Summarize property for this query to No.
1. Verify that Query1 is selected.
2. From the Properties pane, under DATA, click the Auto group & summarize
property, and then change it to No.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report no longer displays a single row for the total revenue generated by all
sales of each product line using a specific order method type. Instead, it
displays individual rows containing the revenue generated by each individual
sale that used a specific order method type for each product line.
For example, a row in the report displays data for a golf equipment sale made
by telephone. This sale generated $41,958.76 in revenue.
If you wanted to display these individual records in your final report, you would
group and sort this data to make it easier to read. However, you decide you
would prefer to have this data grouped and summarized at the lowest level of
detail.
4. Close the rendered report tab.
5. From the Properties pane, for Query1, click the Auto group & summarize
property, and then change it back to Yes.
Task 3. Group query items, add aggregate data, and observe
the results in the query.
As requested, you will now group this data by product line and add aggregate
data to display the average revenue generated by all order method types for
each product line.
1. On the side bard, click Pages , and then click Page1.
2. In the List, click the <Revenue> List column body, then from the Toolbar, click
Data format .
3. Change the Format type to Currency.
4. Change the Currency property to USD - United States of America, dollar,
and then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. In the List, click the <Product line> List column body, and then on the Toolbar,
click Group / Ungroup.
The product Line column is grouped, and you can now include aggregate data
at a higher level of detail. You want to see the average revenue generated by all
order method types for each product line, and for all product lines.
6. In the list, click the <Revenue> List column body, then from the Toolbar, click
Summarize , and then click Average .
The results appear as follows:
You will examine how the aggregation you specified has reflected in the
Summary aggregation of the new Summary data item for Revenue.
7. On the side bar, click Queries, then click Query1, then in the Data Items pane,
click Average(Revenue).
In the Properties pane, notice that the Summary property for
Average (Revenue) is set to Average. This is because you have specified that
revenue for grouped items in the report be aggregated to display the average
revenue generated.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
In this report, data is grouped by product line. Below each product line row is an
aggregate row displaying the average revenue generated by all order method
types for that product line.
You can see that for all product lines, revenue generated by the Web method
far exceeded those of other order methods.
9. Close the rendered report tab.
Task 4. View tabular data.
1. In the Queries tab, click Query1.
2. Right-click Query1, then click View tabular data.
3. Click OK to the warning message.
Notice that although you grouped the Product line data item in the report layout,
in the tabular data retrieved for the query, product line data is still ungrouped.
This option retrieves the data without any grouping or formatting. It is a useful
method for testing the query itself regardless of the layout.
4. Close the rendered report tab.
5. Return back to the Welcome page.
Results:
You created a list report displaying revenue generated by each order method
for each product line and the average revenue all order methods generate for
each product line. You also specified that the query should display individual
data records instead of grouped and summarized data, and you then
compared the results.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Shared
dimension
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Create a multi-fact query in a List report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Create a multi-fact query in a list report
Purpose:
You have been asked to create a report showing sales revenue and target
revenue for each year. You will need to use conformed query items in the
report to ensure the results are accurate and consistent with expected results.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content/Samples/Models/GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)/Sales target (query)
Task 1. Add two facts from different query subjects to a list
report.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the report page.
3. Add the following data items to the List:
• Sales (query)\Sales fact: Revenue
• Sales target (query)\Sales target fact: Sales target
4. On the Application bar, run the report in HTML.
The results appears as follows:
These are the two distinct aggregated totals for Revenue and Sales target.
These values were returned as a result of two separate Select statements.
5. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Revenue values change with each year, but the Sales target values do not.
This is because the Time (close day) is not a conformed dimension. This
dimension is not shared between both the Revenue and Sales target facts. The
Sales target fact has no relationship to Time (close day).
3. Close the rendered report tab.
Task 3. Add a query item from a shared dimension to the list
report.
You will add a shared dimension to the report. This dimension will have a
relationship to both Revenue and Sales target.
1. Under Sales target (query), point to Time.
The Sales target (query) namespace contains a query object called Time.
Notice there is no query object called Time (close date), which confirms what
you already saw from running the report: Time (close date) is not shared across
the facts.
2. Under Sales (query), point to Time.
Time query subject exists in both the Sales target (query) and the Sales (query)
namespaces. Therefore, it is a shared dimension.
3. Under Sales (query), expand Time, and then drag Year to the beginning of the
List.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Sales target numbers now change from year to year. In 2010, there was
7,060,666.21 worth of orders that were placed in that year, but did not close
until 2011. The orders that were placed in 2010 and closed in that same year
totaled 907,292,137.51. Because Sales target has no relationship to the non-
conformed dimension, Year (close date), it just repeats the value it knows for
2010. This is an example of the inaccurate results that can occur when using
non-conformed query items with multi-fact reports. Therefore, you should use
conformed query items.
5. Close the rendered report tab.
Task 4. Delete a query item from the list report.
You want to delete the Year (close date) query item and only have the Year
query item, from a conformed dimension, in the List.
1. In the List, click the Year (close date) List column body, on the toolbar, click
More, and then click Delete.
2. Run the report in HTML.
The results appear as shown below:
The Revenue and Sales target numbers now change from year to year. The
report runs as expected.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Repeater table
Mailing List
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4
Create a mailing list report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4:
Create a mailing list report
Purpose:
You will create a mailing list for all of your sales offices. The addresses must
be listed alphabetically by county with the country name appearing at the top.
For easy readability, each page must contain no more than three addresses
across and four down.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content/Samples/Models/GO data warehouse (query)
Report Type: Repeater Table
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a repeater table.
1. Create a new Blank report using the GO data warehouse (query) package.
2. From the Toolbox, expand DATA CONTAINER, then drag a Repeater table to
the report page, accept the defaults, and click OK.
3. From the Toolbox, expand LAYOUT, then drag a Table onto the Repeater
table drop zone.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. In the Insert table dialog box, change the number of columns to 1, the number
of rows to 7, and then click OK.
The results appear as follows: The work area contains a two-column, three-row
repeater table containing six tables, each having one column and seven rows.
A section of the results appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. Drag Address 1, Address 2, City, Province or State, Postal zone, and again
Country into the remaining table cells.
A section of the results appear as follows:
When you add multiple instances of the same data item (as in this case when
you added the same Country item twice) the second and subsequent items will
be numbered to show that it is a duplicate entry. An alternative would have been
to drag Country from the Data items tab.
Task 3. List countries in alphabetical order and apply a style
to the headers.
1. Click the <Country> item at the top of one of the tables, ensuring you select
only the item and not the entire cell.
All of the Country items at the top of each table are selected.
2. On the toolbar, click Sort, and then click Ascending.
A Sort Ascending icon appears beside the Country item in the first table.
3. With the <Country> item still selected, from the Toolbar, click Font, change
Size to 12pt, then change Weight to Bold, then click OK.
The <Country> items appear in bold, black text.
Task 4. Change the frequency and positioning of the tables.
1. Click the Container Selector in the top left-hand corner of the Repeater
table, to select the entire container.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Group, sort, and format List reports
• Describe options for aggregating data
• Create a multi-fact query
• Create a report with repeated data structure
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Create and format a List report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Create and format a list report
You have been asked to create a list report where users can review the gross profit
generated by retailer types for each region.
To accomplish this:
• Create a list report using the GO data warehouse (query) package.
• Add the following items:
• Retailer type: Retailer type
• Retailers: Region
• Sales fact: Gross profit
• Group Retailer type.
• Sort Gross profit as descending.
• Aggregate Gross profit by Total.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You have created a List report where users can review the gross profit generated
by retailer types for each region.
• Close the rendered report tab.
• Sign out of IBM Cognos Analytics, if prompted click OK to continue without
saving and then close the browser.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 3 Focus reports using filters
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Create filters to narrow the focus of reports
• Examine detail and summary filters
• Determine when to apply filters on aggregate data
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Create filters
• To narrow the focus of your report, you can create a filter expression in
three different ways:
Combined
Advanced
Create filters
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Expression Definition
[Revenue]>100000
Filter to show only data from January to June for the year 2012
Expression Definition
[Sales (query)].[Time].[Date] between 2012-01-01 and 2012-06-30
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Apply filters to a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Apply filters to a report
Purpose:
The Vice President of Sales has requested a report that shows sales
performance in each country for 2012. He wants to see the performance for
representatives in Southern Europe so he can present an award to the top
seller when he visits next month.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list.
1. Add the following query items to a new list object:
• Employee by region: Country, City, First name, Last name, Position name
• Sales fact: Revenue
2. Ctrl-click <Country> and <City>, and then on the list toolbar, click
Group / Ungroup.
3. Click <Country>, on the list toolbar, click More and click Headers & footers,
and then click Create header.
4. With <Country> still selected, press the Delete key to delete the redundant
<Country> list column body.
5. Click the <Revenue> list column body, on the list toolbar click Summarize, and
then click Total.
6. Click the <Revenue> list column body, on the list toolbar click Sort, and then
click Descending.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. On the list toolbar, click Filters , and then click Edit Filters.
The Filters - Query 1 dialog box appears. There are two tabs: one for creating
filters at the detail level, and one for creating filters at the summary level.
3. With the Detail Filters tab selected, click Add , click Advanced, and then
click OK.
4. Under Available Components, from the Source tab, expand
Sales and Marketing (query), expand Sales (query), and then
expand Time.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. Create and validate the following expression. (Using the Hint outlined below,
you can create the expression differently):
[Sales (query)].[Time].[Year]=2012
Hint:
• Drag Year from the Time query subject, into the Expression Definition pane.
There are different ways of creating filters to achieve the same result:
• create the expression [Sales (query)].[Time].[Date]between 2012-01-01 and
2012-12-31
• create filters by adding operators and conditions to query items using SQL
syntax
Only 2012 sales are included in the report. On the last page of the report, the
Overall - Total revenue is $1,495,891,100.90 for 2012.
9. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. Click the arrow to add the items to the Selected values pane.
6. Click Page down , click Spain, and then add it into the Selected values
pane.
7. Click OK to close the Filter condition dialog box, and then click OK to close
the Filters dialog box.
8. Run the report in HTML.
A section of the results appears as follows:
In 2012, Italy generated the most revenue of Southern European countries, and
Sabine Grüner from Austria earned the top sales rep award.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Before Auto-aggregation
After Auto-aggregation
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Apply a detail filter on fact data in a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Apply a detail filter on fact data in a report
Purpose:
You want to make a report displaying the total revenue produced by top
performing products. To create this report, you will add several filters and
examine how they affect the query.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list.
1. Add the following query items to a new List:
• Products: Product line, Product type
• Sales fact: Revenue
2. Click the <Product line> list column body, and then on the toolbar, click
Group / Ungroup.
3. Click <Revenue> list column body, on the toolbar click Summarize, and then
click Total.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Product line data is grouped, and an aggregate row displays the total
revenue generated by all product types in each product line. Notice that
Cooking Gear for the Camping Equipment product line generated
$272,835,984.18 in revenue. You will compare this number with the revenue
number generated later in Task 3.
5. Close the rendered report tab.
6. On the side bar, click Queries, and then click Query1.
7. In the Data Items pane, click Revenue, and then click Show properties from
the Application bar.
In the Properties pane, notice that the Detail aggregation property for Revenue
is set to Total. This is because in the layout you added an aggregate row
displaying total revenue for grouped items in the report.
8. On the side bar, click Queries, click Query 1.
In the Properties pane, you notice that the Auto group & summarize property for
the query is set to Yes. You want to view each individual data record, so you will
change this property to No.
9. In the Properties pane, click the Auto group & summarize property, and then
select No from the list.
10. Run the report in HTML.
Note: Do not click the Bottom navigation button as this report returns a large
amount of data and it will take a considerable amount of time to render the last
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
page. The order you see displayed in the results may vary, as there has been
no sorting applied.
A section of the results appears similar to the following:
The report displays separate rows for revenue generated by individual sales of
each product type.
11. Close the rendered report tab.
Task 2. Apply a detail filter before auto aggregation and
examine the effects.
You want this report to include only data from individual orders of each product
type that generated more than $100,000 in revenue. You will create a detail filter
and apply it before auto aggregation.
1. On the side bar, click Pages, and then click Page1.
2. Select the list data container.
3. On the Toolbar, click Filters, click Edit Filters, and then ensure the Detail
Filters tab is selected.
4. Click Add, from the Custom based on data item list select Revenue, and then
click OK.
5. Ensure that the Operator is >, and then in the Value text box, type
100000 (100 thousand).
6. Click OK, and then in the Application area, click Before auto aggregation.
7. Click OK to close the dialog box.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report now displays only data for individual sales of product types that
generated more than $100,000 in revenue.
9. In the report, click Bottom.
The total revenue generated by product type orders of over $100,000 is
$496,713,003.20.
10. Close the rendered report tab.
11. On the side bar, Click Queries, and then click Query 1.
The filter that you created appears in the Detail Filters pane.
12. In the Detail Filters pane, click Revenue > 100000.
In the Properties pane, the properties specified for the filter display as follows:
• Definition: displays the expression you created for this filter
• Usage: is set to Required
• Application: is set to Before Auto Aggregation
Task 3. Set the query to group and summarize data.
You want to see only one row for sales of each product type, so you will set the
Auto Group & Summarize property for the query back to Yes.
1. In the side bar, click Queries, and then in the work area, click Query 1.
2. In the Properties pane, under DATA, change the Auto group & summarize
property to Yes.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
There is only one row for each product type because the query will group and
summarize the data at the lowest level of detail.
The revenue generated by Cooking Gear is $1,863,445.82. When you ran this
report without the filter in Task 1, the revenue generated by Cooking Gear was
$272,835,984.18. The value is different because it no longer includes individual
orders that generated less than one hundred thousand dollars in revenue.
The total revenue generated by all product lines is $496,713,003.20, which is
the same as when you ran the report in Task 2 with the Auto group &
summarize property for the query set to No.
Since you specified that the filter was to be applied before the query will group
and summarize retrieved data, the filter will exclude the same data regardless of
whether the query retrieves data that is summarized or not summarized.
4. Close the rendered report tab.
Task 4. Apply a detail filter after auto aggregation.
You want the report to display only product types for which the total revenue for
all sales is greater than ten million dollars. To achieve this, you will create a
detail filter and apply it after auto aggregation.
1. In the side bar, click Pages, and then click Page1.
2. Select the List data container, on the Toolbar click Filters, and then click
Edit Filters.
3. Click Add, select Revenue from the Custom based on data item list, and then
click OK.
4. Ensure that the Operator is >, and then in the Value text box, type
10000000 (10 million).
5. Click OK, and then ensure that under the Application section, After auto
aggregation has been selected.
6. Click OK to close the Filters dialog box.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Only the five product types that generated total revenue greater than ten million
are displayed in the report.
2. Close the rendered report tab.
You have decided to include product types in the report even if the aggregated
revenue generated by all sales of the product type is less than ten million
dollars. However, in case you may want to use this filter in the future, you will
disable this filter instead of deleting it.
3. Select the list data container.
4. On the toolbar, click Filters, and then click Edit Filters.
5. Click Revenue > 10000000, and then in the Usage area, click Disabled.
6. Click OK to close the dialog box.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
All product types that generated over $100,000 in revenue (in at least one
order), again appear in the report - which indicates that the second filter you
added has been disabled.
8. Close the rendered report tab.
9. On the side bar, click Queries, and then click Query1.
Notice that the Revenue > 10000000 filter still appears in the query, though it is
grayed out and unavailable to the query.
10. In the Detail Filters pane, click Revenue > 10000000.
In the Properties pane notice that, as specified, the Usage property for the filter
is set to Disabled.
11. Leave the report authoring tab open for the next demonstration.
Results:
You created a report that displayed the total revenue produced by top
performing products. You applied detail filters to the report so that only
products producing a certain amount of revenue were displayed. You disabled
a filter and viewed the effects.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Apply a summary filter to a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Apply a summary filter to a report
Purpose:
You have been asked to create a report that focuses on product lines that
have generated revenues greater than $1 billion. You will use a summary filter
to focus on this data.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list and apply a summary filter.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List object to the report page.
3. Add the following query items to the List:
• Products: Product line, Product type
• Sales fact: Revenue
4. Click <Product line> List column body, and then on the list toolbar, click
Group / Ungroup.
5. Click <Revenue> List column body, on the list toolbar, click Summarize, and
then click Total.
6. On the Toolbar, click Filters, and then click Edit Filters.
7. Click the Summary Filters tab, click Add, click Advanced, and then click OK.
8. Create and validate the following expression:
Total(Revenue)>1000000000
Hint:
• drag Total(Revenue) from the Data items tab
• 1,000,000,000 (1 billion)
9. Click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Only two product lines generated total revenues greater than $1,000,000,000:
Camping Equipment and Personal Accessories.
Task 2. Navigate to the query explorer.
1. Close the rendered report tab.
2. On the side bar, click Queries, then click Query 1.
The summary filter you added appears in the Summary Filters pane.
3. On the Application bar, click Show Properties.
4. In the Summary Filters pane, click [Total(Revenue)] > 1000000000.
In the Properties pane, the Scope property for this filter is set to Product line.
5. Leave the report authoring tab open for the following Exercise.
Results:
You have created a report that used a summary filter to focus on product lines
that generated total revenues greater than $1 billion.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Create filters to narrow the focus of reports
• Examine detail and summary filters
• Determine when to apply filters on aggregate data
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Create a report focused on top performing
product types and product lines
Exercise 1: Create a report focused on top performing product types and product lines
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Create a report focused on top performing product types and
product lines
You have been asked to create a report that displays revenue by product line and
product type. The report must show the product types that generated revenue greater
than $100 million and product lines that generated revenue greater than $400 million.
To accomplish this:
• Add the following query items to a new List object using the GO data warehouse
(query) package/Sales and Marketing (query)/Sales (query).
• Products: Product line, Product type
• Sales fact: Revenue
• Group by Product line, Total on Revenue
• Add a detail filter (After auto-aggregation) for revenue greater than $100 million.
• Add a summary filter on Product line that generated total revenue greater than
$420 million.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Run the report in HTML and then observe the results for Product type and
Revenue totals.
A section of the results appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Run the report in HTML and then compare to the previous run.
Observe that most of the Product line total revenues have changed and that
Product types that generated less than $100 million are not included in these
totals. Outdoor Protection is no longer included in the report because all the
Product types that belong to it generated less than $100 million.
A section of the results appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Now with both the detailed and summary filters applied, you should see that
only three product lines remain in the results queries. This includes only
product lines that had an original summary over 420,000,000 and excluding
any product types with revenue less than 100,000,000.
A section of the results appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 4 Create Crosstab reports
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Format and sort Crosstab reports
• Create complex Crosstabs using drag and drop functionality
• Create Crosstabs using unrelated data items
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Query Items
Measures
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create a simple Crosstab report
Purpose:
You want to create and format a report to show revenue generated by order
method for each year. You want to see yearly trends in sales for each order
method.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a Crosstab
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a Crosstab object to the report page.
3. From the Data/Source tab, use the click and drag method to add the following
query items to the new Crosstab data container object:
Rows:
• Products: Product line
Columns:
• Order method: Order method type
Measures:
• Sales fact: Revenue
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Your report shows the revenue generated for each product line by each order
method. You want to add relevancy to the revenue items by adding years to the
report to compare revenue generated in each year.
5. Close the rendered report tab.
Task 2. Add Year to the Crosstab report and sort on Year
1. Expand the Time query subject, and then drag Year to the Columns, nested
under <#Order method type#> as a child (or nested) cell.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Create complex Crosstab reports
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Create complex Crosstab reports
Purpose:
Management needs you to create a Crosstab report for users to analyze the
revenue generated and the quantity sold for different order methods. You will
add data to examine the revenue generated by different order methods in the
countries where your products are sold. You will also add order year data to
the report and explore the flexibility of layout options using the Crosstab drop
zones.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a Crosstab report
1. Open a new Blank report using the GO data warehouse (query) package.
2. Add a Crosstab to the page body.
3. From the Data/Source tab, add the following query items to the new Crosstab
report object:
Rows:
• Products: Product line
Columns:
• Order method: Order method type
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. From the Source tab, from Sales fact, drag Quantity to the Rows area as a
peer of <#Revenue#>.
Both Revenue and Quantity are now nested in the Product line rows of the
Crosstab.
The results appear as follows:
You can analyze the revenue generated and the quantity sold by each order
method for each product line.
4. Close the rendered report tab.
Task 3. Add items as peers on a Crosstab edge
You are also interested in how revenue generated by different order methods
varies from country to country.
1. From the Source tab, expand Employee by region, and then drag Country to
the Rows area, as a peer of <#Product line#>.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Both Product line and Country now appear on the rows edge of the Crosstab.
The results appear as follows:
Country has no measure associated with it, since Revenue and Quantity are
children of Product line only.
2. From the Data Items tab, drag Revenue to the Rows area as a child of
<#Country#>.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You can examine the revenue generated by each order method in different
countries as well as the revenue generated and the quantity sold by each order
method for each product line.
4. Close the rendered report tab.
You now want to examine data for years and order method types. To do this,
you will add Year to the column edge of the Crosstab.
5. From the Source tab, expand Time, and then drag Year to the left of
<#Order method type#> in the Columns area of the Crosstab.
The results appear as follows:
Both Year and Order method types appear on the column edge of the Crosstab.
The results appear as follows:
You can examine revenue generated and quantity sold for your product lines as
well as by different order methods. You can also examine the revenue
generated in different countries by different order methods. For example, you
can see that no Mountaineering Equipment was sold in 2010.
9. Close the rendered report tab.
10. Leave the report authoring tab open for the next demonstration.
Results:
You created a report that displayed revenue generated and quantity sold by
your product lines in different years and by different order methods. The
report also displayed the revenue generated in different countries in different
years and by different order methods. You explored the flexibility of layout
options using the Crosstab drop zones.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Node
Nodes
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Sort and format a Crosstab report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Sort and format a Crosstab report
Purpose:
Sales Managers want you to create a Crosstab report with data in which users
can easily understand the sort order and can distinguish between data based
on appearance. The report should show revenue for each year of operation for
each Product type within each Product line. In the same Crosstab, you want to
display Revenue for each Branch Region.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create and sort a Crosstab
1. Create a new Blank report, using the GO data warehouse (query) package.
2. Add a Crosstab object to the report page.
3. From the Source tab, add the following query items to the new Crosstab:
Rows:
• Products: Product line
• Employee by region: Branch region as a peer of <#Product line#>.
Columns:
• Time: Year
Measures:
• Sales fact: Revenue
The results appear as follows:
4. Click <#Year#>.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
9. Click OK.
10. Click <#Year#>.
11. On the Toolbar, click Summarize, and then click Total.
Task 3. Add aggregate data to the Crosstab
1. From the Source tab, under Products, drag Product type to the Rows as a
child of <#Product line#>.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Click the <#Branch region#> row and drag it above the <#Product line#> row.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Format and sort Crosstab reports
• Create complex Crosstabs using drag and drop functionality
• Create Crosstabs using unrelated data items
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Present unrelated items in a Crosstab using a discontinuous Crosstab
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Present unrelated items in a Crosstab using a
discontinuous Crosstab
The sales managers have asked you to create a report showing revenue and quantity
for each product line by year and quarter. The report should show revenue and quantity
data for each sales region and they should be formatted in different colors to be more
easily distinguished, blue for revenue and red for quantity. Since the report will have
rows with unrelated data, you will be creating a discontinuous Crosstab report.
To accomplish this:
• Create a new Crosstab report using the GO data warehouse (query) package.
• Add the following query items to the new Crosstab report object:
• Rows:
• Products: Product line,
• Time: Year (below Product line as a peer),
• Time: Quarter (nested to the right of Year as a child)
• Columns: Employee by region: Branch region
• Sales fact: Revenue and Quantity (nested under Branch region as children)
• Sort <#Branch region#> as ascending.
• Sort <#Product line#> as ascending.
• Sort <#Year#> as descending.
• Format <#Revenue#> Member Fact Cells with a Blue foreground color.
• Format <#Quantity#> Member Fact Cells with a Red foreground color.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 5 Present data graphically
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Create charts containing peer and nested columns
• Present data using different chart type options
• Add context to charts
• Create and reuse custom chart palettes
• Introduce RAVE visualizations
• Present key data in a single dashboard report
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Legacy New
Charts
Visualizations Visualizations
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Year added as a
peer of Region
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Create and format a chart report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create and format a chart report
Purpose:
You will create a combination chart displaying yearly revenue generated by
different regions, product lines. You want users to easily distinguish between
regional data and yearly data. Because this report will be printed in black and
white, you will create a custom palette for the chart and then reuse it for the
second series chart. You will add baselines for this chart to display the mean,
and plus or minus one standard deviation.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Report Type: Blank
Package: Team content\Samples\Models\GO data warehouse (query)
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the combination chart
1. Create a new Blank report using the GO data warehouse (query) package.
2. In the work area, click Add , then click Visualization .
3. In Visualization gallery dialog, click filter icon on the top right corner, then
select Charts.
4. From the left pane, click Combination, then from the right pane, double-click
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
6. In the Properties pane, under GENERAL, click Series type, and then select
Clustered from the list.
The results appear as follows:
Both the region and the year data appear on the chart, however it is difficult to
see the values of the different regions. The chart can be customized further in
order to provide a better view of the data.
8. Close the rendered report tab.
Task 3. Modify by sorting and by changing bar shape
1. In the Series area, click the <#Region#> text.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The year data appears as a bar chart and the region data appears as an area
chart. This allows the yearly revenue generated by each product line to be
compared with the revenue generated by each region.
10. Close the rendered report tab.
Task 4. Format an axis title.
1. In the chart area, expand Axis titles.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. In the Text dialog box, type Product Lines - Total Revenue:, press the space
bar, and then click OK.
6. Repeat steps 2 to 5 to add the title Revenue by Year and Region to the
Primary Axis Title.
7. Click Toolbox , and then expand TEXTUAL.
8. Drag a Query calculation to the end of the text in the horizontal axis title drop
zone.
Note: Insert a query calculation into your report to add a new row or column with
values that are based on a calculation.
Insert a layout calculation to add run-time information, such as current
date, current time, and user name.
9. In the Name box, replace the text with Total Revenue for Product Lines, and
then create and validate the following expression:
total([Revenue])
Hint: drag Revenue from the Data Items tab.
10. Click OK to close the dialog box.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The total product line revenue displays under the horizontal axis.
12. Close rendered report tab.
Task 5. Create a custom palette (optional)
Tasks 5-7 are optional; however, all tasks must be completed - otherwise, they
should not be done at all.
This chart will be printed in black and white, therefore, you will create a custom
palette that uses the Gray Scale palette and patterns.
1. Click the <#Region#> series chart icon, then in the Properties pane, under
COLOR & BACKGROUND, double-click the Palette property.
6. In the Fill type list, select Pattern, in the Pattern pane, click the second option
(vertical lines), change the Default color and Foreground color to Black, and
then change the Background color to White.
The results appear as follows:
7. With the new vertical line pattern still selected, under the left pane, click
Move Down to move the new pattern below the second gray scale entry.
8. Repeat steps 5 to 7, to add these three additional patterns to the palette:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
9. For the last pattern created, click Move Up until the new pattern (hash
marks), that you just added, appears at the top of the list of palette entries.
The results appear as follows (note you will not see one of the patterns, due to
scrolling…but it is there…):
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. In the Baselines dialog box, click New, and then from the list, select Mean.
6. Ensure that the following properties are set as follows:
• Based on: Year, Year
• Number of standard deviations: 1
• Baseline Label: Mean + 1 STD Deviation
• Line Styles: Weight: 2 px, Color: Green
7. Click OK to close the Line styles dialog box.
You will add a baseline to display a -1 standard deviation from the mean
revenue based on Year.
8. In the Baselines dialog box, click New, and then from the list, select Mean.
9. Ensure that the following properties are set as follows:
• Based on: Year, Year
• Number of standard deviations: -1
• Baseline Label: Mean - 1 STD Deviation
• Line Styles: Weight: 2 px, Color: Red
10. Click OK to close the Line styles dialog box.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The chart uses a custom palette and displays the baselines you specified.
15. Close the rendered report tab.
Results:
You created a report using a combination chart to display revenue generated
in different regions as an area chart, and a bar chart displaying revenue
generated for different years. You added data to the horizontal axis title
displaying the total revenue generated by all product lines and created a
custom palette for the region area chart. You then reused this palette for the
year bar chart, and then added data-driven baselines to this chart.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Compare values and highlight proportions using gauge charts and pie charts
Gauge charts are useful for comparing values between a small number of variables.
A gauge chart plots a data series against a measure using a dial or gauge for the
measure, and needles or indicators for the series members.
Pie charts highlight data proportionally against a measure, allowing for quick
identification of major performers.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Create a gauge report and a pie chart report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Create a gauge report and a pie chart report
Purpose:
You want to create a chart for users to quickly compare how different product
lines are selling. You would also like to see this data represented
proportionally. A gauge chart is a good way to show comparisons between
multiple variables, while a pie chart will show the data proportionally.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Gauge chart with beveled border
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a gauge chart
1. Create a new Blank report using the GO data warehouse (query) package.
2. In the work area, click Add , then click Visualization .
3. From the left pane click Gauge, and then on the right pane, double-click Gauge
chart with beveled border.
4. From the Source tab, add the following query items to the new chart:
• Default measure (y-axis) drop zone:
• Sales fact: Revenue
• Categories (gauges) drop zone:
• Time: Year
• Gauge Axes drop zone:
• Products: Product line
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
8. In the Custom color tab, under #RGB, type CCCCCC, then click OK.
9. Under Colors, click the second color option, and then click Color.
10. In the Custom color tab, under #RGB, type CCFFFF, then click OK.
11. In the Position (%) box, change the value to 50.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
8. Move the cursor over the expanded green slice to view the tooltip.
The results are as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Show the same data graphically and numerically
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Show the same data graphically and numerically
Purpose:
You want to create a report that shows revenue and quantity by Product line
and Region. You want the report to focus on Camping Equipment,
Mountaineering Equipment, and Personal Accessories sales for the three
European sales regions. You will build a crosstab report and add a
combination chart that reports on the same information. You will add a
microchart to the crosstab for a quick overview of specified regions and
product lines.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team Content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Add query items to a new Crosstab
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a Crosstab to the work area.
3. Add the following query items to the Crosstab:
• Rows:
• Order method: Order method type
• Columns:
• Time Year
• Sales Fact: Revenue, Quantity (nested under Year)
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This chart may be too complicated for your consumers to read clearly. In Task 4
you will add filters to report only on E-mail, Sales visits, and Telephone. Web will
not be included since it is the clear winner for Revenue and Quantity.
8. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. In the Categories (x-axis) section of the microchart, click Quantity, and then
press Delete.
The entire section may disappear. If it does, you may need to click the chart
background again, to see the results of your Delete action just performed.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Customize charts
Apply a graduated
background
Add notes
Rename
axes Display
tool tips
Customize charts
Custom elements such as color schemes, rescaling of axes numbers, renaming axes,
and displaying details can enhance reports.
Fills and Background customization can greatly enhance the visual appeal of charts.
Tooltips are available in charts by default, and provide additional information while
adding a level of interaction to the chart.
Notes can hide whatever is under them, so it is important to properly position them in
the chart so as to not block important information.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
What is RAVE?
• RAVE: Rapidly Adaptive Visualization Engine
• globalized and accessible
• uses visJSON language to describe visualization
• flexible and extensible
• interacts with animations
Visualization
RAVE
Language
Engine
What is RAVE?
The Rapidly Adaptive Visualization Engine (RAVE) is being used to enable advanced
visualization technology in many different IBM projects and products today. The
declarative language for visualizations (charts, interactivity, events, etc.), is a cross-IBM
standard.
It is not a traditional charting engine with pre-defined chart types (such as column, and
pie charts). Rather, it is a general-purpose visualization engine that can produce both
traditional and new charts and visualizations.
RAVE does not describe charts by type (bar chart, line chart, histogram, and so on) but
by mapping. For example:
• bar chart: basic 2D coordinates, categorical x numeric displayed with intervals
dropped from locations
• line chart: basic 2D coordinates, any x numeric displayed with lines connecting
locations
RAVE supports statistical operations (such as sum, count), and styling (such as color).
The grammar-based approach provides flexibility: new charts, or chart attributes, can
be added without requiring the product to be updated.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4
Display RAVE visualizations
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4:
Display visualizations
Purpose:
You have been asked to create a report that compares some performance
indicators for all product lines. Users need to be able to quickly identify
product line performance. You will use a visualization that was made available
in the portal Library to accomplish this task.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Blank
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Select a visualization
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a Visualization object to the work area.
3. In the filter button on the top right corner, select New visualizations.
The Visualization gallery dialog displays the visualizations that are available.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You could directly double-click the visualization that you want, from those
available in the center panel, but if you have many items to choose from, you
will want to filter on a specific type to make it easier to find.
4. In the Refine by pane on the left, click Bubble.
The number displayed for each type, indicates how many visualizations tagged
with that type are available in the gallery. Notice how many bubble visualizations
are available in the center pane.
5. In the Refine by pane, click All.
All filters have been removed, and all visualizations are displayed in the center
pane.
6. In the Refine by pane, click Word cloud.
7. In the center pane, click Word cloud.
Notice the description of the visualization in the right pane.
8. Click OK to add the visualization.
You could have also double-clicked directly on Word cloud in the center pane
instead of filtering it first.
9. Click OK to accept the default values for the Object and query names dialog
box.
Task 2. Populate the word cloud visualization and run the
report
1. From the Source tab, add the following query items to the visualization:
• Values > Size: Sales fact: Revenue
• Categories > Words: Products: Product line
• Categories > Color: Products: Product line
A section of the results appear as follows:
4. In the Properties pane, under the COMMON section, set Width to 700.
5. In the Properties pane, under the LEGEND section, set Show legend to No.
6. Run the report as HTML.
7. Once the report is generated, hover the cursor over one of the words.
The results will appear similar to the following:
In this visualization, you can very quickly identify that Personal Accessories has
achieved the highest revenue, followed by Camping Equipment. You can hover
the mouse over words to see the details in tooltips. However, you would need
an additional detail report to see details of the revenue achieved.
8. Close the rendered report tab.
Results:
You used IBM Cognos Analytics - Reporting to create a word cloud
visualization report, based on an existing visualization that was made
available in the Library. You also successfully added data to the visualization,
and ran the report to display the results.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Create charts containing peer and nested columns
• Present data using different chart type options
• Add context to charts
• Create and reuse custom chart palettes
• Introduce RAVE visualizations
• Present key data in a single dashboard report
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Create a dashboard report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Create a dashboard report
You are Frank Bretton, a report author, and have been asked to create an interactive
report that lets users examine a variety of important sales data in one view. To do this,
you will create a dashboard report that contains a gauge chart that compares the gross
profit of each product line by region, a combination chart that shows revenue earned by
each product line by retailer type and region on separate axis, and finally a crosstab
report that shows the gross margin of each product line by year and region.
To accomplish this:
• Using the GO data warehouse (query) package, the Sales and Marketing (query)
folder, and the Sales (query) namespace, add a gauge chart, a combination
chart, a crosstab, and a table to a blank template.
• Create a gauge chart (Gauge Chart with Bevelled Border) with Gross profit,
Product line, and Region, and then format the gauge chart to enhance its visual
appeal.
• Create a combination chart (Clustered Bar and Clustered Line) with Revenue,
Product line, and Retailer type with Region as a peer. Format and enhance the
visual appeal of the chart.
• Create a crosstab with Gross margin, Product line, and Year with Region as a
peer.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demos for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Rendered report tab: Verify the results, and then close the tab.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 6 Focus reports using prompts
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Identify various prompt types
• Use parameters and prompts to focus data
• Choose between prompt types
• Navigate between pages
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
List report
Layout
Text box Value
prompt prompt
Date
prompt
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Value prompt
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Create a prompt by adding a parameter
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create a prompt by adding a parameter
Purpose:
You have been asked to provide a report showing product sales by date to
determine the revenue generated by each individual order. Because the report
contains detailed information, you want to be able to filter the report to show
only orders made after a specified date. You will create a parameter to prompt
a user for a date and the report will return all dates greater than the one
specified.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List object to the report.
3. From the Source tab, add the following query items to the new List:
• Sales order: Order number
• Time: Date
• Products: Product
• Sales fact: Revenue
The results appear as follows:
4. Click the <Date> list column body, then on the toolbar click Sort, and then click
Ascending .
5. This will sort the result by the order date only, to have more control over the
results you will sort it by the order number as well.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Click the <Order number> list column body, then on the toolbar click Sort, then
click Edit Layout Sorting.
6. In the Grouping and sorting dialog, drag Order number from the Data items
pane to the Detail Sort List under Date.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report will only retrieve data where the order date is greater than the date
specified by the user.
5. Click OK to close the Detail filter expression dialog box, and then click OK to
close the Filters dialog box.
6. Run the report in HTML.
You are prompted to select a date and time.
7. Select 2013-Jan-1, accept the default time, and then click OK.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Add a value prompt to a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Add a value prompt to a report
Purpose:
You will create a report to help reduce production costs. Because you have
many products, you will add a prompt so that users can view product data
within a specified product line.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List object to the report.
3. From the Source tab, add the following query items to the List object:
• Products: Product line, Product type, Product
• Sales fact: Unit cost
• Gross margin (calculated fact under Sales (query))
4. In the report, click <Product line>, Ctrl-click <Product type>, and then click
Group / Ungroup on the Toolbar.
The results appear as follows:
5. From the Toolbox tab, drag a Table object to the left of the List object, clear
the Maximize width checkbox, and then click OK.
Task 2. Add a product line prompt to the report page
1. From the Toolbox tab, expand PROMPTING, and then drag a Value prompt
into the left table cell.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You want the prompt to filter on product line code to make the query more
efficient. However, the prompt will display product line names, not codes, to
make selections easier.
2. In the Prompt Wizard - Value prompt dialog box, change the parameter name
to ProductLineCode, and then click Next.
3. On the Create Filter page, ensure that Create a parameterized filter is
selected, and then beside Package item, click the ellipsis.
4. Expand the Sales and Marketing (query) folder, Sales (query) namespace,
Products, and then Codes folder.
5. Click Product line code, and then click OK.
Product line code is used because it is an indexed field. Querying on an indexed
field is much faster and more efficient.
6. Select Make the filter optional.
A section of the results appear as follows:
7. Click Next, and then beside Values to display, click the ellipsis.
8. Expand the Sales and Marketing (query) folder, expand the Sales (query)
namespace, and then expand Products.
9. Click Product line, click OK, and then click Finish.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Task 3. Add a prompt button and set the properties for the
value prompt
1. From the Toolbox tab, in the PROMPTING section, drag a Prompt button into
the right table cell.
2. In the Properties pane, under GENERAL, click Type, and then from the list,
select Finish.
3. Run the report in HTML.
The report opens in the browser, displaying data for all product lines. The report
can run before answering the prompt because the prompt and the filter are
defined as optional. To control the usage of your prompt between required or
optional, make the change directly on your filter through your filters Usage
property instead of changing this setting on your prompt. The filters Usage
property overrides the prompt’s Required property.
4. From the Product line prompt list, select Golf Equipment, and then click
Finish.
Only Golf Equipment product line information is displayed.
5. Close the rendered report tab.
6. Click the Finish prompt button, and then press Delete.
7. Click the Value Prompt, to select it.
8. In the Properties pane, under GENERAL, change the Auto-submit property to
Yes.
Task 4. Customize the prompt
You want to customize the prompt header to provide instructions on how to use
the prompt.
1. With the value prompt selected, in the Properties pane, under PROMPT TEXT,
click Header Text, and then click the ellipsis.
2. Select Specified text, and then click the ellipsis to the right of the text box.
3. Type the following in the Default text box: Select the desired Product line:.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
With the Auto-submit property set to Yes, you can use the Product line list to
select which Product line data you want to display without having to click an
additional button to submit your selection.
3. Close the rendered report tab.
4. From the Application bar, click Save, navigate to My content, and then save
the report as Unit 6-Prompt.
5. Leave the report authoring tab open as it will be used for the next
demonstration.
Results:
You created a report to show cost and gross margin for each product. You
added a prompt so that users can view product data within a specified
product line.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Add a Select & search prompt to a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Add a Select & search prompt to a report
Purpose:
You want to change your current report to allow users to select multiple
products to show in the report. To do this you must delete the current value
prompt and replace it with the Select & search prompt.
Note: Before starting this demonstration, be sure to complete Demonstration 2.
The report ('Unit 6-Prompt') from Demonstration 2 is used for Demonstration 3.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Run the report
1. With the report from the previous demonstration still open (My content\Unit 6-
Prompt), run the report in HTML.
2. In the Product line list, select Camping Equipment.
A section of the results appear as follows:
The report includes information on only one product line. You will now modify
the prompt to let users search and select one or more product names.
3. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
6. Click Select all, and then click Add selected items to your choices , then
click Finish to see the Firefly results.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report runs and is filtered to display only the data associated with the
products that you selected based on your search.
11. Close the rendered report tab.
12. Leave the report authoring tab open for the next demonstration.
Results:
You removed the existing value prompt and filter and updated the existing
report with a Select & search prompt. This allowed users to search for and
select from, a list of product names based on keyword options.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Product line
Product type
Product name
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4
Create a cascading prompt
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4:
Create a cascading prompt
Purpose:
Executives need a report that lets them analyze product returns. They want a
report that enables them to focus on specific product lines and product types
within those product lines for all order methods. This report will be delivered
to the shareholders during their monthly meeting, so the executives would
like a cover page to add a more official look.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query), Returned items (query)
Task 1. Create a List with title, and then create a prompt
page with a cascading prompt
1. Create a new Blank report using the GO data warehouse (query) package.
2. Click the page body, then from the toolbar, click More > Headers and footers >
Page header and footer, check the Header, and click OK.
3. Click Add in the Page Header and add a Text item with the following text:
Product type by Product line for all Order methods.
4. In the Page header, click Add , then click Text item .
5. In the Text dialog, type Product type by Product line for all Order methods,
then press Enter.
6. Click the Text item, then from the Toolbar, click Font .
7. Ser Family to Arial Black, Size to 14pt.
8. Add a List object to the page body.
9. From the Data\Source tab, add the following query items to the List object:
• Returned items (query) > Products: Product line and Product type
• Returned items (query) > Order method: Order method type
• Returned items (query) > Returned items fact: Return quantity
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
10. Ctrl-click <Product line> and <Product type>, then on the Toolbar, click
Group / Ungroup .
11. Click <Return quantity>, on the Toolbar click Summarize, then click Total.
12. Click <Product line>, then Ctrl-click <Product type> and <Order method
type>.
13. On the Toolbar, click More > Build prompt page.
Reporting creates a prompt page that asks the user about data items that you
selected, and creates filters for these prompts, and opens the new prompt page.
Task 2. Set behavior patterns for prompts
1. In the work area of the new prompt page, click the Product type value prompt.
2. From the Application bar, click Show properties (if required).
In the Properties pane, under GENERAL, double-click Cascade source, from
the list, select Product line, and then click OK.
The Product types available to choose from will depend on the Product line
selected when the prompt submits.
3. In the Properties pane, under GENERAL, ensure that Multi-select is set to
Yes, and that Auto-submit is set to No.
The user can select multiple product types, but the selection will not submit
automatically. Once all selections for the prompts are complete, the user must
submit the request by clicking Finish.
4. In the work area, click the Product line value prompt.
5. In the Properties pane, under GENERAL, in the Multi-select list, select No.
6. Under GENERAL, set the Auto-submit property to Yes.
The user can only select one product line, and the selection will be submitted
automatically.
7. In the work area, click the Order method type value prompt.
8. In the Properties pane, under GENERAL, in the Multi-select list, click No.
Task 3. Create a static value to select all order method type
values
1. With the Order method type value prompt still selected, under DATA, double-
click Static choices, and then click Add .
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. Type ALL for both the Use and Display values, click OK to close the Edit
dialog box. And then click OK to close the Static choices dialog box.
The value entered for static choices is case sensitive and should be entered the
exact same way in your filter expression.
You will specify what values to return when ALL is selected in the Order method
prompt.
3. From the Pages tab, click Page1.
4. Click anywhere in the List, from the Toolbar, click Filters > Edit Filters.
5. Click the Order method type filter, and then click Edit.
6. Replace and validate the existing expression with the following:
if (?Order method type?='ALL') then ([Order method type]=[Order method
type]) else([Sales (query)].[Order method].[Order method type] = ?Order
method type?)
Hint: You can drag ?Order method type? from the Parameters tab, and drag
[Order method type] from the Data items tab.
7. Choose any options for the prompts, then click OK to close the validation box.
8. Click OK to close the Detail filter expression dialog box, and then click OK to
close the Filters dialog box.
Task 4. Create a cover page
1. On the Pages tab, click Report pages, then click Add page .
2. Drag the new Page (Page2) above Page1.
3. In the Properties pane, under MISCELLANEOUS, modify the Name property to
CoverPage, and then press Enter.
4. Double-click CoverPage to open it.
5. In the Page body, click Add, then click Table . Accept the defaults and click
OK.
6. Click the left table cell, and then Ctrl-click the right table cell.
7. On the Toolbar, click the arrow beside Horizontal alignment options ,
then click Center .
8. Click the page body (anywhere on the page below the table), and then on the
Toolbar, click the arrow beside Vertical alignment options , then click
Middle .
Task 5. Create title and image for cover page
1. In the left table cell, click Add, then click Text item.
2. In the Text dialog box, type GO Data Warehouse - Revenue Generated, and
then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. In the Toolbar, click Font, then set Family to Arial Black, Size to 16pt, and
Weight to Bold, then click OK.
4. From the Toolbox, expand LAYOUT, and then drag an Image object into the
right table cell.
5. Double-click the Image object, then in the Image Picker dialog, open the menu
beside the Browse button, then select samples/images.
6. Scroll down and double-click cover2.jpg.
7. In the Properties pane, under POSITIONING, double-click the Size & overflow
property.
8. Set the Width to 150 pixels, the Height to 75 pixels, and then click OK.
Task 6. Run the report and view details for specific products.
1. Run the report in HTML.
A section of the results appear as follows:
The Prompt page appears prompting for a Product line. The star icon indicates
that this selection is mandatory.
2. In the Product line prompt, click Camping Equipment.
The results for the Product type prompt update and appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. In the Order method type prompt, click ALL, and then click Finish.
The report cover page appears.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Identify various prompt types
• Use parameters and prompts to focus data
• Choose between prompt types
• Navigate between pages
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Focus a report using value prompts
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Focus a report using value prompts
Company executives have asked you to create a report that shows revenue data by
product line where they can choose the region(s) and the year that they want the report
to include. They would like the prompts to show up on a separate prompt page.
To accomplish this:
• Using the GO data warehouse (query) package.
• Add a Combination chart (Clustered Bar and Clustered Line)
• Add the following query items:
• Default measure (y-axis):
• Sales fact: Revenue
• Categories (x-axis):
• Products: Product line
• Series (primary axis) - Bar Chart Type:
• Employee by region: Branch Region
• Series (primary axis) - Line Chart Type:
• Time: Year
• Create a prompt page with two value prompts:
• Branch region
• Year
• Create a cover page.
• Add a table with 2 columns and one row
• Add a title and company logo to the cover page.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Toolbox: Under PROMPTING, drag a Value prompt to the first row second
column.
• Prompt Wizard - Value prompt dialog box: Create a multi-select parameter
named RegionPrompt, based on Branch region (in Employee by region).
• Toolbox pane: Add a Text Item to the left of the value prompt.
• Toolbar: Click Font, and set Size to 14pt.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You have created a report that shows revenue data by product line where users
can choose the region(s) and the year that they want the report to include. You
have put the prompts on a separate prompt page and created a cover page.
• Close the rendered report tab.
• Close all browser windows.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
U n i t 7 E xt e n d r e p o r t s u s i n g c a l c u l a t i o n s
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Create calculations based on data in the data source
• Add run-time information to the reports
• Create expressions using functions
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Query Calculations
Australia
Alice Walter 19,040,701.32 16,834,700 2,206,001.32 113%
Dave Smythe 16,652,383.41 15,084,300 1,568,083.41 110%
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
current_date returns
today's date
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Not all data sources support functions the same way. The data modeler can set a
quality of service indicator (icon appearing beside some functions) on functions to give
a visual clue about the behavior of the functions. Report authors can use the quality of
service indicators to determine which functions to use in a report. The quality of service
indicators are:
• (X) not available -This function is not available for any data sources in the
package.
• (!!) limited availability -The function is not available for some data sources in the
package.
• (!) poor performance -The function is available for all data sources in the package
but may have poor performance in some data sources.
• (no symbol) unconstrained -The function is available for all data sources.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Add calculations to a report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Add calculations to a report
Purpose:
You have been asked to create a report that will return revenue and planned
revenue for product lines for January 2010. In addition to looking at actual
revenue versus planned revenue, users want to see a percentage for how
much of the planned revenue was met. The report should also display the date
that the report is run.
Portal: http://vclassbase:9300/bi
User/Password: brettonf/Education1
Package: Team content \Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list and include a calculated column for
percent of goal.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the report
3. From the Source tab, add the following query items to the new list report object:
• Time: Date
• Products: Product line
• Sales fact: Revenue, Planned revenue
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. From the Toolbox, expand TEXTUAL, and then drag a Query calculation to
make it the last column.
The Data item expression dialog box appears.
5. In the Name field, type Percent of Goal, and then create and validate the
following expression:
[Revenue]/[Planned revenue]
Hint: Drag Revenue and Planned revenue form the Data Items tab.
6. Click OK.
This column will show the percentage of revenue achieved for each product line
on each day.
Task 2. Add a detail filter to filter dates.
1. On the toolbar, click Filters, Edit Filters, and then click Add.
2. Click Advanced, and then OK.
3. Create and validate the following expression:
[Date] between _first_of_month(2010-01-01) and _last_of_month
(2010-03-31)
Hint: Drag [Date] from the Data items tab. Drag ‘between’ from the Functions
tab, from the Operators folder. And drag _first_of_month and _last_of_month
from the Functions tab, from the Business Date/Time Functions folder.
Data items selected from the Source tab will be calculated and summarized
after aggregation, whereas data items selected from the Data Items tab will be
calculated and summarized before aggregation.
This filter will return dates between January 1, 2010 and March 31, 2010 (First
quarter of 2010). The _first_of_month() function returns the first day of the
month in the date expression, while the _last_of_month() function returns the
last day of the month in the date expression. You can use any date for the
expression as long as it’s in the proper format. Make sure that there is a space
between each function.
4. Click OK to close the expression dialog box, and then click OK to close the
Filters dialog box.
Task 3. Format the data in the list.
1. In the work area, click the <Date> list column body.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. On the toolbar, click Sort > Edit Layout Sorting, and sort by Date then Product
line by dragging them from Data items pane, then click OK.
3. Click the <Percent of Goal> list column body, then on the toolbar click
Summarize, and then click Calculated .
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. In the page header, click Add , then click Table , with 1 column and 2
rows, and click OK.
3. In the top cell, click Add , then click Text item . Type 2010-First
Quarter Sales Figures and Overall Calculated Percent of Goal, and click
OK.
4. Click the Text item, and from the toolbar, click Font, and set size to 14pt.
5. Add a Text item into the bottom table cell, type Report run date:, press the
spacebar, and then click OK.
6. From the Toolbox, drag a Layout calculation to the right of the text item.
7. Create and validate the following expression:
AsOfDate()
Hint: Drag AsOfDate from the Functions tab, from the Report Functions folder.
8. Click OK.
9. Run the report in HTML.
A section of the results appear as follows:
10. Click Bottom to see that the report includes all of the months of the first quarter,
and the overall calculated percent of goal.
11. Close the rendered report tab.
Task 5. Overwrite query expression.
1. Double-click the <Percent of Goal> list column body to open the expression
dialog box.
2. Overwrite the current expression using query items from the Source tab as
follows: [Sales (query)].[Sales fact].[Revenue] / [Sales (query)].[Sales
fact].[Planned revenue]
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Percent of Goal calculation does not match because the timing of the
aggregation is different.
5. Close the rendered report tab.
6. Click <Percent of Goal> list column body.
7. In the Properties pane, under the DATA ITEM section, change the
Detail aggregation function to Calculated.
8. Run the report in HTML. Now the expression returns the correct results.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Sales region
Report title: if the user Report title: if the user does
selects to view only not select a prompt option
data for the Asia Pacific and therefore views data for
sales region all sales regions
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Display prompt selections in the report title
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Display prompt selections in the report title
Purpose:
You have been asked for a report that displays the quantity of products sold
for each order year. You also need to display all product lines in uppercase.
The report should contain an optional prompt that lets users view data by
sales region. Add a report title that indicates which sales region users select
in the prompt. It should also indicate if they do not select a region as well. You
will use a layout calculation to display the report title.
Portal: http://vclassbase:9300/bi
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the crosstab and edit the expression to return
product line values in uppercase.
1. Create a new Blank report using the GO data warehouse (query).
2. Add a Crosstab object to report page.
3. From the Source tab, add the following query items to the new crosstab report
object:
• Rows area:
• Products: Product line, Product type (nested to the right of Product line)
• Columns area:
• Time: Year
• Measures area:
• Sales fact: Quantity
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. Click the <#Year#> crosstab node member, then from the toolbar, click Sort >
Ascending.
5. Click the <#Product type#> crosstab node member, then from the toolbar, click
Summarize, and then click Total.
6. On the crosstab, click Total.
7. In the Properties pane, under TEXT SOURCE, change Source type to
Data item value.
8. In the Properties pane, under TEXT SOURCE, change Data item value to
Product line.
9. In the crosstab, double-click <#Product line#>.
10. Update and validate the existing expression as follows:
upper([Sales (query)].[Products].[Product line])
11. Click OK.
Task 2. Add an optional parameter.
You will now add an optional filter containing a parameter that lets users specify
the sales region for which they want to view data.
1. Select the entire crosstab, the on the toolbar, click Filters > Edit Filters.
2. In the Detail Filters tab, click Add, select Advanced, and then click OK.
3. From the Available Components pane, expand Sales and Marketing (query),
Sales (query), and then expand Employee by region.
4. Create and validate the following expression (validate using Americas):
[Sales (query)].[Employee by region].[Branch region]=?Region?
5. Click OK to close the validation dialog box, and then OK to close the Detail
filter expression dialog box.
6. In the Filters dialog, select the filter you added, click Optional, then click OK.
You will run this report to test the prompt.
7. Run the report in HTML.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report displays data only for the Asia Pacific region.
Notice that the Total line caption now reflects the product line that it summarizes
and that all Product line titles are uppercase.
9. Close the rendered report tab.
Task 3. Display the parameter value in the report title.
To give this report some context, you want the region selected to appear in the
report title. If no region is selected, you want the report title to indicate that the
data displayed represents quantity sold in all regions.
1. To add the page header, click anywhere in the work area around the crosstab,
then from the toolbar click More > Headers & footers > Page header & footer,
check Header, and click OK.
2. In the page header, click Add , then click Text item . Type
Quantity Sold in, press the spacebar, and then click OK.
You will create a layout calculation to display the prompt option selected in the
report title.
3. From the Toolbox, expand TEXTUAL, and then drag a Layout calculation
object to the end of the report title.
You will create an expression that specifies that if a parameter value is selected,
the layout calculation should show the display value for the selected parameter
value. Otherwise, the layout calculation should show All Regions.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report title explains that this report contains data about quantity sold in all
regions.
3. Close the rendered report tab, and then run the report in HTML.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. On the prompt page, select Asia Pacific, and then click OK.
A section of the results appear as follows:
The report title explains that this report contains data about quantity sold in
Asia Pacific.
5. Close the rendered report tab.
6. Leave the report authoring tab open for the following exercise.
Results:
You created a report that displays the quantity sold for products by order
year. You also displayed all product lines in uppercase. Users have the option
to select a region for which to view data. To add context to the report, the
user's prompt selection appears in the report title, by using a layout
calculation.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Create calculations based on data in the data source
• Add run-time information to the reports
• Create expressions using functions
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Sales percent by sales representative and country
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Sales percent by sales representative and country
Sales management would like to improve overall product line sales. To do this they
need to start with a report that shows which product lines each salesperson (sales
representative, or sales rep) tends to sell the most of. Sales management would like to
be able to also filter by specified year and country or countries.
To accomplish this:
• Create a new list report using the GO data warehouse (query) package.
• Add the following query items to the list report object:
• Employee by region: Country
• Employee by region: Employee name
• Time: Year
• Products: Product Line
• Sales fact: Revenue
• Add a calculated column called EmpRevPercent.
• Group Country, Year and Employee Name.
• Create a header using Country.
• Summarize the Revenue by Total and format the data as $(USD).
• Add an EmpRevPercent summary row and format as a percent.
• Format summary row to display the data item value.
• Create a Year parameter.
• Add a prompt to allow users to focus on one or more countries.
• Add a report title.
• Run the report and then focus on information for Canada and the United States,
and for the year 2012.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You have created a report that shows which product lines each sales person
tends to sell the most of. The report is focused on a specified year and country or
countries.
• Close the rendered report tab.
• Sign out of IBM Cognos Analytics.
• Close all browser windows.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Use additional
report building techniques
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 8 Use additional report building techniques
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Enhance report design with report objects
• Reuse objects within the same report
• Share layout components among separate reports
• Discuss report templates
• Handle reports with no available data
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
40%
Reports may have headers and footers. Determine what objects to use based on the
kind of information you want to display, and how it should appear. If information applies
to the entire report and should appear on every page, place it in the header or footer.
Properties applied to an object will also be applied to any child items (this is called:
Property Inheritance). Therefore, it is best to set styling properties at the highest level.
Use the Select Ancestor button on the title bar of Properties pane to help determine the
level at which to apply settings.
Applying properties at the highest level saves time and effort. For example, if you set
the font type for a list object then all items in the list or added to the list will inherit the
same font.
Avoid fixed size objects because they are rigid (not flexible) and may not work with your
overall design.
If objects have borders, use margins to make the objects look spaced apart.
An empty block does not add space between objects. The block must contain an
object, or you must specify the padding of the block to use the block for spacing.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Add objects
• Add, format, and organize objects to enhance the appearance of
reports.
Table
Text Item (2 columns, 1 row) Image
Block with
Text Item
Add objects
You can format items and objects to change their size, shape, location, and behavior
according to your needs.
You can use text items to communicate relevant information about the report to its
users.
You can add a background image to a data frame object like a list or crosstab, a cell in
a table, or to the entire page. It is important to be aware that a background image can
obscure the data in the report to some degree.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Table with
2 rows ( ) and
2 columns ( )
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Grouping Sectioning
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Formatted block
Header
containing text
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Reuse objects within the same report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Reuse objects within the same report
Purpose:
You have been asked to add some descriptive information to a sectioned
report. The report must include a title on each page describing the contents of
the report, and information about whom to contact if users have any
questions.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Blank
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Add a list to a blank page.
1. Create a new Blank report using the GO data warehouse (query) package.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Because you selected Year before you converted the List into a Crosstab, it
now appears in columns. Product line appears on rows, and Revenue, because
it can be aggregated, appears as measures on the report. You can now
interpret the data more quickly.
6. Close the rendered report tab.
Task 3. Add a header and footer, and add objects to the
header.
1. Click below the Crosstab to select the Page body.
2. From the Toolbar, click Headers & footers > Page header & footer, select the
Header and Footer checkboxes, and then click OK.
3. In the Page header, click Add, then click Block.
4. From the Toolbox, drag a Text Item onto the Block object in the Page header.
5. In the Text field, type Product Line Sales by Year, and then click OK.
Task 4. Apply style to the header block and text.
You will format the objects that you added to the header.
1. With the Text item still selected, from Toolbar, click Font, and change the
Family to Arial Black, Size to 16pt, and Foreground Color to White.
2. Click the Page header block, then on the Toolbar, click the Background color
options arrow next to , click the Basic colors tab, and then click Teal.
The result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The report contains a header with the title that you specified. It has been
formatted according to the properties you have set.
You now want to reuse the objects that you created and formatted to avoid
repeating steps in building the footer.
Task 5. Specify unique object names.
1. Click the header block, in the Properties pane, under MISCELLANEOUS, in
the Name property, type Title Block, and then press Enter.
2. Click the header text, in the Properties pane, under MISCELLANEOUS, in the
Name property, type Title Text, and then press Enter.
If you try to assign a name that is not unique, Reporting displays a warning
message informing you that the name must be unique.
Hint: If you select an element of the report, such as a column in a list, and want
to deselect it, press Esc on your keyboard.
Task 6. Reuse the header block and change the text in the
footer.
1. From the Toolbox, expand the ADVANCED section, drag a Layout
component reference object into the footer.
To reuse an object in the footer, you need to specify the object to be referenced.
You can choose from the two objects to which you have previously assigned
names, as well as the list containing the crosstab. In this case, you will select
the block object because it also contains the text item object.
2. Under Available components to reference, click Title Block, and then
click OK.
The footer now contains the same object and formatting as the header.
3. Click the text in the footer.
In the Properties pane you can only select the layout component reference
object and not the Block nor the Text item objects individually. This is because it
is referencing the Block object in the header. Remember, the Block object in the
header is where the Tet item is defined, it is not defined in the footer.
You want to change the text in the footer to include contact information.
4. In the Properties pane, click Overrides, and then click the ellipsis.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. In the Overrides dialog box, select the Title Text checkbox, and then click OK.
The layout component reference object in the footer no longer contains text.
Only the referenced block object remains.
6. Drag a Text item object into the component override area of the footer block,
type Please contact Sales Manager for more details, and then click OK.
7. Click the text item object in the footer, and then change the font to 12 pt, Bold,
and Foreground color of White.
8. Run the report in HTML, and then click Bottom to view the footer.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Shared objects are stored in the layout component cache. The cache contains the
definitions of the shared objects. When you open a report that contains Layout
component reference objects, the report(s) containing the shared layout objects is
opened and the definitions are copied into the Reporting cache. Object names cannot
contain white spaces and must begin with a letter. When you override child objects, you
can replace the child object with any other object, not just an object of the same type.
For example, if the child object is a Text item, you can replace it with an Image.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Reuse layout components in a different report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Reuse layout components in a different report
Purpose:
To save time when creating new reports, you will create one report containing
a standard page header that can be used in many. Next, you will create one
report that will reuse this page header.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Blank
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a report with a page header that can be
reused in other reports
1. Create a new Blank report using the GO data warehouse (query) package.
2. On the work area, click Add, and then click Table.
3. Create a table with 3 columns and 1 row.
Because you want to reuse this table as a page header in other reports, you will
name the table object.
4. In the Application bar, click Show properties .
5. In the Properties pane, under MISCELLANEOUS, in the Name property, type
StandardPageHeader, and then press Enter.
You want to add your company logo to the left side of the page header.
6. From the Toolbox, expand LAYOUT, and then drag an Image object to the left
cell of the table.
7. Double-click the Image object.
8. In the Image Picker dialog, from the drop-down list, select samples/images.
9. In the images, scroll down and double-click go_logo_small.jpg.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
10. Click the center cell of the table, then from the Toolbar, click Font .
11. In the Font dialog, set Family to Arial Black, Size to 16pt, and Weight to Bold,
the click OK.
You want to add a text item in the middle of the page header that can be used
to add a report title.
12. In the center cell of the table, click Add, then click Text item, then click OK to
close the Text dialog box without adding any text.
You will not specify the text to be used yet, because this will be different for
each report. You will name this text object so that it can be overridden when the
page header is reused in other reports.
13. With the Text Item selected, in the Properties pane, under
MISCELLANEOUS, set the Name property to: ReportTitle, then press Enter.
Task 2. Add additional details to the page header, and save
the report
You want to add date and time information to the report header.
1. In the right cell of the table, click Add, then click Table.
2. Set Number of columns to 1, Number of rows to 2, and then click OK.
3. From the Toolbox, from the TEXTUAL section, drag a Layout calculation to
the first cell of the Table you added in the previous step.
4. In the Report expression dialog box, click the Functions tab, expand
Report Functions, then drag AsOfDate to the Expression Definition pane.
5. Validate the expression, and then click OK to close the Report expression
dialog box.
You want to add a time stamp, to appear in the bottom-right corner of the page
header.
6. From the Toolbox, drag another Layout calculation object to the bottom cell of
the table you added previously.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
7. Click the Functions tab, expand Report Functions, and then drag AsOfTime
to the Expression Definition pane.
8. Validate the expression, and then click OK to close the Report expression
dialog box.
9. From the Application bar, click Save .
10. Navigate to My content, in the Save as box type Layout Library, and then
click Save.
Task 3. Create a second report that reuses the standard page
header
1. In the side bar, click Home to return to the Welcome page.
2. Create a new Blank report using the GO data warehouse (query) package.
3. Click in the work area, then in the Toolbar, click More > Headers & footers
> Page header & footer.
4. In the Page header & footer dialog, select Header, then click OK.
5. From Toolbox, expand ADVANCED, then drag a Layout component
reference object to the page header.
6. In the Component reference dialog, select Another report, then click the
ellipsis , and then navigate to My Folders.
7. Click Layout Library, and then click Open.
8. Add a Block to the work area.
9. From the Toolbox, drag a List to the right of the Block, accepting the defaults.
10. Under Available components to reference, click StandardPageHeader, then
click OK.
The Table from the Layout Library report appears. You want to customize the
report.
11. With the Layout component reference object selected, in the Properties pane,
under GENERAL, double-click the Overrides property.
The Overrides dialog box appears. Because you gave the report title text object
a distinct name, you can now override its contents in the shared page header.
12. Select the ReportTitle checkbox, and then click OK.
13. From the Toolbox, drag a Text Item onto Drop item to override component
child in the center cell of the header.
14. In the Text dialog box, type Quantity by Order Method, and then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Task 4. Add data to the new report and format the report
1. In the Page body, click Add , then click List , then click OK.
2. From Data > Source tab, expand the Sales and Marketing (query) folder,
and then expand the Sales (query) namespace.
3. Add the following query items to the List:
• Order method: Order method type
• Sales fact: Quantity
The header you created in the Layout Library report displays the title that you
added to this report.
6. Close the rendered report tab.
Task 5. Modify the shared page header and observe the
results
1. In the Page header of the List report, click the Layout component reference
object.
In the Properties pane, the Embed property is set to Reference. This means any
changes made to the shared page header in the Layout Library source report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
will be automatically applied in this report. You will now modify the shared page
header in the source report.
2. On the Application bar, click the down arrow next to the report title.
3. Click Remove beside the current report, to close it and return to the Layout
Library report.
4. In the Page header, click <%AsOfTime()%>, and then press Delete.
5. On the Application bar, click Save.
6. In the side bar, click Home to return to the Welcome page.
7. Click My content , then right-click the Quantity by Order Method, then click
Edit report.
When the report is opened, you can see that changes in the Library Report
have reflected automatically in your report, as seen in the top right corner.
8. Run the report in HTML.
The result appears as follows:
6. In the table, in the center cell, click and drag the Text object into the left cell.
7. Save the report.
8. Open the Quantity by Order Method report from My content.
Although you switched the order of the image and text objects in the source
report, this change is not reflected in the page header in this report. To make
the page header in the Quantity by Order Method report consistent with the
standard page header you created in the Layout Library report, you will now
manually update the shared page header.
9. In the report, in the Page header, click the Layout component reference
object, from the Properties pane, under GENERAL, change the Embed
property to Reference.
The page header is now updated with the changes made in the Layout Library.
10. Save the report.
11. Leave report authoring tab open for the next demonstration.
Results:
You created and reused a standard page header and then compared
automatically and manually updating the reused page header when it changed
in the source report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Message
List
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Explore options for reports that contain no data
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Explore options for reports that contain no data
Purpose:
You want to create a report with three pages showing different methods of
handling no data being returned. The first page will show default data
handling, the second page will not display when the list is empty, and the
third page will generate a custom message to replace the empty container.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List and Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create a List and a Crosstab
1. Create a new Blank report using the GO data warehouse (query) package.
2. Click Add, then List to add a List to the page body.
3. From the Data > Source tab, add the following query items to the new List:
• Products: Product line
• Time: Year
• Sales fact: Revenue
4. From the Toolbox, add a new Crosstab to the right of the List.
5. From the Query Name list, click Query1, and then click OK.
6. From Data > Data Items, add the following query items to the new Crosstab:
• Rows area:
• Time: Year
• Column area:
• Products: Product line
• Measure area:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
7. From the Toolbox, drag a Table to the page below the Crosstab.
8. Clear the Maximize width checkbox, and then click OK.
9. Click inside the left table cell (but not the Add icon), and then in the Properties
pane, under BOX, double-click Padding.
10. In the Right padding box, type 10, and then click OK.
Task 2. Modify layout
1. Click the List Container Selector , then drag the List into the left table cell.
2. Click the Crosstab Container Selector, and then drag the Crosstab into the
right table cell.
3. From the Toolbox tab, drag a Text Item to the left of the List - but within the left
Table cell.
4. Type List:, and then click OK.
5. From the Toolbox tab, drag a Text Item to the left of the Crosstab, within the
right table cell.
6. Type Crosstab: then click OK.
7. Ctrl-click the two table cells, then on the Toolbar, click Vertical alignment
options > Top .
8. Click in the page body under the Table, then from the Toolbar, click More >
Headers & footers > Page header & footer.
9. Check the Header, and click OK.
10. In the page header, click Add, then click Text item, type Page 1 - Default
Behavior, and then click OK.
11. In the Toolbar, click Font, then change Family to Arial, Size to 16pt, and
Weight to Bold, then click OK.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. From the Properties pane, under GENERAL, set the Render page when
empty property to No.
Task 6. Configure a page with a custom No Data Handler that
replaces an empty container with a message
You want to display a custom message when the list or crosstab is empty.
1. In the Pages tab, click Page 3.
2. Double-click the text item in the Page header, and then update the text to:
Page 3 - Show Custom Message When No Data is Returned.
3. Click OK.
4. Click the List Container Selector to select the entire List.
5. From the Properties pane, under CONDITIONAL, double-click the
No data contents property.
6. Select Content specified in the No data tab, and then click OK.
The No data contents property specifies whether to show the No Data Contents
tab for the selected query frame. When set to Yes, you can specify on this tab
what to show when there is no data. When set to No, the tab is hidden and the
query frame reverts to the default behavior.
Your list should now appear as follows, with a new No Contents tab:
7. Double-click the object showing No Data Available, update the text to List
contains no data!, and then click OK.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Since all of the queries in this report are filtered by the same parameters, all lists
and crosstabs on the three report pages should look the same when data is
returned. The page numbers refer to the pages in Pages tab and not in the
report output.
3. Click Page down to see the Page 2 - Do Not Render Page if No Data is
Returned in the List page.
4. Click Page down to see the Page 3 - Show Custom Message When No Data is
Returned page.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Notice that all three pages appear with a List and Crosstab.
5. Click the Run button to run the report again.
6. When prompted, select Mountaineering Equipment, select 2010, and then
click Finish.
The results for page 1 appear as follows:
Notice how the individual pages are affected in the report since there is no data
for 2010 for the product line Mountaineering Equipment.
The first page shows default behavior for the List and Crosstab when there is no
data returned.
7. Click Page down.
Notice that the Page 2 - Do Not Render Page if No Data is Returned in the List
page did not display at all. This List contains no data and the List’s property
Render page when empty is set to No, so the page did not render. You are
taken directly to the Page 3 - Show Custom Message When No Data is
Returned page, where both the List and Crosstab are showing the custom
message you created when no data is returned.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Enhance report design with report objects
• Reuse objects within the same report
• Share layout components among separate reports
• Discuss report templates
• Handle reports with no available data
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Analyze product quantities sold by month
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Analyze product quantities sold by month
The Production Department has asked you to prepare a report that shows the quantity
of products sold in each month of 2012 for all product lines, to help estimate production
requirements for next year. The report must be broken into separate sections for each
product line so that products from each line can be analyzed separately. The report
name and logo must appear at the top and bottom of each page of the report.
To accomplish this:
• Create a new Blank report using the GO data warehouse(query) package
• Add a List object to the page.
• Add the following query items to the list report object. :
• Products: Product line
• Products: Product
• Time: Month
• Sales fact: Quantity
• Section data and convert to a Crosstab.
• Filter data so that only 2012 data is displayed and sort month data in ascending
order.
• Edit title and add an image to the header block with the Company name and logo
(cover2.jpg).
• Add a layout component reference (CompanyBlock) to the footer block.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
U n i t 9 C u s t o m i ze r e p o r t s wi t h c o n d i t i o n a l f o r m a t t i n g
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Highlight exceptional data
• Create multilingual reports
• Show and hide data based on business conditions
• Conditionally render objects in reports
• Conditionally format data items based on other data items
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Variable
Values
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
String
If you create a Boolean or string variable, you must define the condition.
If you create a language variable, you do not need to define the condition. You just
choose the languages you want to support.
In the slide example for the string variable, revenue will be deemed 'High' if it is more
than $1,000,000 or 'Low' if it is less than $25,000.
The string variable's condition does not need to test all possible cases, nor the
language variable hold all the possible languages; because they have a built-in 'Other'
value. For example, in the slide string Expression Definition above, revenue between
$25,000 and $300,000 is 'Other'.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Conditional Styles: Add conditional styles to highlight data in you report, based on set
ranges.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Select your object in the report layout that you want to conditionally format. This step is
performed in the Properties pane.
After you have created your variable, you must define how the report will appear for
each value. To do this, select the text or part of the report that will vary, and then apply
the variable to it using the Properties pane.
If you wish to create conditional formatting for only some values, you can deselect the
others.
When you create a String or Report language variable, an additional value called
(Other) appears by default. A Boolean variable does not have the (Other) value
because it can only be Yes or No.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create a multilingual report (optional)
Purpose:
Your regional sales managers want to examine the revenue for all of your
product types to promote the most profitable ones. Because this report will be
distributed to offices in Germany, France, and the United States, you must run
the report in different languages.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the report page.
3. From Source, add the following query items to the new list data container:
• Products: Product line, Product type
• Sales fact: Revenue
4. Click the <Product line> list column body, and then click Group / Ungroup.
5. Click the <Revenue> list column body, click Summarize, and then click Total.
6. Run the report in HTML to examine the report.
7. Close the rendered report tab.
Task 2. Create a language variable and choose the
languages.
You will apply conditional formatting to the header text so that a report title will
appear in the language in which the report is run.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
1. Create a page Header by clicking under the List, then from the Toolbar click
More > Headers & footers > Page header & footer, select Header, and click
OK.
There are seventeen English languages, six French, and six German. You want
to select all of these languages so that you can group them together. That way
you only have to format the report for three grouped values, rather than for each
individual language.
The report now has one variable with three grouped values, one for each
language in which the report will be run. Because you created a language
variable, the expression is created for you.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
IBM Cognos Analytics cannot translate the data returned by the query. This
must be done as part of data modeling and must be included in the published
package.
6. Close the rendered report tab.
7. Repeat Steps 3 to 5 to run the report in German (Austria) and in
English (Zimbabwe).
A section of the results appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Highlight exceptional data
Purpose:
A manager wants to quickly identify revenue greater than $20,000,000 and
less than $5,000,000 to identify high and low revenue-generating product
types in all sales regions. You need to create a report that displays revenue
data in different colors depending on revenue values.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the crosstab.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a Crosstab to the report page, accepting the defaults.
3. From the Source tab, add the following query items to the new crosstab data
container:
• Rows area:
• Products: Product line, Product type (nested as a child)
• Columns area:
• Retailers: Region
• Time: Year (nested under Region)
• Measure area:
• Sales fact: Revenue
You will create a variable to define revenue as 'high' or 'low' if the amount is
above or below specified amounts.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
4. On the side bar, click Queries, then click the Condition explorer tab.
5. In the Condition explorer pane, click Variables, and then from the Toolbox
tab, drag a String Variable to the Variables pane.
Because you are creating a string variable, you must specify the condition on
which revenue will change, and then create values for the possible outcomes.
6. Create and validate the following expression:
IF ( [Query1].[Revenue]>20000000 ) THEN
( 'High' )
ELSE IF ( [Query1].[Revenue]<5000000 ) THEN
( 'Low' )
Hint: You can drag an ‘if then else’ block from the Constructs folder, in the
Functions tab, and drag Revenue from the Queries tab to add it to the
expression.
7. Click OK.
8. Under the Values box, click Add .
9. In the Add dialog box, type High, and then click OK.
10. Repeat steps 7 and 8 to add a second value called Low.
The values created in steps 7 - 8 must be spelled exactly as they are spelled in
the expression definition for the variable.
11. In the Properties pane, under MISCELLANEOUS, in the Name box, modify
the text to Revenue_High_Low, and then press Enter.
12. Navigate back to Page1.
Now that you have created a variable and specified its values, you must format
the revenue cells for each value.
Task 2. Define the measures as conditional and set the
display for each value.
1. Click any of the Revenue (<#1234#>) cells in the crosstab, in the Properties
pane, click Select Ancestor , and then click Crosstab fact cells.
2. Under CONDITIONAL, double-click Style variable.
The Style variable dialog box appears.
3. From the Variable list, select Revenue_High_Low, and then click OK.
The measures cells are now conditionally formatted using the variable you just
created. You must now set the display for each value.
4. Click the Condition explorer tab, and then click High.
A notification message appears.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
5. With the Revenue cells still selected, on the Toolbar, click Font , then set
Foreground Color to Green, set Weight to Bold, then click OK.
6. Repeat steps 4 - 6 to change the Foreground color for the Low value to Red.
7. Click (No variable) to turn the conditional formatting off.
8. Run the report in HTML.
A section of the results appear as follows:
You can see that some Camping Equipment product types generated high
revenue over a four-year period in Central Europe, whereas Outdoor Protection
generated low revenue. Notice that when the revenue condition is not satisfied
(when it is neither high nor low) revenue appears in black (default formatting).
9. Close the rendered report tab.
10. Leave the report authoring tab open for the next demonstration.
Results:
You created a report that compares product line revenue for all sales regions
to quickly identify by color the product type revenues greater than
$20,000,000 and less than $5,000,000.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Create a report with a conditionally rendered column
Purpose:
Some users want a report to include descriptions of each product, while
others are familiar with the products and do not want these descriptions in the
report. You will create a report that can be run with or without a column
displaying product descriptions based on the format in which you run the
report.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the list.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the report page, accepting the defaults.
3. From the Source tab, add the following query items to the new list data
container:
• Time: Date
• Sales order: Order number
• Products: Product, Product Description
• Sales fact: Revenue
4. Click <Date>, and then on the Toolbar, click Section / unsection > Section /
unsection.
5. Click <Order number>, and then on the Toolbar, click Group / Ungroup.
6. Click <Revenue>, on the toolbar click Summarize, and then click Total.
7. On the Toolbar, click Filters, and then click Edit Filters.
8. Click Add, click Advanced, and then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. Click the down arrow to the right of the Run report button, and then run the
report in PDF.
A section of the results appear as follows:
When the report is rendered in PDF format, Product description is not rendered.
3. Close the rendered report tab.
4. Leave report authoring tab open for the next demonstration.
Results:
You created a report you can run with or without a column displaying product
descriptions based on the format in which you run the report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Revenue formatting
based on Gross profit values
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4:
Conditionally format one crosstab measure based on another
Purpose:
Consumers would like to see conditional formatting for revenue values based
on Gross profit values in a crosstab. To achieve this, you will take advantage
of the IBM Cognos ability to conditionally format one crosstab value based on
another.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: Crosstab
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the crosstab report.
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a new Crosstab to the report page.
3. From the Source tab, add the following query items to the Crosstab:
• Rows area:
• Products: Product line
• Columns area:
• Time: Year
• Sales fact: Gross Profit, Revenue (nested under Year)
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
2. Click New Conditional Style , and then click New Conditional Style
from the list.
3. In the Base it on the following data item list, click Gross profit, and then click
OK.
4. In the Name box, type Gross Profit Performance.
5. Click New Value , type 180000000 (180,000,000), and then click OK.
6. Repeat step 5 to add values for 130000000 (130,000,000), 70000000
(70,000,000), and 20000000 (20,000,000).
7. In the Style column, in the top drop down list, select Excellent, and then for the
remaining drop down lists select Very good, Average, Below average, and
Poor respectively.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
12. Click OK to close the Conditional style - numeric range dialog box, and then
click OK again to close the Conditional styles dialog box.
Task 3. Run the report and use existing conditional styles.
1. Run the report in HTML.
The results appear as follows:
4. Click New Conditional Style, click Use Existing Conditional Style, and then
click Gross Profit Performance.
5. Click OK to close the Select existing conditional styles dialog box, and then
click OK to close the Conditional styles dialog box.
6. Run the report in HTML.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Highlight exceptional data
• Create multilingual reports
• Show and hide data based on business conditions
• Conditionally render objects in reports
• Conditionally format data items based on other data items
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You have created a report that shows the volume of sales in each region by
retailer type. To make the yearly data easier to distinguish, you have
formatted the report so each year column will have a different background
color.
• Close the rendered report tab.
• Sign out of IBM Cognos Analytics without saving any reports.
• Close all browser windows.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Drill-through definitions
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit 10 Drill-through definitions
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Drill-through from a report to another
• Package-based drill-through
• Discuss parameter-driven drill through
• Set scope
• Use the Drill Through Assistant
• Configure and use dynamic drill through
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Drill through to
target report to
view related data
Parameters from the target report Values from the source report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Let users drill-through from a report to another
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Let users drill-through from a report to another
Purpose:
You have been asked to create a report that displays revenue by order
method, region and year. Management want to enable users to drill-through
from this report to a report that has more detailed information when required.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Application: IBM Cognos Analytics - Reporting
Package: Team content\Samples\Models\GO data warehouse (query)
Template: 1 column
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the target report.
Before you can setup a drill-through access from the high-level report to the
target detailed report, you must create the target report first.
1. On the side panel, click Team content > Samples > Models, then right-click
the Go Data Warehouse (query) package, and then click Create report.
2. In the Templates and themes dialog, double-click 1 column.
3. From the Data \ Source tab, select the following data items:
• Order method: Order method type
• Retailers: Region
• Products: Product line
• Time: Year
• Sales fact: Revenue
4. Drag the data items to the work area, this will create a List containing them.
5. Click the <Order method type> List column body, Shift-click <Product line>
List column body, then from the Toolbar, click Group / Ungroup.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
6. Click the <Order method type> List column body, then from the Toolbar, click
More > Headers & footers > Create header.
7. Click the <Order method type> List column body still selected, press Delete.
8. Click the <Revenue> List column body, then from the Toolbar, click
Summarize > Total.
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. In the Pahe header, click Add then click Text item , and type: Sales
of (then add a space), then hit Enter.
4. Click the Page header, then from the Toolbar, click Font, set Family to Arial,
Size to 16pt, Weight to Bold, and under Effects, check Underline, then click
Foreground Color, then choose Teal and click OK, then click OK.
5. On the side bar, click the Toolbox, then from under TEXTUAL, drag Layout
calculation to the right of the Text item in the Page header.
6. In the Report expression dialog, drag OM from the Parameters tab to the
Expression Definition box, then click OK.
7. From the Toolbox, drag a Text item to the right of the Layout calculation, then
type the following in the Text dialog: (add a space) in (add a space), then hit
Enter.
8. From the Toolbox, drag a second Layout calculation to the right of the last
Text item, and in the Report expression dialog, drag region from the
Parameters tab to the Expression Definition box, then click OK.
9. In the Application bar, click Save , then browse to Team content\B6058,
then in the Save as enter: Sales of order method and region, then click Save.
A section of the results appears as follows:
5. From the Data \ Source tab, drag the following data items onto the Crosstab:
• Rows: Order method\Order method type
• Columns: Retailers\Region
• Measures: Sales fact\Revenue
A section of the results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Close the current browser tab to return to IBM Cognos Analytics - Reporting.
Results:
You created a target report that requires two parameters, then you created the
source report that pass these required parameters as context to the target
report from data items that are available in the clicked cell in the source
report.
The user could see a summarized report and navigated to another one that
shows the details of a specific number that grabbed his attention.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Target
Report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
* Optional
Drill-through definitions © Copyright IBM Corporation 2018
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Values
Source Target
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Set up and use drill-through access for a package
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Set up and use drill-through access for a package
Purpose:
You have been asked to create a drill-through definition to let users navigate
to a detailed product line sales report that is created from reports using the
GO Data Warehouse (query) package. To let users focus on specific areas of
interest, the target report will only display data for the product line from which
users drill through. Finally, you will enable the Drill Through Assistant and
view the values that are passed.
Portal: http://vclassbase/ibmcognos
User/Password: hirschb/Education1 (Branka Hirsch is a Report Administrator)
Application: IBM Cognos Analytics - Reporting
Package: Team content\Samples_LG_DQ\Models\GO data warehouse
(query)
Template: 1 column
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the target report
In this task you will open and run an existing report. Be sure you are logged in
as Branka Hirsch (see above) before starting this demonstration.
1. From the Welcome screen, click Team content and then navigate to
Samples_LG_DQ > Models > Go Data Warehouse (query) > Report Studio
Report Samples.
2. Right-click the Total Revenue by Country_DQ report, then click Edit report.
3. Under the Crosstab, click the Block that contains the Chart, then press Delete.
Task 2. Add more parameters to the report
You will add more parameters so that this report will only display data for the
Country(ies) and the Product line from which the users drill through.
1. Click a cell in the Crosstab, then from the Toolbar, click Filters , click Edit
Filters.
2. Click Add .
3. Enter and validate the following expression:
[Retailer country] = ?country?
Hint: Drag Retailer country from the Data items tab.
Validate using Camping Equipment.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
7. Navigate to Sales and Marketing (query) > Sales (query) > Products.
8. Click Product line, and then click OK.
Now you will define the target report of the drill-through definition.
9. Click Set the target.
10. In the navigation path at the top, click Cognos, and then click Team Content,
then click B6059.
11. Select the Total Revenue by Country and Product line report, then click OK.
The results appear as follows:
13. For the country parameter, in the Source metadata item column, click Set the
value for country .
14. Navigate to Sales and Marketing (query) > Sales (query) > Retailers.
15. Click Retailer country, and then click OK.
16. For the Product line parameter, in the Source metadata item column, click
Set the value for Product line .
17. Navigate to Sales and Marketing (query) > Sales (query) > Products.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This is because you limited the scope of the drill-through definition to the
Product line data item. The Australia row does not have a specific product line
as its context.
3. Close the browser tab.
4. From the Data pane, expand Products, then drag Product line to the left of the
Revenue column.
5. Click the <Retailer country> List column body, then from the Toolbar, click
Group / Ungroup.
Task 7. Test the drill through definition
1. Run the report in HTML.
2. In the report, click 41,935,932.19 in the Revenue cell that is beside Australia
and Camping Equipment row.
3. In the Toolbar, click Explore , point to Related links, then click Find more
drill-through links.
Now you can see the Total Revenue by Country Definition.
4. In the Related links dialog, expand the Advanced section.
The Drill Through Assistant displays the items and values that will be passed to
the target report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Dynamic drill-through
• Dynamic drill through matches source model item names to either:
target model item name
target report data item name
• If no match, source item is ignored
Dynamic filter
created for target report at run time
Source Target
Report [Region] = "Americas"
Report
[Country] = "Mexico"
Results filtered
on Mexico
Dynamic drill-through
Dynamic filtering eliminates the need for pre-authored drill-through prompts and
parameters, if reports have common items with conformed values.
You can use dynamic drill through alone, or combine with parameterized drill through
when reports expect parameters. Non-parameterized items would be filtered
dynamically, whereas the parameterized items would be predefined.
In the example, the source and the target reports contain different data items, but the
data items are renamed locally in the reports to unify the names. For example, Branch
region is renamed to Region, and Retailer country is renamed to Country.
First, IBM Cognos Analytics tries to match model item names.
But if both the source and target reports had items called Product line, renaming
Product line in the target report to something else would still work since the model
names match.
If no match is found for the model or report data item name, then the item is ignored for
the drill-through.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Configure and use dynamic drill-through
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Configure and use dynamic drill-through
Purpose:
You have been asked to configure a package to enable dynamic drill-through
from source reports based on a package to a target report that provides
revenue details of a region and country from another perspective.
Portal: http://vclassbase/ibmcognos
User/Password: hirschb/Education1
Application: IBM Cognos Analytics - Reporting
Package: Team content\Samples_LG_DQ\Models\GO data warehouse
(query)
Report Type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
12. Click <Revenue>, then from the Toolbar, click Summarize > Total.
The result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The Drill Through Assistant displays the items and values that will be passed as
context to the target report.
6. Click OK to accept navigation to the drill-through definition.
IBM Cognos drills through to the target report, Demonstration 3 Target.
The report contains data for branches in Americas region, in Brazil.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Drill-through from a report to another
• Package-based drill-through
• Discuss parameter-driven drill through
• Set scope
• Use the Drill Through Assistant
• Configure and use dynamic drill through
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Configure and use dynamic drill-through
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Configure and use dynamic drill-through
Consumers using the GO Data Warehouse (analysis) package for analysis would like
to review actual and planned revenue for order methods, using the Returns by Product
Type_DQ report, and be able to get details on lost revenue for specific products
displayed in the report.
A list report has been created based on the GO Data Warehouse (analysis) package
that retrieves the following items: Product type, Base product, Quantity, Return quantity,
% Returned, and Lost revenue. The report is called Returns by Product Type_DQ and
is located in the Team content\Samples_LG_DQ\Models\GO Data Warehouse
(analysis)\Query Studio Report Samples folder. This will provide a starting point for your
target report.
As Branka Hirsch, the report administrator, you will create a drill-through definition
called Exercise 1_Returns by Product Type Definition that allows consumers to drill
through to the target report. Consumers should be able to drill through any report in the
package only if the Product type level is available. To accomplish this, you will need to:
• set the scope in the drill-through definition at the Product type level
• ensure that all item names match between the source report and the target report
• create parameterized drill through that will dynamically filter the target report
You will save the target report as Unit 10 Exercise 1_Returns report, to keep the
original sample report unchanged.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Notice the first two columns are Product type and Base product.
This report provides information about product returns and lost revenue.
• Toolbar: Save the report to My Folders, as:
Exercise 1_Returns by Product Type Target.
• From the Welcome screen, under My content, with the vertical ellipsis, use
Convert to report on Exercise 1_Returns by Product Type Target.
• Save the report as Unit 10 Exercise 1_Returns, under My content.
Task 2. Add parameters to Unit 10 Exercise 1_Returns report.
• Toolbar: Filters > Edit Filters
• based on Product type.
• Filter condition dialog: Select Prompt for values when report is run in viewer.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Application bar: Save the report, and then close the browser tab.
Task 3. Create the drill-through definition.
• Side bar: click New > Other > Drill Through Definitions.
• Team content: Navigate to Team content\Samples_LG_DQ\GO Data
Warehouse (analysis).
• Toolbar: Click New Drill-through Definition.
• Name box: Name Unit 10 Exercise 1_Returns, and then click Next.
• Set scope and target:
• Set the scope to Product from Products.
• Set the target to Unit 10 Exercise 1_Returns (located in My Folders).
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Click Finish.
• Browser: Close the Drill-through Definitions tab.
Task 4. Create a source report
• Side bar: Create a new report using GO Data Warehouse (analysis) package in
Team content\Samples_LG_DQ.
• Add List:
• Employee by region > Employee by region: Branch region
• Time > Time: Year
• Order method > Order method: Order method type
• Products > Products: Product type
• Products > Products: Product
• Sales fact: Revenue
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• Click OK
The result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
U n i t 1 1 E n h a n c e r e p o r t l a yo u t
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit objectives
• Force page breaks in reports
• Modify existing report structures
• Apply horizontal formatting
• Specify print options for PDF reports
• Format data and report objects
Unit objectives
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1
Create a report structured on data items
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 1:
Create a report structured on data items
Purpose:
You have been asked to create a report showing sales rep revenues
generated in each region with each sales region on a separate page. You will
need to design a title page for the report and make changes to the report
using the structure view.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the List
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the work area.
3. From the Source tab, add the following query items to the new List:
• Employee by region: Branch region, Country, Employee name
• Sales fact: Revenue
4. Click <Branch region>, Ctrl-click <Country>, and then on the Toolbar, click
Group / Ungroup.
5. Click <Branch region>, then on the Toolbar, click More > Headers &
footers > Create header.
6. With the <Branch region> column still selected, press Delete to remove the
redundant column.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. In the Report pages pane, drag Page1 onto the Detail Pages folder.
4. Run the report in HTML and then click Page down to examine multiple pages.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
10. From the Toolbox, expand LAYOUT, then drag an Image to the middle table
cell.
11. Double-click the Image, then from the drop-down list, select samples/images,
then scroll down until you find cover1.jpg, and double-click it.
12. Run the report in HTML.
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
6. In the Properties pane, under FONT & TEXT, double-click the Font property.
7. Change Family to Arial Black, Size to 12pt, and Style to Italic, then click OK.
8. Click Page views, and then click Page design.
The list column titles are changed to reflect the modifications you made in the
page structure view.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Horizontal pagination
Horizontal pagination
Horizontal Pagination enables you to span wide reports across multiple PDF pages with
the appropriate page number.
You can only use horizontal pagination with list and crosstab reports.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2
Format a report for horizontal viewing
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 2:
Format a report for horizontal viewing
Purpose:
Management has asked you to create a list report that fits on one page. They
have also asked to create a report with certain columns that repeat on each
page. You will also need to apply different page numbering formats using
horizontal page numbering and report layout functions.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the List
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the work area.
3. From the Source tab, add the following query items to the new List:
• Products: Product line, Product type, and Product
• Time: Year
• Order method: Order method type
• Sales fact: Quantity, Unit cost, Unit price, Revenue, Gross profit,
Product cost, Planned revenue
• Sales (query): Gross margin
4. From the Application bar, click Run options , then click Run PDF.
Notice that the list is too wide for one page, so it is split across two pages.
5. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
1. To use a preset number, double-click the Page number object in the page
footer.
2. the Page number object, double-click 1A, then click OK.
3. Run the report in PDF.
4. Scroll down, to view several of the page numbers in the footer.
The pages are now numbered: 1A, 1B, 2A, 2B, and so on.
5. Close the rendered report tab.
6. To create a number using Custom number style, double-click the
Page number object in the footer, and then click Edit .
7. In the Custom number style dialog, incorporate the following formatting:
• add 3 periods (…) in the box between Vertical and Horizontal.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
• under Horizontal, add a left square bracket ( [ ) in the box to the left of
Letter (upper case), and then add a right square bracket ( ] ) in the box to
the right of Letter (upper case).
The results appear as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Modify structures
Add a table
to a row
Modify structures
By unlocking the cells, you can add multiple items to a single column to tailor a report to
your needs.
Unlock cells to manipulate an object’s contents. Once they are unlocked, you can
change the text and add objects inside existing objects. This feature is useful for
displaying related information in a single column, or for renaming a column. You can
add additional rows to a list report to add extra information. You can add additional
rows to a list report using the Structure menu.
Once a new row is added you can merge the cells by selecting one or more cells and
then click the Merge cells button.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3
Create a condensed List report
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 3:
Create a condensed list report
Purpose:
The Human Resources department has requested a list of detailed sales rep
information for each city. To reduce the number of columns in the report, you
will combine information into one column.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report type: List
Folder: Sales and Marketing (query)
Namespace: Sales (query)
Task 1. Create the List
1. Create a new Blank report using the GO data warehouse (query) package.
2. Add a List to the work area.
3. From the Source tab, add the following query items to the new List:
• Employee by region: Country, City, Employee name, Position name,
Work phone, Extension, Email, Date hired.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Drag <Work phone> into the first row of the table, drag <Email> into the
second row, and then <Date hired> into the third row.
4. Drag <Extension> into the top table cell, to the right of <Work phone>.
The results appear as follows:
You can add text in front of the data items, to identify them.
5. From the Toolbox, drag a Text item to the left of <Work phone>, with the text
Work phone:, press the spacebar, and then click OK.
6. Repeat steps 6 and 7 to add the following text items to the left of <Email> and
<Date hired> respectively: Email: and Date hired:.
7. Drag a Text item between <Work phone> and <Extension>, press the
spacebar, type ext., press the spacebar, and then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
8. In the Application bar, click More, then click Unlocked to lock the report.
9. Click the Extension column header, Ctrl-click the Email and Date hired column
headers, then press Delete.
10. Click the Work phone list column title, then in the Properties pane, under DATA
ITEM, set the Label property to Contact Information, then press Enter.
11. Run the report as HTML.
All key contact information is consolidated under a single column.
A section of the result appears as follows:
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Page 1 - Portrait
Page 2 - Landscape
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4
Change a PDF page from portrait to landscape orientation
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 4:
Change a PDF page from portrait to landscape orientation
Purpose:
You have been asked to build a PDF report that contains a list report and a
crosstab report. You will use PDF Page Setup properties to display individual
report pages as portrait or landscape. You will then create a secured version
of the report.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Package: Team content\Samples\Models\GO data warehouse (query)
Report Type: List
Folder: Sales and Marketing (query)
Task 1. Create the list and page header.
1. Open a new List template using the GO data warehouse (query) package.
2. From the Source tab, add the following query items to the new list report object:
• Sales order: Order number
• Retailers: Retailer name
• Time: Year
• Sales fact: Revenue
3. Click on page work area, on the toolbar, click more and click Headers &
footers, and then click Create header.
4. Select page header, on the toolbar, click Center.
5. On side panel, click the Toolbox tab, under PINNED section, drag Text item.
6. In the text box, type Revenue by Order Number, and then click OK.
You will make a copy of this page so that you have a page header and footer on
the second page.
7. On the Pages tab, click Report pages.
8. In the Report pages pane, right-click Page1, and then click Copy.
9. Right-click the white space below Page1, and then click Paste.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Click the <#Gross margin#> fact cells, and then in the Properties pane, under
DATA, double-click Data format.
4. From the Format type list, select Percent, in the Properties pane, click
Number of decimal places, and then select 2 from the list.
5. Click OK.
6. Click the <#Revenue #> fact cells, and then in the Properties pane, under
DATA, double-click Data format.
7. From the Format type list, select Number, in the Properties pane, click
Number of decimal places, and then select 0.
8. Click OK.
9. Click the list, on the Properties header, click Select Ancestor, and then click
Report
10. In the Properties pane, under REPORT, double-click PDF page setup.
The Orientation is set to Portrait by default. This is the setting for the entire
report
11. Click OK, and then run the report in PDF.
12. Scroll down to the last page.
The crosstab gets split across two or three pages, because the page is not wide
enough to display all data together, when portrait page orientation is used.
13. Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Click the most recent timestamp. You should see the symbol PDF .
4. Click the PDF to open it.
5. Once the PDF is visible, click and drag the cursor over the report to highlight
some of the text, right-click the highlighted text, and then click Copy to copy the
text to the clipboard.
6. From the Start menu, click All Programs, click Accessories, and then click
Notepad.
7. Paste the text into the Notepad document.
This proves that you can copy the content from the PDF document into another
document.
8. Close Notepad without saving the document, and then go back to
IBM Cognos Analytics.
Task 6. Secure a PDF report
1. From the Welcome screen of IBM Cognos Analytics, click My Content.
2. Click the vertical ellipsis icon at the right of Demonstration 4_Enhance Report
Layout.
3. Click Run as, and then click the switch for Run in background to enable it.
4. Select the PDF checkbox, and then clear the HTML checkbox.
5. Click Advanced and then click the > to the right of PDF.
6. Select the checkbox for Requires a password to open the report.
7. In the Password and Confirm Password textboxes, type Education1
8. Click the < Back tab at the top, and then click Run.
9. Wait about five minutes for the report to be generated.
Task 7. Open a secured PDF report
1. From the Welcome screen, click My content.
2. Click the vertical ellipsis icon at the right of Demonstration 4_Enhance Report
Layout.
3. Click View versions.
4. Open the most recent time stamp and then open the PDF.
5. When the PDF appears, you are prompted to type a password because you
secured this version of the report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 5
Format objects across a report (optional)
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Demonstration 5:
Format objects across a report (optional)
Purpose:
In Reporting, you will override a global style to modify the way report title
objects appear in the report. You will also add a local style and will use it to
format the report footer text. You will then create a report and observe how
these style changes affect it.
You will need to complete Demonstration 4 before starting this demonstration.
Portal: http://vclassbase/ibmcognos
User/Password: brettonf/Education1
Task 1. Explore Global Class Extensions.
1. Click My content, and then to the right of
Demonstration 4_Enhance Report Layout, click the vertical ellipsis.
2. Click Edit report.
3. Click Page views, and then click Page design.
4. Click the report title text in the page header, and then in the Properties pane,
under MISCELLANEOUS, ensure that the Classes property is set to Report
title text.
5. In the Properties pane, click Select Ancestor, click Page header, and then
under MISCELLANEOUS, verify that the Classes property is set to Report title
area.
6. On Pages tab, click Classes.
7. In the Global Class Extensions list, select Report title text.
Report title text class corresponds to the class name you set on Page1.
In the Preview pane, Sample Text is underlined. You can explore the Report
title area class to preview its style.
Task 2. Override a class style definition, and then add a new
class
You will now change the report title text style. The changes you make will apply
only to instances of the style in this report.
1. With the Report title text style selected, in the Properties pane, under FONT
& TEXT, double-click the Font property.
2. Click Foreground Color, click Blue, and then click OK.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
3. Click OK to close the Font dialog box, then within the Pages tab, click Page1.
The change you made to the report title text style has been applied. You will
now format the text in the footer of the report.
4. On the Pages tab, click Classes.
5. From the Toolbox, drag a Class object to the Local Classes pane.
6. In the Properties pane, under GENERAL, modify the Label property to be
ReportFooterText, and then press Enter.
7. In the Properties pane, under FONT & TEXT, double-click Font, modify the
properties to Tahoma, 10pt, Bold, Underline, the Foreground Color as
Purple, and then click OK.
8. Click OK to close the Font dialog box.
Notice that the preview window shows the changes that have been made.
9. In the Properties pane, under FONT & TEXT, click the Horizontal alignment
property, and then from the list, select Left.
Task 3. Apply the new class to the report, add details, and run
the report
1. From Pages, click Page1.
2. In the page footer, click on text item object.
3. In the Properties pane, under MISCELLANEOUS, double-click the Classes
property.
4. From the Local classes list, click cls1:ReportFooterText, click Add to select
classes (right arrow), and then click OK.
The style from the Report footer text class you created has been applied.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
The formatting that you applied using the named styles appears in the report.
6. Close the rendered report tab.
Results:
In Reporting, you overrode a global class style and added a new local class
style to the report.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Unit summary
• Force page breaks in reports
• Modify existing report structures
• Apply horizontal formatting
• Specify print options for PDF reports
• Format data and report objects
Unit summary
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1
Analyze retailer contacts by country
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
Exercise 1:
Analyze retailer contacts by country
You have been asked to prepare a report that contains retailer contact information for
each retailer for every country. The report must be broken into separate sections for
each country so that the country appears as a section at the top, and only that country's
contacts are displayed on each page.
To create the report, you must perform the following high-level tasks:
• Add the following query items to a new list using GO data warehouse (query)\Sales
(query):
• Employee by region: Country
• Employee by region: City
• Retailers: Retailer name
• Retailers: Contact first name
• Retailers: Contact last name
• Retailers: Contact phone number
• Retailers: Contact extension
• Section on Country; group on City.
• Apply page sets to display all contacts per Country per page.
For more information about where to work and the exercise results, refer to the Tasks
and Results section that follows. If you need more information to complete a task, refer
to earlier demonstrations for detailed steps.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
You have created a report that contains retailer contact information for each retailer for
each country. The report has been sectioned for each country so that the country
appears as a section header at the top, and each country's contacts are displayed on a
separate page.
• Close the rendered report tab.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
This material is means for IBM Academic Initiative use only. NOT FOR RESALE.
®