You are on page 1of 61

Cognos8 Query

Studio

© Satyam 2009

1

Query Studio:

Query Studio is the reporting tool for creating simple queries and reports

in Cognos 8, the Web-based reporting solution.




Use Query Studio to:
explore the corporate information that is available to you
create ad hoc reports that can be viewed by others
customize ad hoc reports that have been saved
compare and analyze data

© Satyam 2009

2

Using Query Studio:

© Satyam 2009

3

Using Query Studio: © Satyam 2009 4 .

© Satyam 2009 5 .Create an Ad Hoc Report • You can create a new report by inserting items from a package into an empty report.

Open the report in Query Studio by clicking the report link or the Edit with Query Studio icon.Open Existing Ad Hoc Reports: • • • • You can open an existing report to: view the most current data in the report make changes to the report use it as the basis of a new report Click the Run with Options button to open the report with the Report Viewer tool. © Satyam 2009 6 .

© Satyam 2009 7 .Add Data to Ad Hoc Reports: • • You can add data to an empty report by choosing the report items from the package. or you can focus on specific data by removing unnecessary report items. You can expand the scope of an existing report by inserting additional report items.

Save Ad Hoc Reports: • • Save your reports to preserve any changes. © Satyam 2009 8 . You can also save a report using a different name or location to use it as the basis of a new report.

You can also look at the most recent data while you are editing the report in Query Studio. PDF Report in German HTML Report in English © Satyam 2009 9 .View Data in Ad Hoc Reports: • • You can open a report in Report Viewer to look at the most recent data from the data source.

You can print a report directly from Query Studio. or from Cognos Connection.Print Ad Hoc Reports: • • Print your report to obtain a paper copy. © Satyam 2009 10 .

List Report Grouped List Report Crosstab Report © Satyam 2009 11 .Understand Report Types: Use different report types to look at data in different ways or to answer different business questions.

A report requires at least one measure and non-measure to produce a chart.Examine Charting: • • Create a chart to present information graphically. Pie Chart (100% Stacked) This chart contains one non-numeric report item (Product line). © Satyam 2009 12 .

CREATING REPORTS USING QUERY STUDIO © Satyam 2009 13 .

such as products or customers. © Satyam 2009 14 . A list report shows data in rows and columns.Display Data With List Report: • • Create a list report to show information in a list.

You can organize the grouped data by row headings or section headings. Data Grouped by Row Headings Data Grouped by Section Headings © Satyam 2009 15 .Create Grouped List Report: • • Group a list report to suppress duplicate values.

Fully expanded grouped report Grouped report collapsed two levels Grouped report collapsed three levels Grouped report collapsed one level © Satyam 2009 16 .Expand and Collapse Data Groups: • You can expand or collapse grouped data in a report to show more or less detail.

List Report Before Pivoting Crosstab Report after Pivoting on Country Column © Satyam 2009 17 . You create a crosstab report by rotating the values in a list report to produce column headers.Display Crosstab Reports: • • • Create a crosstab report to present data more clearly. A crosstab report shows a summary value at the intersection of each row and column.

For example. if you have a crosstab report that has few rows and many columns. Crosstab Report Before Swapping Crosstab Report after Swapping © Satyam 2009 18 . and the outermost columns become the outermost rows. If you have multiple rows or columns in a crosstab report. you can swap the rows and columns to make the report easier to read. or both.Swap rows and columns • • You can interchange rows and columns in a crosstab. the outermost rows become the outermost columns. a chart based on a crosstab.

you can choose to sort the detail values or you can sort the summary values in the footers.Sort Data in Ad Hoc Reports: • • You can sort your data in either ascending or descending alphabetical or numeric order. When sorting grouped data. © Satyam 2009 19 .

Display Data Graphically with Charts: • • Create a chart to present information graphically. © Satyam 2009 20 . Charts are useful for seeing patterns and trends in data.

Use a column chart to show how data changes over time. Use a pie chart to highlight proportions rather than actual values. Use a bar chart to place less emphasis on time and focus on comparing values.Specify a Chart Type: • Consider what you want the chart to illustrate before you choose a chart type. © Satyam 2009 21 .

Use a radar chart to compare measures using a radial figure. © Satyam 2009 Use a line chart to plot many measures. 22 . Use an area chart to show how much the value of a measure changes over time. Use a column line chart to compare two different measures in the same chart.Specify a Chart Type (Cont’d): • Consider what you want the chart to illustrate before you choose a chart type.

the top of each stack represents 100%. useful for comparing proportional contribution across all category. Use the stacked chart for comparing the proportional contribution within a category. In the 100% stacked variation.Enhance the Display of Charts: • Consider what you want the chart to illustrate before you choose a chart variation. Use the standard variation to plot actual value of data series from a common axis. © Satyam 2009 23 . Use the 3D display to enhance the chart with a threedimensional visual effect.

© Satyam 2009 24 .Filter Data in Ad Hoc Reports: • • Create a filter to retrieve a subset of records in a report. Any data that does not meet the criteria of the filter is eliminated from the report.

This filtering eliminates detail rows that do not meet the specified criteria. © Satyam 2009 25 .Filter Data Based on Report Details: • You can filter the values that appear in the detail rows of your report.

© Satyam 2009 26 . This filtering eliminates groups from your report that do not meet the specified criteria.Filter Data Based on Group Summaries: • You can filter on values in the footers of your ad hoc reports.

even if the report contains only aggregated data. © Satyam 2009 27 .Filter Data Based on individual Records • You can use a filter based on individual records in the underlying data source.

Specify Filter Criteria with Prompts: • • Create a prompt if you want to use different criteria for the same report item each time the report is run. Using prompts is faster and easier than repeatedly changing the filter. © Satyam 2009 28 .

Specify a Complex Filter It is possible to have complex filter as shown below © Satyam 2009 29 .

© Satyam 2009 30 .Create New Report Items with Custom Groups: • Create custom groups to produce new report items that contain values that are meaningful to you.

Format Data in Ad Hoc Report • • You can use predefined formats to change the appearance of numbers. dates. and times in your reports. © Satyam 2009 31 . Using these formats does not change the underlying data.

• Calculation results are not stored in the underlying data source. or add predefined calculations from the package. • You can create calculations directly in an ad hoc report. Instead. • The results of a calculation are always based on the most current data in the data source. Query Studio reruns the calculation each time you run the report.Add Calculated Data to Ad Hoc Reports • Use calculations to add data items to your report that do not exist in the underlying data source. © Satyam 2009 32 .

© Satyam 2009 33 .Create Calculated Columns • You can add value to your reports by calculating the data in one or more columns.

The total of the average sales for Aloe Relief across all three countries is 154. maximum.Add Summarized Data to Ad Hoc Reports • You can use predefined summaries to calculate the total. © Satyam 2009 34 . or average of the values in individual report items. each order of Aloe Relief in Germany consisted of 88 units. On average. minimum. count.

We are not summarizing detail values. Then click the Advanced Query Options link. because apparently most people want to see the data shown in this way. open a report in edit mode and click the Run Report section. © Satyam 2009 35 . Each sale of every product is shown in the report.Specify Advanced Query Options • • • • When you run a report. you can change the way the data is processed by automatically: summarizing measures in the footer summarizing detail values and suppressing duplicates To access these options. Note that these options are selected automatically.

Drill Up or Drill Down • • Drill up and drill down is available only when you are using dimensionally structured data viewing the report in HTML format you can drill only on members in a level © Satyam 2009 36 .

a Microsoft Analysis action Before you can navigate to another target.Navigate to Another Target You can navigate from a Query Studio report to another target. a Report Studio report 3. © Satyam 2009 37 . You can navigate to the following targets: 1. a drill-through definition must be created in the package. a Cognos Series 7 PowerCube action 5. a Query Studio report 2. an Analysis Studio analysis 4.

© Satyam 2009 38 .

Define Conditional Styles
You can define conditional styles to highlight key information in a
report. You can use conditional styles with numeric data, text data,
and date values.

© Satyam 2009

39

Specify the Rows Per Page


You can specify the maximum number of rows of data to appear on
the page.
By default, Query Studio shows 20 rows of data. The more rows that
are retrieved, the more time that is needed to retrieve data. You can
improve performance by showing fewer rows.

© Satyam 2009

40

Set Page Breaks

You can set page breaks in a report to control the data that appears
on each page. For example, you have a list that shows all products
sold by your company, grouped by product line. You insert a page
break so the details for each product line appear on a separate page.
After you have set page breaks, view the report in PDF, Excel 2000,
or Excel 2002 format to see the page breaks. If you view the report
in HTML, it appears in a single HTML page with space separating
each group or section.

© Satyam 2009

41

© Satyam 2009 42 .Run Ad Hoc Reports Run a report to view the most recent data or report design.

Specify Run Options • You can run your reports with all of the data. © Satyam 2009 43 . some of the data. or none of the data.

© Satyam 2009 44 . you can specify unique properties for each ad hoc report that you create in Query Studio.Specify Properties for Ad Hoc Reports • In Cognos Connection.

6. 1. HTML 2. © Satyam 2009 PDF Excel 2000 Single Sheet Excel 2002 Delimited Text (CSV) XML 45 .View Ad Hoc Reports • We can view the reports in following formats. 5. 4. 3.

View Ad Hoc Reports in PDF Format • You can render ad hoc reports in Adobe Acrobat format before distribution and printing. © Satyam 2009 46 .

You can re-order columns in a report by using cut and paste functionality.Specify Column Order in Ad Hoc Reports • • You can delete one or more columns from a report. © Satyam 2009 47 .

as well as specify whether to show filter details.Edit Titles in Ad Hoc Reports • You can edit the title and subtitle of an ad hoc report. © Satyam 2009 48 .

© Satyam 2009 49 .Specify the Language of Ad Hoc Reports • • You can set the default language to be used when a report is run. You can also select additional or different languages for the report by changing the run options when the report is run.

© Satyam 2009 50 . A report view shares the same report specification as the source report. but other properties.Create Customized Reports • • Create a report view to produce a customized version of an existing ad hoc report. such as prompt answers. are independent of the source report.

© Satyam 2009 51 .View Previous Report Outputs • You can analyze older data in your ad hoc reports by viewing previous report outputs.

without anyone waiting to view them. • You may want to verify if these reports were run successfully or how often the reports were run in the background. • You can view the run history of a report to examine: • when the report was requested • the start time and completion time for the report • whether the report executed successfully • © Satyam 2009 52 .View the Run History of Reports You may choose to run reports in the background.

• You can distribute ad hoc reports by: • saving them where other users can access them • sending them to other users by email • printing them • © Satyam 2009 53 .Distribute Ad Hoc Reports You can distribute ad hoc reports to other users to share information with them.

The other ways do save the reports are: copy the report move the report create a shortcut to the report Create a report view to the report © Satyam 2009 54 . Public folders typically contain reports that are of interest to many users.Save Ad Hoc Reports • • • • • • • You can share ad hoc reports with others by saving them in a location that is accessible to other users. such as the public folders.

© Satyam 2009 55 .Send Ad Hoc Reports by Email • You can share an ad hoc report with others by sending the report by email.

Print a report if your computer is not available. or if you want to take a copy of a report to a meeting. © Satyam 2009 56 .Print Ad Hoc Reports • • You can print a PDF version of an ad hoc report to obtain a hard copy of the information.

After you create a schedule. such as during off hours when demands on the system are low. or yearly. the report or job runs at the date and time specified. weekly. You can schedule reports to run by minute.Schedule Ad Hoc Reports • • • • You can schedule reports to run at a time that is convenient for you. monthly. daily. hourly. You can schedule reports individually or by using a job. © Satyam 2009 57 .

© Satyam 2009 58 .Schedule a Single Ad Hoc Report • You can schedule a single report to run it at a later time or at a recurring date and time.

A job identifies a collection of reports. © Satyam 2009 59 . and other jobs that are scheduled to run together and share the same schedule settings. report views.Schedule Multiple Ad Hoc Reports • • You can set the same schedule for multiple reports by creating a job.

View and Manage Schedules • You can use the Schedule Management tool to view and manage the schedules you have created. © Satyam 2009 60 .

Thank You © Satyam 2009 61 .