Report Studio User Guide
Report Studio User Guide
Report Studio User Guide
Version 10.1.0
User Guide
Product Information
This document applies to IBM Cognos BI Version 10.1.0 and may also apply to subsequent releases. To check for newer versions of this document, visit the IBM Cognos Information Centers (http://publib.boulder.ibm.com/infocenter/cogic/v1r0m0/index.jsp).
Copyright
Licensed Materials - Property of IBM Copyright IBM Corp. 2005, 2010. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. IBM, the IBM logo, ibm.com, PowerPlay, ReportNet, TM1, and Cognos are trademarks or registered trademarks of International Business Machines Corp., 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 www.ibm.com/legal/copytrade.shtml. Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Java and all Java-based trademarks and logos are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.
Table of Contents
Introduction
51 53
New Features in Version 10.1.0 53 Use Your Own External Data 53 Active Reports 53 Statistical Analysis 54 Mozilla Firefox Support 54 Chart Enhancements 54 Enhancements to the User Interface 56 Improved Set Operations 57 Preview Reports when Opening and Saving 58 Report Name Used for the Exported Output File Name 58 Enhancements for SAP BW Data Sources 58 Column Titles When Drilling up or Down 58 Custom Properties for Prompts 58 Simplified Calculations 58 New Report Style 59 List Enhancements 59 Accessible Report Output 59 Curly Brackets and Parentheses are Breakable 60 Changed Features in Version 10.1.0 60 Report Studio Express Authoring Mode Replaced by Business Insight Advanced 60 Order of Drawing Bars in Bar Charts 60 Removed Features in Version 10.1.0 60 Analyze with Analysis Studio 60 Conformed Dimensions on SAP BW Data Sources 60 Excel 2000 and Excel 2000 Single Sheet Report Outputs 60 What's New in Version 8.4 61 New Features in Version 8.4 61 Changed Features in Version 8.4 64 What's New in Version 8.3 64 New Features in Version 8.3 65 Changed Features in Version 8.3 68 Chapter 2: Understanding Report Studio
73
Building IBM Cognos Business Intelligence Applications 73 Relational vs. Dimensional Reporting Styles 74 The User Interface 76 Report Authoring Views 80 Page Design View 80 Page Structure View 80 Report Layout and Queries 80 Layout 80 Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
Table of Contents Queries 82 Report Objects 82 Find Objects in a Report 83 Options 84 Web Browser Settings 87 The IBM Cognos Software Development Kit 88 Chapter 3: Creating a Report
89
Creating a Basic Report 89 Specify the Data Package 89 Choose a Basic Report Layout 90 Add Data 91 Validate a Report 93 Save a Report 94 Run a Report 95 View Lineage Information for a Data Item 101 Access the IBM InfoSphere Business Glossary 104 Creating Reports for Business Insight Dashboards 104 Prompts in Business Insight Dashboards 105 Enable Filters in Business Insight Dashboards 105 Creating Reports for IBM Cognos for Microsoft Office 106 Creating Reports for Mobile Devices 108 Creating location-aware reports 108 Unsupported features 108 Chapter 4: Lists
111
Set List Properties 111 Hide Columns in List Reports 112 Limitations When Using Set Expressions in List Reports 112 Using Repeaters 113 Convert a List into a Repeater 113 Example - Create Mailing Labels 114 Chapter 5: Crosstabs
117
Crosstab Nodes and Crosstab Node Members 117 Moving Crosstab Nodes 118 Crosstab Node Creation Option 118 Set Crosstab Properties 118 Create a Single-Edge Crosstab 120 Create a Nested Crosstab 121 Specify the Default Measure 122 Swap Columns and Rows 122 Indent Data 123 Change a List into a Crosstab 123 Example - Add Aggregate Data to a Crosstab 123 Example - Create a Discontinuous Crosstab 125 Chapter 6: Charts
127
Current Default Charts and Legacy Charts 127 Creating Charts 127
Table of Contents Chart Objects 127 Chart Types 130 Choosing a Chart Type and Configuration 130 Column Charts 131 Line Charts 131 Pie Charts 132 Bar Charts 133 Area Charts 133 Point Charts 134 Combination Charts 134 Scatter Charts 135 Bubble Charts 136 Quadrant Charts 136 Bullet Charts 137 Gauge Charts 138 Pareto Charts 138 Progressive Column Charts 139 Microcharts 139 Marimekko Charts 140 Radar Charts 141 Polar Charts 141 Range Indicator Charts 142 Chart Configurations 142 Convert Charts From One Type to Another 145 Convert Legacy Charts to Current Default Charts 145 Limitations When Converting Legacy Charts 145 Customizing Chart Properties 147 Resize a Current Default Chart 150 Resize a Legacy Chart 150 Customizing the Color Palette of a Chart 151 Creating a Conditional Color Palette in a Chart 154 Change a Chart Background in a Current Default Chart 157 Change a Chart Background in a Legacy Chart 158 Add Background Effects to a Chart Object in a Legacy Chart 158 Add Colored Regions in a Current Default Chart 159 Specify Custom Label Text 161 Customizing the Axes of a Chart 162 Showing Gridlines in a Chart 165 Customize the Legend in a Current Default Chart 167 Customize the Items in the Legend of a Current Default Chart 168 Customize the Items in the Legend of a Legacy Chart 168 Adding a Note to a Chart 169 Adding a Baseline to a Chart 171 Adding Markers to Charts 174 Display Trendlines in Current Default Charts 177 Display Regression Lines in Legacy Scatter or Bubble Charts 178 Show Data Values or Labels in a Current Default Pie or Donut Chart 179 Show Data Values or Labels in Other Current Default Charts 180 Define Query Context When Customizing Legend Entries, Legend Titles, or Axis Labels 181
User Guide 5
Table of Contents Summarize Small Slices, Bars, or Columns in Current Default Charts 181 Customizing Lines and Data Points in a Line Chart 182 Customize a Current Default Combination Chart 184 Create a Matrix of Current Default Charts 184 Customize a Current Default Gauge Chart 186 Customize a Legacy Gauge Chart 188 Define Color by Value in Current Default Scatter and Bubble Charts 189 Specify the Bubble Size in a Current Default Bubble Chart 190 Set the Position of the First Slice in a Current Default Pie Chart 191 Create a Donut Chart from a Current Default Pie Chart 191 Pull Out Pie Slices in a Current Default Pie Chart 191 Define the Cumulation Line in a Current Default Pareto Chart 193 Define the Cumulation Line in a Legacy Pareto Chart 193 Insert a Microchart into a Crosstab 194 Customize a Current Default Bullet Chart 194 Create a Drill-up and Drill-down Chart 195 Example - Creating Drill-through Access in a Legacy Chart 195 Create the target report 196 Create the Source Report 197 Define the Drill Behavior 197 Example - Creating and Customizing a Metrics Range Legacy Chart 198 Create a Metrics Range Chart 198 Customize the Chart 199 Customize the Chart Legend Labels 200 Adding a Metric Studio Diagram to a Report 201 Add a Static Metric Studio Diagram to a Report 201 Add a Data-driven Metric Studio Diagram to a Report 202 Chapter 7: Maps
203
The Report Studio Map Object 203 Example - Create a Map Report 204 Set Map Properties 205 Example - Define Data Values for the Region Layer 207 Match Data Values to Names in the Map File 208 Define Data Values for the Point Layer 209 Add Colors to the Region or Point Layer 210 Add a Legend Title 210 Add a Note to a Map 211 Drill Through to Another Report From a Map 211 Edit a Map 212 Additional Maps 213 Location Intelligence 213 Chapter 8: Active Reports
215
Active Report Controls 215 Active Report Variables 216 Convert an Existing Report to an Active Report 216 Specify Active Report Properties 216 Adding Interactivity to a Report 217 Create and Manage Active Report Variables 217 6 IBM Cognos Report Studio
Table of Contents Adding Controls to a Report 218 Add Data to a Control 220 Define a Connection Between Controls 221 Specify the Selection Behavior of a Control 222 Specify the Reaction Behavior of a Control 223 Set the No Value List Item 225 Show or Hide a Column or Row 225 Sort Data in a List 226 Summarize Data in the Active Report Output 226 Run or Save an Active Report 226 Example - Create an Active Report Showing Revenue Data for Core Products 227 Example - Create an Active Report Showing Revenue Data for New Order Methods 231 Chapter 9: Statistical Analysis
235
IBM Cognos Statistics 235 Common Concepts in Statistical Analysis 236 Building Cases in IBM Cognos Statistics 240 Descriptive Statistics 241 Basic Descriptive Statistics 242 Create a Descriptives Table 244 Histograms 246 Create a Histogram 247 Boxplots 248 Create a Boxplot 250 Create a Q-Q Plot 252 Q-Q Plot Options 254 Means Comparison 255 t-Tests 255 Create a One-Sample t-Test 256 Using One-Way ANOVA to Compare Means 258 ANOVA Options 262 Nonparametric Tests 265 Create A One-Way Chi-Square Test 266 Example: Specify the Proportion for Expected Values in a Chi-Square Test 269 Create a Two-Way Chi-Square Test 270 Basic Correlation and Linear Regression 273 Showing Correlation Between Variables 274 Correlation Options 277 Use Linear Regression 278 Linear Regression Options 282 Create a Curve Estimate 285 Curve Estimation Options 287 Statistical Process Control 291 Control Charts 292 Create X-Bar, R, and S Charts 294 Create Individuals and Moving Range Charts 299 Create p,np Charts 300 Create c,u Charts 301 Cases are Units or Cases are Subgroups 302
User Guide 7
Table of Contents Specification Limits 303 Control Rules 303 Process Capability Indices 304 Process Performance Indices 305 Chapter 10: Relational Reporting Style
307
Add Relational Data to a Report 307 Group Relational Data 308 Perform Advanced Grouping 309 Set the Group Span for a Column 310 Divide Data into Sections 313 Summarizing Data Relationally 314 Add a Simple Summary 315 Set the Auto Group & Summarize Property 316 Specify Detail or Summary Aggregation in the Model 317 Specify Aggregation Properties for a Data Item 317 Use Summary Functions in Data Item Expressions 317 Summary Functions 320 Focusing Relational Data 324 Create a Detail or Summary Filter 324 Sorting Relational Data 328 Perform Advanced Layout Sorting 329 Working with Relational Queries 329 Specify a List of Data Items for an Object 330 Relate a Query to a Layout 330 Connecting Queries Between Different Data Sources 330 Add a Query to a Relational Report 331 Create a Union Query 332 Create a Join Relationship 336 Reference a Package Item in a Child Query 337 Create a Master Detail Relationship 337 Working with Queries in SQL 340 Using Relational Calculations 342 Create a Simple Calculation 343 Insert a Query Calculation 344 Create a Layout Calculation 346 Chapter 11: Dimensional Reporting Style
347
Add Dimensional Data to a Report 347 Customize the Source Tree 349 Insert a Member 349 Search for a Member 350 Nest Members 351 Insert a Hierarchy 351 Insert a Member Property 352 Create a Set of Members 352 Edit a Set 353 Extended Data Items 356 Tips for Working with Ragged or Unbalanced Hierarchies 357 Limited Support for Relational Functions When Used with OLAP Data Sources 357 8 IBM Cognos Report Studio
Table of Contents Summarizing Data Dimensionally 358 Add a Simple Summary 360 Summarizing Values in Crosstabs 361 Summarizing Member Sets 363 Limitations When Summarizing Measures in DMR Data Sources 363 Rolling and Moving Averages 364 Show Data for Specific Time Periods 365 Summary Functions 365 Focusing Dimensional Data 371 Create a Context Filter 371 Limitations When Filtering Dimensional Data Sources 373 Sorting Dimensional Data 375 Perform Advanced Set Sorting 377 Working with Dimensional Queries 377 Specify a List of Data Items for an Object 378 Relate a Query to a Layout 378 Using Dimensional Data Sources with Queries 379 Connecting Queries Between Different Data Sources 379 Multiple-fact Queries 380 Add a Query to a Dimensional Report 383 Add Dimension Information to a Query 384 Create a Master Detail Relationship 386 Working with Queries in SQL or MDX 389 Example - Create a Dynamic Report That Shows Period-to-date Data 395 Using Dimensional Calculations 396 Create a Simple Member Calculation 397 Insert a Query Calculation 398 Create a Layout Calculation 399 Create an Intersection (Tuple) 400 Assigning a Hierarchy or Dimension 400 Browse or Search the Values of a Data Item 401 Considerations when Creating Calculations 402 Drilling Up and Drilling Down in Dimensional Reports 413 Member Sets 414 Create a Drill-up and Drill-down Report 414 Example - Create a Dashboard Report 417 Chapter 12: Adding Prompts to Filter Data
421
Use the Build Prompt Page Tool 422 Build Your Own Prompt and Prompt Page 423 Example - Create a Report Showing Products Shipped for a Specific Time Interval 426 Create a Parameter to Produce a Prompt 428 Create a Prompt Directly in a Report Page 429 Modifying Prompts 430 Change the Prompt Control Interface 430 Specify That a Prompt Requires User Input 431 Allow Users to Select Multiple Values in a Prompt 431 Show or Hide Prompt Status 432 Specify a Default Selection for a Prompt 432
User Guide 9
Table of Contents Customize Prompt Text 433 Specify Prompt Values 433 Add a Prompt Button 434 Create a Cascading Prompt 435 Control the Data That Appears in a Tree Prompt 435 Using in_range Filters with Character Data 436 Chapter 13: Laying Out a Report
437
Report Layout Recommendations 437 The Page Structure View 438 Copy Object Formatting 439 Add a Header or Footer to a Report or List 439 Add Borders to an Object 441 Add a Text Item to a Report 441 Specify the Font for a Report 442 Insert an Image in a Report 442 Insert a Background Image in an Object 442 Add Background Effects 443 Insert a Formatting Object in a Report 445 Elements Supported in Rich Text Items 448 Example - Add a Multimedia File to a Report 448 Align an Object in a Report 449 Use a Table to Control Where Objects Appear 449 Apply a Table Style 450 Apply Padding to an Object 450 Set Margins for an Object 451 Add Multiple Items to a Single Column 451 Example - Create a Report with Multiple Items in One Column 451 Reuse a Layout Object 454 Change a Reused Object 455 Update Reused Objects 456 Specify Text Flow in an Object 456 Specify Line Spacing and Breaking 457 Specify the Height and Width of an Object 457 Control How Other Objects Flow Around an Object 458 Specify Report Properties 459 Create and Modify Report and Object Styles 460 (Don't Print) Class 461 Modify Classes to Format Query Studio Reports 462 Modifying the Default Layout Style Sheet 462 Add Color to an Object 462 Chapter 14: Working With Your External Data
465
Preparing to Work with your External Data 467 Import Your External Data 468 Edit Your External Data 471 Delete Your External Data 472 Running a Report That Contains External Data 472 Making your Reports Public 472
475
Highlight Data Using a Conditional Style 475 Manage Conditional Styles 478 Example - Add a Conditional Style to an Existing Report 478 Highlight Data Using a Style Variable 479 Adding Conditional Rendering to a Report 480 Add a Variable 480 Hide or Show an Object 482 Add Conditional Rendering 483 Example - Create a Conditional Report 484 Add Multiple Layouts 486 Creating Multilingual Reports 486 Create a Multilingual Report in Report Studio 488 Chapter 16: Bursting Reports
489
Defining Burst Recipients 489 Create a Calculated Field 489 Creating a Burst Table 490 Specify a Burst Group 492 Set Burst Options 492 Enable Bursting 494 Creating Burst Reports Using Dimensional Data Sources 494 Example - Burst a Report 495 Chapter 17: Format Data
497
Set the Default Data Formats 497 Specify the Data Format for an Object 498 Specifying the Number of Decimals in Numbers 498 Locale-sensitive Properties 499 Suppress Empty Cells 500 Suppress Null Cells Using Filters 500 Limitations When Formatting Empty Cells in SAP BW Data Sources 501 Example - Suppress Zeros in Rows and Columns in an Existing Report 501 Specify What Appears for Data Containers that Contain No Data 502 Using Patterns to Format Data 502 Pattern Guidelines 502 Date and Time Symbols 503 Decimal Format Symbols 511 Chapter 18: Using Query Macros
513
Add a Query Macro 513 Creating Prompts Using Query Macros 513 Example - Select a Country Prompt 516 Chapter 19: Using Drill-through Access
517
Understanding Drill-through Concepts 518 Drill-through Paths 518 Selection Contexts 519 Drilling Through to Different Report Formats 519 Drilling Through Between Packages 520
User Guide 11
Table of Contents Bookmark References 520 Members and Values 521 Member Unique Names 521 Conformed Dimensions 522 Business Keys 523 Scope 523 Mapped Parameters 524 Drilling Through on Dates Between PowerCubes and Relational Packages 525 Set Up Drill-through Access in a Report 525 Specify the Drill-through Text 528 Example - Drill Through to a Hidden Report from a Report Studio Report 529 Try It Yourself - Create a Report with Drill-through Access to Itself 531 Drilling Through from IBM Cognos Series 7 to IBM Cognos BI 535 Setting Up Drill-through Access from IBM Cognos Visualizer 535 Setting Up Drill-through Access from PowerPlay Web 535 Create and Test the Target for a Series 7 Report 536 Chapter 20: Working with Multiple Pages
537
Add a Page to a Report 537 Create a Page Break or Page Set 538 Join Nested Page Sets 539 Example - Preparing a Product List Report 540 Add a Bookmark 542 Create a Table of Contents 544 Example - Add a Table of Contents to a Report 545 Insert Page Numbers in a Report 547 Control Page Breaks and Page Numbering 547 Create Page Layers 549 Chapter 21: Creating Report Templates Convert a Report to a Template 551 Create a New Template 551 Chapter 22: Managing Existing Reports
551
553
Open and Save a Report on Your Computer 553 Copy a Report to the Clipboard 554 Open a Report from the Clipboard 554 Open a File from Another Studio 554 Analysis Studio Query Specification 555 Managing Changes in the Package 559 Update a Name Reference 560 Change the Package 560 Chapter 23: Upgrading Reports
563
Upgrading Reports from IBM Cognos BI Version 8.4 563 Upgrading Report Styles 563 Upgrading Legacy Charts 564 New Default for Hidden or Deleted Axis Titles 564 Upgrading Reports with SAP BW Prompt Variables 564 Upgrading Reports from IBM Cognos BI Version 8.1 or 8.2 565
Table of Contents Members Containing No Data Are Not Suppressed for SAP BW 565 Thousands Separators Missing 565 RQP-DEF-0177 Error When Upgrading Reports 565 Upgrading Reports from IBM Cognos ReportNet 566 Undocumented and Unsupported Features 566 No Sort Order 566 Layout Errors 566 Report Format 566 Customized Style Sheets 566 PDF Reports 567 IF-THEN-ELSE Statements 567 Solve Order 567 Chart Behavior 567 Database Only Processing of Queries 567 Changes in the Behavior of Functions Between ReportNet 1.1 and IBM Cognos BI 567 Chapter 24: Sample Reports and Packages
569
The Great Outdoors Company Samples 569 The Great Outdoors Group of Companies 570 Employees 572 Sales and Marketing 572 Great Outdoors Database, Models, and Packages 573 Samples in the Sales and Marketing (Cube) Package 575 Actual vs. Planned Revenue 575 Historical Revenue 576 Revenue by Date Range 576 Revenue by Product Brand (2005) 576 Running Total For Promotion 577 Sales Revenue Expectation 577 Same Month Prior Year 577 Selected Retailer Country 577 Top Retailers by Country 578 Tree Prompt Retailers Set 578 Samples in the GO Data Warehouse (analysis) Package 578 Budget vs. Actual 579 Customer Returns and Satisfaction 579 Employee Satisfaction 2006 579 Employee Training by Year 580 Eyewear Revenue by Brand and Size 580 Global Bonus Report 581 GO Balance Sheet as at Dec 31 2006 581 Great Outdoors Company Balance Sheet as at Dec 31 2006 581 Manager Profile 581 Planned Headcount 582 Positions to Fill 582 Promotion Success 582 Quantity Sold vs. Shipped and Inventory 583 Recruitment Report 583 Return Quantity by Order Method 583
User Guide 13
Table of Contents Returned Items 583 Returns by Damage, Failed Orders and Complaints in 2006 584 Returns by Failed Orders in 2006 584 Returns by Order Method 584 Revenue by GO Subsidiary 2005 585 Sales Commissions for Central Europe 585 Sales Growth Year Over Year 586 Succession Report 586 Top 10 Retailers for 2005 586 Samples in the GO Data Warehouse (query) Package 587 Bursted Sales Performance Report 587 Employee Expenses 587 Health Insurance 587 Pension Plan 587 Regular Salary 588 TOC Report 588 Total Revenue by Country 588 Samples in the GO Sales (analysis) Package 588 2005 Quarterly Sales Forecast 588 2005 Sales Summary 589 Briefing Book 589 Horizontal Pagination 589 No Data 590 PDF Page Properties 590 Singletons on Page Body 590 Table of Contents 590 Samples in the GO Sales (query) Package 591 Order Invoices - Donald Chow, Sales Person 591 Samples in the IBM Cognos Statistics Package 591 Advertising Costs on Sales Revenue 592 Catalog Sales 592 Clothing Manufacturer Quality 592 Discharged Patients 592 DVD Score 592 Income Growth 592 Shampoo pH Level 593 Interactive Samples 593 Bursted Sales Performance Report 593 Percentage Calculation (by year) 593 Recruitment Report 594 Revenue by GO Subsidiary 2005 594 Rolling and Moving Averages 595 Chapter 25: Limitations When Producing Reports in Microsoft Excel Format
597
Unable to Load Images from the IBM Cognos BI Content Store in a Report 597 Blank Worksheet Appears 597 Warning Message Appears When Excel Opens an IBM Cognos Business Intelligence Report 597 Spreadsheet Content Not Saved for Reports Saved in XLS Format 597 Unable to Load Excel Report in Netscape 7.01 598
Table of Contents Unable to Nest Labels in Charts 598 Data Series Are Truncated 598 Colors Different From Those in HTML or PDF 598 Repeating Pie Charts 598 Unable to Skip Discrete Axis Labels 598 Unsupported IBM Cognos Business Intelligence Formatting 599 Cells Contain Series of # 600 Excel Cannot Render Reports with More Than 256 Columns 600 Table and Column Widths 600 Secure Socket Layer (SSL) Is Not Supported in Some Excel Formats and Versions 600 Number Formats Become Currency Formats in Japanese Excel 600 Reports Show Data in Wrong Columns 601 Unable to Access Reports on Remote Servers 601 Drill-through Reports Are Not Supported in Excel 601 Map Reports Are Not Supported in Excel 601 Unsupported Excel Formatting 601 Hyperlink Buttons Are Not Supported in Excel 601 Unable to View Reports in Excel Format Sent as Email Attachments 602 Unsupported Chart Properties in Excel 602 Unsupported Chart Types in Excel 603 Cell Height and Width Are Incorrect 604 Chapter 26: Report Studio Object and Property Reference Report Studio Objects 605 3-D Area 605 3-D Bar 605 3-D Combination Chart 606 3-D Line 606 3-D Scatter Chart 606 Angular Axis 606 Angular Measure 607 Area 607 Area 607 As of Time Expression 607 Axis Labels 607 Axis Title 607 Axis Title 608 Bar 608 Bar 608 Baseline 608 Baseline 608 Baseline 609 Baseline 609 Block 609 Bookmark 609 Bubble Chart 610 Bubble Chart 610 Bubble Measure 610 Bubble Measure 610
605
User Guide 15
Table of Contents Bullet Chart 611 Bullet Measure 611 Button 611 Button 611 Button Bar 611 Button Icon 612 Button Label 612 Button Value 612 Calculated Measure 612 Calculated Member 612 Calculated Member 612 Caption 613 Card 613 Card Label 613 Card Value 613 Category axis 613 Category Axis 613 Category Baseline 614 Chart Body 614 Chart Body 614 Chart Footer 614 Chart Footer 614 Chart Measure 615 Chart Node Member 615 Chart Subtitle 615 Chart Subtitle 615 Chart Text Item 615 Chart Text Item 616 Chart Title 616 Chart Title 616 Check Box 616 Check Box Group 616 Check Box Icon 616 Check Box Label 617 Check Box Value 617 Class 617 Color by Value Measure 617 Colored Region 617 Colored Region 618 Combination Chart 618 Combination Chart 618 Component Override 619 Conditional Block 619 Conditional Block 619 Context Item Text 619 Crosstab 619 Crosstab Columns 620 Crosstab Columns 620 Crosstab Corner 620
Table of Contents Crosstab Fact Cells 620 Crosstab Intersection 621 Crosstab Member Fact Cells 621 Crosstab Node Member 622 Crosstab Rows 622 Crosstab Rows 622 Crosstab Space 622 Crosstab Summary 623 Cumulation Label 623 Cumulation Line 623 Cumulation Line 623 Cumulation Line 623 Cumulation Line Axis 623 Cumulation Line Label 624 Data Button Bar 624 Data Check Box Group 624 Data Deck 624 Data Drop-Down List 624 Data Item 625 Data List Box 625 Data Radio Button Group 625 Data Tab Control 625 Data Toggle Button Bar 625 Date 626 Date & Time Prompt 626 Date Prompt 626 Deck 626 Default Measure 626 Default Measure 627 Detail Filter 627 Dimension 627 Dimensional Edge Summary 627 Display Layer 627 Drop-Down List 627 Edge Summary 628 Equation Label 628 Explicit Member Set 628 Fact 628 Field Set 628 Gauge Axis 628 Gauge Chart 629 Gauge Chart 629 Gauge Labels 629 Gauge Numerical Axis 629 Generated Prompt 630 Hierarchy Set 630 HTML Item 630 Hyperlink 630 Hyperlink Button 631
User Guide 17
Table of Contents Image 631 Intersection (Tuple) 631 Interval Prompt 631 Join 632 Key 632 Label 632 Layout Component Reference 632 Legend 632 Legend 632 Legend Title 633 Legend Title 633 Level 633 Level Hierarchy 633 Level Set 633 Line 634 Line 634 List 634 List Box 634 List Cell 634 List Column 635 List Column Body 635 List Columns 635 List Columns 636 List Columns Body Style 636 List Columns Title Style 636 List Column Title 636 List Footer 636 List Header 637 List Item 637 List Item Icon 637 List Item Label 637 List Item Value 637 List Page Footer 638 List Page Header 638 List Row 638 List Row Cells Style 638 List Summary 638 List Summary 638 Map 639 Map Location 639 Map Location 639 Map Refinement Location 639 Map Refinement Location 640 Marimekko Chart 640 Marker 640 Marker 640 Marker 641 MDX 641 Measure 641
Table of Contents Member 641 Member Children Set 641 Member Hierarchy 641 Member Property 642 Member Property 642 Member Set 642 Metrics Range Chart 642 Metric Studio Diagram 642 Named Set 643 Note 643 Note 643 Note Content 643 No Value List Item 643 Numerical Axis 643 Numerical Axis 644 Numeric Axis 644 Numeric Baseline 644 Page 644 Page Body 644 Page Break Text 645 Page Footer 645 Page Header 645 Page Number 645 Page Set 645 Pareto Bars 646 Pareto Chart 646 Pareto Chart 646 Pie Chart 647 Pie Chart 647 Pie Labels 647 Point Color Legend Title 647 Point Layer 648 Point Measure 648 Point Size Legend Title 648 Point Size Measure 648 Polar Chart 648 Primary Axis 649 Primary Bottom Axis 649 Progressive Chart 649 Progressive Chart 649 Prompt Button 650 Query 650 Query Operation 650 Query Reference 650 Radar Chart 651 Radial Axis 651 Radial Measure 651 Radio Button 651 Radio Button Group 651
User Guide 19
Table of Contents Radio Button Icon 652 Radio Button Label 652 Radio Button Value 652 Region Color Legend Title 652 Region Layer 652 Region Measure 652 Regression Line 653 Repeater 653 Repeater Table 653 Repeater Table Cell 653 Rich Text Item 653 Row Number 654 Scatter Chart 654 Scatter Chart 654 Scatter Marker 654 Secondary Axis 655 Secondary Bottom Axis 655 Select & Search Prompt 655 Set Expression 655 Singleton 656 Slicer Member Set 656 SQL 656 Summary Filter 656 Tab 656 Tab Control 656 Tab Icon 657 Tab Label 657 Table 657 Table Cell 657 Table of Contents 657 Table of Contents Entry 658 Table Row 658 Tab Value 658 Target Measure 658 Target Measure 658 Text Box Prompt 658 Text Item 659 Time 659 Time Prompt 659 Toggle Button Bar 659 Tolerance Measure 660 Total Column 660 Total Column Label 660 Tree Prompt 660 Trendline 660 Trendline Label 661 Value Prompt 661 Variable 661 Variable Text Item 661
Table of Contents Win-Loss Chart 661 Win-Loss Measure 662 X Axis 662 X Axis 662 X Axis 662 X Axis Measure 662 Y1 Axis 663 Y2 Axis 663 Y Axis 663 Y Axis 663 Y Axis 663 Y Axis Measure 663 Z Axis 664 Z Axis 664 Z Axis Measure 664 Report Studio Properties 664 3-D Viewing Angle 664 Absolute Position 665 Across 665 Active Report Variable 665 Aggregate Data Item 665 Aggregate Function 665 Aggregation Method 666 Allow 45 Rotation 666 Allow 90 Rotation 666 Allow Skip 666 Allow Sorting 666 Allow Stagger 666 Allow Ties 666 Alternate Text 667 Angular Axis 667 Application 667 Apply Single Class 667 Area Shape 668 Auto Font Size 668 Auto Group & Summarize 668 Auto-Sort 668 Auto-Submit 668 Auto Truncation 668 Avoid Division by Zero 668 Avoid Label Collision 669 Axis Angles 669 Axis Assignment 669 Axis Assignment 669 Axis Direction 669 Axis Justification 669 Axis Labels 669 Axis Labels 670 Axis Line 670
User Guide 21
Table of Contents Axis Line 670 Axis Line 670 Axis Range 670 Axis Title 670 Axis Title 671 Axis Title 671 Background Color 671 Background Effects 671 Background Image 672 Bar, Line, or Area Index 672 Bar Shape 672 Bar Width 673 Based on 673 Baselines 673 Bevel 673 Block Variable 673 Border 673 Border Color 674 Border Color 674 Borders 674 Borders 674 Borders 674 Bottom Position 675 Bottom Position (px) 675 Bottom Position (px) 675 Box Type 675 Box Type 675 Bubble Size 676 Bubble Size 676 Bubble Size 676 Bubble Size 676 Bullet Indicators 676 Button Definition 676 Button Gap 677 Buttons Definition 677 Button Width 677 Calculation Intersection 677 Calendar Type 677 Caption 677 Caption 677 Cardinality 678 Cascade Source 678 Case Insensitive 678 Catalog 678 Category Axis 678 Category Baselines 678 Chart Orientation 679 Chart Type 679 Chart Type 679
Table of Contents Chart Type 679 Check Boxes Definition 679 Choices Deselect All Text 679 Choices Select All Text 680 Choices Text 680 Classes 680 Clickable Region 680 Clickable Region 681 Clickable Regions 681 Clock Mode 681 Color by Value 681 Colored Regions 681 Color Legend Title 681 Color Legend Title 682 Column Coordinate 682 Column Titles 682 Column Visibility 682 Combinations 682 Component Reference 682 Component Reference 683 Conditional Palette 683 Conditional Palette 683 Conditional Styles 683 Connecting Lines 684 Connecting Lines 684 Connections 684 Container Filter 684 Container Select 684 Contents Height 685 Control Enable 685 Cross Product Allowed 685 Cumulation Axis 685 Cumulation Axis 685 Cumulation Label 685 Cumulation Label 686 Cumulative Line 686 Cumulative Line 686 Current Block 686 Current Card 686 Current Tab 686 Custom Label 686 Custom Label 687 Data Format 687 Data Item 687 Data Item 687 Data Item Label 688 Data Item Label 688 Data Item Label 688 Data Item Label 688
User Guide 23
Table of Contents Data Item Value 688 Data Item Value 689 Data Item Value 689 Data Item Value 689 Data Item Value 689 Data Item Value 689 Data Language 689 Data Points 690 Data Source 690 Days Text 690 Deck Cards Definition 690 Default Card 690 Default Measure 690 Default Selections 691 Default Title 691 Default Title 691 Define Contents 691 Define Member Sets 691 Definition 691 Depth 691 Description 692 Deselect Text 692 Detail 692 Diagram Identifier 692 Dial Face Fill 692 Dial Outline Color 693 Dictionary 693 Dimension 693 Display After Overall Header 693 Display Frequency 693 Display Milliseconds 693 Display Seconds 694 Display Value 694 Down 694 Drill-Through Definitions 694 Drop Shadow 694 Drop Shadow 694 Duplicates 695 Embed 695 End Position 695 Execution Method 695 Execution Optimization 695 Expand Features 696 Exploded Slices 696 Expression 696 Expression 696 Expression 696 Extend Width 697 Face Color 697
Table of Contents Fact Cells Precedence 697 Fill Effects 697 First Column Color 697 First Date 697 First Label Index 698 First Slice Angle 698 Floating 698 Font 698 Font Auto-Sizing 699 Footer 699 Footer 699 Foreground Color 699 From Text 700 Gauge Axes 700 Gauge Axis Colors 700 Gauge Axis Inner Radius 700 Gauge Axis Outer Radius 700 Gauge Border 701 Gauge Labels 701 Gauge Needle 701 Gauge Palette 701 Gauge Pivot 701 Generated SQL 701 Gradient 701 Gridlines 702 Gridlines 702 Gridlines 702 Grouping & Sorting 702 Grouping Type 702 Group Span 702 Has Fact Cells 702 Header Text 703 Heading Level 703 Height (px) 703 Hide Adornments 703 Hide Text 703 Hierarchy 703 Hierarchy Unique Name 704 Highest Value Text 704 Hole Size (%) 704 Horizontal Alignment 704 Hours Text 705 HTML 705 HTML Source Variable 705 Icon 705 Ignore Data with No Features 706 Include Zero For Auto Scale 706 Insert Text 706 Join Relationships 706
User Guide 25
Table of Contents Keywords Text 706 Label 706 Label 707 Label 707 Label 707 Label 707 Label 707 Label 707 Label 708 Label Control 708 Label Location 708 Labels 708 Labels 708 Last Date 709 Left Position 709 Left Position (px) 709 Left Position (px) 709 Legend 709 Legend 709 Legend Label 709 Legend Separator 710 Legend Title 710 Legend Title 710 Level 710 Level Indentation 710 Level Unique Name 711 Line and Markers 711 Line Shape 711 Line Style 711 Line Style 711 Line Style 711 Line Styles 712 Line Type 712 Line Weight (pt) 712 List Items Definition 712 Loss Color 712 Lowest Value Text 712 Map & Layers 713 Map Drills 713 Margin 713 Marimekko Totals 713 Marker Color 713 Marker Color 713 Marker Label 714 Markers 714 Markers 714 Marker Shape 714 Marker Shape 714 Marker Size (pt) 714
Table of Contents Marker Text Location 715 Master Detail Relationships 715 Material Effects 715 Material Effects 715 Matrix rows and columns 715 Maximum Characters 716 Maximum Execution Time 716 Maximum Hotspots 716 Maximum Rows Retrieved 716 Maximum Size (pt) 716 Maximum Tables 717 Maximum Text Blob Characters 717 Maximum Truncation Characters 717 Maximum Value 717 MDX 717 Member 718 Member Offset (%) 718 Members 718 Members 718 Member Unique Name 718 Milliseconds Text 719 Minimum Size (pt) 719 Minimum Value 719 Minor Gridlines 719 Minor Gridlines 719 Minor Gridlines 720 Minutes Text 720 Multi-Line 720 Multi-Select 720 Name 720 Name 721 Name 721 Name 721 Name 721 Name 722 Negative Column Color 722 Nested Label Display 722 No Data Contents 722 No Data Features Size (pt) 722 Node Coordinate 723 Note Border 723 Notes 723 Notes 723 Note Text 723 No Value List Item 723 Number of Regression Lines 724 Numbers Only 724 Number Style 724 Numerical Axis 724
User Guide 27
Table of Contents Numerical Axis 724 Numeric Baselines 724 Numeric Value 724 Numeric Value 725 Options Text 725 Orientation 725 Outer Join Allowed 725 Output Aggregation Method 725 Override Dimension Info 725 Overrides 725 Padding 726 Pagination 726 Palette 726 Palette 726 Palette 727 Parameter 727 Pareto Axis 727 PDF Page Setup 727 Percentile 727 Percent of Axis 727 Performance Pattern 728 Pie Labels 728 Plot Area Fill 728 Point Shape 728 Polynomial Exponent 728 Position 728 Position 728 Position in List 729 Position type 729 Position type 729 Position type 729 Positive Column Color 729 Pre-populate 729 Pre-populate Levels 730 Pre-Sort 730 Processing 730 Progressive Axis 730 Progressive Palette 730 Projection List 730 Properties 731 Property 731 Property Unique Name 731 Push To Bottom 731 Query 731 Radar Type 732 Radial Axis 732 Radio Buttons Definition 732 Range 732 Range Label 733
Table of Contents Regression Line 733 Regression Type 733 Relative Alignment 733 Remove Text 733 Render 734 Render Fact Cells 734 Render Page when Empty 734 Render Variable 734 Repeater Direction 735 Report Expression 735 Report Expression 735 Report Expression 735 Report Expression 735 Report Expression 736 Report Expression 736 Report Expression 736 Report Expression 736 Report Expression 736 Required 736 Results Deselect All Text 737 Results Select All Text 737 Results Text 737 Reverse Category order 737 Right Position 737 Right Position (px) 737 Rollup Aggregate Function 738 Rollup Processing 738 Root Members Only 738 Rotate Values 739 Row Coordinate 739 Rows Per Page 739 Scale 739 Scale Interval 739 Scope 739 Search Instructions Text 740 Search Text 740 Seconds Text 740 Select UI 740 Separator 740 Series Color 740 Series Type 741 Set Operation 741 Set Sorting 741 Set Variable Values 741 Share Result Set 742 Show Caption 742 Show Data Points 742 Show Data Range in Legend 742 Show Features with No Data 742
User Guide 29
Table of Contents Show Feelers 742 Show Hover 743 Show Icon 743 Show Legend Values 743 Show line 743 Show Pointer Cursor 743 Show Values 743 Show Values 744 Show Values 744 Show Values 744 Show Values 744 Show Values 744 Size 744 Size & Overflow 744 Size & Overflow 745 Size Legend Title 745 Slice Direction 745 Slide Animation Direction 745 Solve Order 746 Solve Order 746 Sorting 746 Source Type 746 Source Type 746 Source Type 747 Source Type 747 Spacing & Breaking 747 Spider Effects 747 SQL 747 SQL Join Syntax 748 SQL Syntax 748 Standard Deviations 748 Start Position 748 Static Choices 748 Style Variable 749 Subtitle 749 Subtitle 749 Summarize Small Items 749 Summarize Small Slices 750 Summary Text 750 Suppress 750 Suppression 750 Table Header 750 Table of Contents 751 Table of Contents Name 751 Table Properties 751 Tab Orientation 751 Tabs Definition 751 Tab Width 751 Target Color 752
Table of Contents Target Marker 752 Target Marker Border Color 752 Target Marker Position 752 Target Range (%) 752 Text 752 Text Color 753 Text Flow & Justification 753 Text Orientation 753 Text Source Variable 753 Text Truncation 753 Title 753 Title 754 Tolerance Color 754 Tolerance Label 754 Tooltips 754 Tooltips 754 Tooltips 755 Tooltips 755 Top Position 755 Top Position (px) 755 Total Column 755 Total Column 755 Total Column Color 755 To Text 756 Trendline Label 756 Trendlines 756 Truncation 756 Truncation Text 756 Type 756 Type 756 Type 757 Type 757 Upper Range Skew (%) 757 URL 757 URL Source Variable 757 Usage 758 Use 1.x Behavior 758 Use Aggregate Cache 758 Use Detail Value on Page 758 Use for Parameter Info 758 Use Local Cache 759 User SAP Member Cache 759 Use Same Range For All Instances 759 Use SAP MUN as Business Key 759 Use Set Aggregation 759 Use SQL Parameters 760 Use SQL With Clause 760 Use Thousands Separator 760 Use Value 760
User Guide 31
Table of Contents Use Value 760 Value Location 760 Value Markers 761 Value Representation 761 Values 761 Values 761 Values 761 Value Type 761 Vertical Alignment 762 Visible 762 Visible 762 Visual Angle 762 White Space 763 Width (px) 763 Win Color 763 Win-Loss Threshold 763 X Axis 763 X-Axis Data Item Value 763 Y1 Axis 764 Y2 Axis 764 Y2 Axis Position 764 Y Axis 764 Y-Axis Data Item Value 764 Data Formatting Properties 764 "Not Applicable" Characters 765 Any Error Characters 765 Calendar Type 765 Clock 765 Currency 765 Currency Display 765 Currency Symbol 765 Currency Symbol Position 765 Date Ordering 766 Date Separator 766 Date Style 766 Decimal Separator 766 Display AM / PM Symbols 766 Display As Exponent 766 Display Days 766 Display Eras 766 Display Hours 766 Display Milliseconds 767 Display Minutes 767 Display Months 767 Display Months 767 Display Seconds 767 Display Time Zone 767 Display Weekdays 767 Display Years 767
Table of Contents Display Years 767 Divide By Zero Characters 767 Exponent Symbol 768 Group Size (digits) 768 International Currency Symbol 768 Mantissa (digits) 768 Maximum No. of Digits 768 Minimum No. of Digits 768 Missing Value Characters 768 Negative Pattern 768 Negative Sign Position 769 Negative Sign Symbol 769 No. of Decimal Places 769 Numeric Overflow Characters 769 Padding Character 769 Pattern 769 Percentage Symbol 769 Percent Scale (integer) 769 Scale 770 Secondary Group Size (digits) 770 Security Error Characters 770 Thousands Separator 770 Time Separator 770 Time Style 770 Time Unit 770 Use Thousands Separator 770 Zero Value Characters 771 Appendix A: Calculation Components Operators 774 ( 774 ) 774 * 774 , 774 / 774 || 774 + 774 - 775 < 775 <= 775 <> 775 = 775 > 775 -> 776 >= 776 and 776 auto 776 between 776 case 777
773
User Guide 33
Table of Contents contains 777 currentMeasure 777 default 777 distinct 777 else 777 end 778 ends with 778 for 778 for all 778 for any 778 for report 778 if 779 in 779 in_range 779 is missing 779 is null 780 is not missing 780 is not null 780 like 780 lookup 780 not 780 or 781 prefilter 781 rows 781 starts with 781 then 781 when 781 Summaries 781 aggregate 782 average 782 count 782 maximum 782 median 783 minimum 783 moving-average 783 moving-total 784 percentage 784 percentile 785 quantile 786 quartile 786 rank 787 running-average 788 running-count 788 running-difference 789 running-maximum 789 running-minimum 790 running-total 791 standard-deviation 791 standard-deviation-pop 792
Table of Contents total 792 variance 792 variance-pop 792 Member Summaries 793 aggregate 793 average 793 count 793 maximum 794 median 794 minimum 794 percentage 794 percentile 794 quantile 795 quartile 795 rank 795 standard-deviation 795 standard-deviation-pop 795 total 796 variance 796 variance-pop 796 Constants 796 date 796 date-time 796 time with time zone 796 timestamp with time zone 796 interval 797 interval year 797 interval month 797 interval year to month 797 interval day 797 interval hour 797 interval minute 797 interval second 797 interval day to hour 797 interval day to minute 797 interval day to second 797 interval hour to minute 797 interval hour to second 797 interval minute to second 798 null 798 number 798 string 798 time 798 Constructs 798 if then else 798 in_range 798 search case 799 simple case 799 Business Date/Time Functions 799
User Guide 35
Table of Contents _add_days 799 _add_months 800 _add_years 800 _age 800 _day_of_week 801 _day_of_year 801 _days_between 801 _days_to_end_of_month 801 _first_of_month 802 _last_of_month 802 _make_timestamp 802 _months_between 803 _week_of_year 803 _years_between 803 _ymdint_between 804 Block Functions 804 _firstFromSet 804 _remainderSet 805 Macro Functions 805 + 805 _add_days 805 _add_months 806 _add_years 806 array 807 csv 807 dq 807 getConfigurationEntry 808 grep 808 _first_of_month 808 _last_of_month 808 join 809 prompt 809 promptmany 810 sb 810 sq 811 sort 811 split 811 substitute 811 timestampMask 812 toLocal 812 toUTC 813 unique 813 urlencode 814 CSVIdentityName 814 CSVIdentityNameList 814 CAMPassport 814 CAMIDList 815 CAMIDListForType 815 Common Functions 815
Table of Contents abs 815 cast 816 ceil 816 ceiling 816 char_length 817 character_length 817 coalesce 817 current_date 817 current_time 818 current_timestamp 818 exp 818 extract 818 floor 819 ln 819 localtime 819 localtimestamp 820 lower 820 mod 820 nullif 820 octet_length 820 position 821 power 821 _round 821 sqrt 822 substring 822 trim 822 upper 822 Dimensional Functions 823 ancestor 823 ancestors 823 bottomCount 824 bottomPercent 824 bottomSum 824 caption 825 children 825 closingPeriod 825 cousin 826 completeTuple 826 currentMember 827 defaultMember 827 descendants 828 except 829 filter 829 firstChild 830 firstSibling 830 _format 830 emptySet 831 generate 831 head 831
User Guide 37
Table of Contents hierarchize 832 hierarchy 832 item 833 intersect 833 lag 833 lastChild 833 lastPeriods 834 lastSibling 834 lead 834 level 835 levels 835 linkMember 836 members 836 nextMember 836 openingPeriod 836 order 837 ordinal 838 parallelPeriod 838 parent 839 periodsToDate 839 prevMember 839 member 840 nestedSet 840 set 840 siblings 841 tail 841 topCount 841 topPercent 842 topSum 842 tuple 842 union 843 roleValue 843 rootMember 844 rootMembers 844 subset 844 unique 845 value 845 DB2 845 ascii 845 ceiling 845 char 846 chr 846 concat 846 date 846 day 847 dayname 847 dayofweek 847 dayofweek_iso 847 dayofyear 848
Table of Contents days 848 dec 848 decimal 848 difference 848 digits 849 double 849 event_mon_state 849 float 849 hex 849 hour 850 insert 850 integer 850 int 850 julian_day 851 lcase 851 left 851 length 851 locate 852 long_varchar 852 ltrim 852 microsecond 852 midnight_seconds 852 minute 853 month 853 monthname 853 quarter 853 radians 854 repeat 854 replace 854 right 854 round 855 rtrim 855 second 855 sign 855 smallint 856 soundex 856 space 856 substr 856 table_name 856 table_schema 857 time 857 timestamp 857 timestamp_iso 857 timestampdiff 857 to_char 858 translate 858 trunc 858 truncate 858 ucase 859
User Guide 39
Table of Contents value 859 varchar 859 week 859 year 859 DB2 Math 860 DB2 Trigonometry 860 Informix 862 cardinality 862 char_length 862 concat 863 date 863 day 863 extend 863 hex 863 initcap 864 length 864 lpad 864 mdy 864 month 864 nvl 864 octet_length 865 replace 865 round 865 rpad 865 substr 866 to_char 866 to_date 866 trunc 866 weekday 866 year 867 Informix Math 867 Informix Trigonometry 867 MS Access 868 ascii 868 ceiling 869 chr 869 concat 869 curdate 869 curtime 869 dayname 869 dayofmonth 870 dayofweek 870 dayofyear 870 hour 870 instr 870 lcase 870 left 871 length 871 locate 871
Table of Contents ltrim 871 minute 871 month 871 monthname 872 now 872 position 872 quarter 872 right 872 round 872 rtrim 873 sign 873 space 873 substr 873 substring 874 truncate 874 ucase 874 week 874 year 874 MS Access Cast 874 MS Access Math 875 MS Access Trigonometry 876 Netezza 876 ascii 876 chr 877 decode 877 initcap 877 instr 877 lpad 877 ltrim 878 months_between 878 next_day 878 nvl 878 round 878 rpad 878 rtrim 879 substr 879 {current_db} 879 {current_user} 879 {session_user} 879 to_char 879 to_date 879 to_number 880 translate 880 date_trunc 880 trunc 880 version 880 Netezza Math 880 Netezza Trigonometry 881 Netezza Fuzzy 882
User Guide 41
Table of Contents Netezza Phonetic 882 Oracle 883 add_months 883 ascii 883 ceil 883 char_length 884 chr 884 concat 884 decode 884 dump 884 greatest 885 initcap 885 instr 885 instrb 885 least 885 length 885 lengthb 886 lpad 886 ltrim 886 months_between 886 new_time 886 next_day 887 nls_initcap 887 nls_lower 887 nls_upper 887 nvl 887 replace 888 round 888 rpad 888 rtrim 888 sign 888 soundex 889 substr 889 substrb 889 {sysdate} 889 to_char 889 to_date 890 to_number 890 translate 890 trunc 890 trunc 890 {user} 890 vsize 891 Oracle Math 891 Oracle Trigonometry 891 Red Brick 893 ceil 893 concat 893 {current_user} 893
Table of Contents date 893 dateadd 893 datediff 894 datename 894 dec 894 decimal 894 decode 894 float 894 ifnull 895 int 895 integer 895 length 895 lengthb 895 ltrim 895 nullif 896 positionb 896 real 896 round 896 rtrim 896 sign 897 string 897 substr 897 substrb 897 time 897 timestamp 898 timestamp 898 to_char 898 SQL Server 898 ascii 898 char 898 charindex 899 {current_user} 899 datalength 899 dateadd 899 datediff 899 datename 899 datepart 900 day 900 difference 900 getdate 901 left 901 ltrim 901 month 901 patindex 901 replace 902 replicate 902 reverse 902 right 902 round 902
User Guide 43
Table of Contents rtrim 902 sign 903 soundex 903 space 903 str 903 stuff 903 year 903 SQL Server Math 904 SQL Server Trigonometry 904 Teradata 906 account 906 add_months 906 bytes 906 case_n 906 char2hexint 907 characters 907 database 907 date 907 format 907 index 907 log 907 nullif 908 nullifzero 908 profile 908 random 908 role 908 session 908 soundex 908 substr 909 time 909 type 909 user 909 vargraphic 909 zeroifnull 909 Teradata Trigonometry 910 SAP BW 912 SAP BW Trigonometry 912 SAP BW Math 913 Sybase 913 ascii 913 char 914 charindex 914 datalength 914 dateadd 914 datediff 914 datename 915 datepart 915 day 915 difference 915
Table of Contents getdate 916 left 916 ltrim 916 month 916 patindex 916 rand 917 replicate 917 reverse 917 right 917 round 917 rtrim 917 soundex 918 space 918 str 918 stuff 918 substring 918 to_unichar 919 uhighsurr 919 ulowsurr 919 uscalar 919 year 920 Sybase Math 920 Sybase Trigonometry 920 Postgres 922 Postgres String 922 ascii 924 chr 924 {current_catalog} 924 {current_db} 924 {current_schema} 924 {current_user} 924 {session_user} 925 Postgres Data type formatting 925 translate 925 date_trunc 925 version 926 Postgres Math 926 Postgres Trigonometry 926 Vertica 928 Vertica String 928 ascii 930 chr 930 current_database 930 current_schema 930 {current_user} 930 {session_user} 930 Vertica Data type formatting 930 translate 931 date_trunc 931
User Guide 45
Table of Contents version 931 Vertica Math 931 Vertica Trigonometry 932 Paraccel 934 Paraccel String 934 current_database 934 current_schema 934 {current_user} 935 {session_user} 935 Paraccel Data type formatting 935 translate 935 version 935 Paraccel Math 936 MySQL 936 MySQL String 936 ascii 937 database 938 schema 938 session_user 938 system_user 938 version 938 MySQL Math 938 MySQL Trigonometry 939 Greenplum 940 Greenplum String 940 ascii 942 chr 942 current_database 942 current_schema 943 {current_user} 943 {session_user} 943 Greenplum Data type formatting 943 translate 944 date_trunc 944 version 944 Greenplum Math 944 Greenplum Trigonometry 945 Report Functions 946 _add_days 946 _add_months 946 _add_years 947 _age 947 _day_of_week 947 _day_of_year 947 _days_between 947 _days_to_end_of_month 948 _first_of_month 948 _last_of_month 948 _make_timestamp 948
Table of Contents _months_between 948 _week_of_year 949 _years_between 949 _ymdint_between 949 abs 949 AsOfDate 949 AsOfTime 950 BurstKey 950 BurstRecipients 950 ceiling 950 CellValue 950 character_length 950 ColumnNumber 950 CubeCreatedOn 951 CubeCurrentPeriod 951 CubeDataUpdatedOn 951 CubeDefaultMeasure 951 CubeDescription 951 CubeIsOptimized 951 CubeName 952 CubeSchemaUpdatedOn 952 exp 952 extract 952 floor 952 GetLocale 953 HorizontalPageCount 953 HorizontalPageNumber 953 InScope 953 IsAccessible 953 IsBursting 953 IsCrosstabColumnNodeMember 953 IsCrosstabRowNodeMember 954 IsFirstColumn 954 IsInnerMostCrosstabColumnNodeMember 954 IsInnerMostCrosstabRowNodeMember 954 IsLastColumn 954 IsLastInnerMostCrosstabColumnNodeMember 954 IsLastInnerMostCrosstabRowNodeMember 954 IsOuterMostCrosstabColumnNodeMember 955 IsOuterMostCrosstabRowNodeMember 955 IsPageCountAvailable 955 ln 955 Locale 955 lower 955 mapNumberToLetter 955 mod 956 ModelPath 956 Now 956 nullif 956
User Guide 47
Table of Contents octet_length 956 PageCount 956 PageName 957 PageNumber 957 ParamCount 957 ParamDisplayValue 957 ParamName 957 ParamNames 957 ParamValue 957 position 958 power 958 ReportAuthorLocale 958 ReportCreateDate 958 ReportDate 958 ReportDescription 958 ReportID 959 ReportLocale 959 ReportName 959 ReportOption 959 ReportOutput 959 ReportPath 959 ReportProductLocale 960 ReportSaveDate 960 round 960 RowNumber 960 ServerLocale 960 ServerName 960 sqrt 961 substring 961 TOCHeadingCount 961 Today 961 trim 961 upper 961 URLEncode 962 Data Type Casting Functions 962 Appendix B: Troubleshooting
967
Problems Creating Reports 967 Division by Zero Operation Appears Differently in Lists and Crosstabs 967 Application Error Appears When Upgrading a Report 967 Nested List Report Containing a Data Item That is Grouped More Than Once Does Not Run After Upgrade 967 Background Color in Template Does not Appear 968 Subtotals in Grouped Lists 968 Chart Labels Overwrite One Another 968 Chart Shows Only Every Second Label 968 Chart Gradient Backgrounds Appear Gray in Internet Explorer 969 Metadata Change in Oracle Essbase Not Reflected in Reports and in the Studios 969 Relationships Not Maintained in a Report With Overlapping Set Levels 969
Table of Contents Summaries in Query Calculations Include Nulls with SAP BW Data Sources 970 Creating Sections on Reports That Access SAP BW Data Sources 970 Error Characters (--) Appear in Reports 970 Columns, Rows, or Data Disappear With SSAS 2005 Cubes 971 Function Unreliable with Sets 972 Report Differences Between TM1 Executive Viewer and IBM Cognos BI with TM1 Data Sources 972 Order of Metadata Tree Differs for TM1 Data Sources 972 Problems Calculating Data 972 Unexpected Summary Values in Nested Sets 972 Null Results for Calculations Using SAP BW Data Sources 973 Incorrect Results with IBM Cognos PowerCubes and Time Measures 973 Incorrect Results in Summaries When Using OLAP Data Sources 974 Problems Filtering Data 975 Unexplained Discrepancies in Number Calculations 975 HRESULT= DB_E_CANTCONVERTVALUE Error When Filtering on a _make_timestamp Column 977 Problems Running Reports 977 Report Runs Slowly 977 Summaries in Report Do not Correspond to the Visible Members 980 Cannot Find the Database in the Content Store (Error QE-DEF-0288) 981 Parse Errors When Opening or Running an Upgraded Report 982 Overflow Error Occurs When a Value in a Crosstab Is More Than 19 Characters 982 The ORA-00907 Error Appears When Running a Report 982 A Report or Analysis Does Not Run Because of Missing Items 982 Cannot View Burst Report 982 A Report Upgraded from ReportNet Does Not Retain its Original Look 983 Measure Format Disappears in SSAS 2005 984 Drill-through Links are Not Active in the Safari Browser 984 Data Does Not Appear in a Target Report or the Wrong Data Appears 984 A Running Total in Grouped Reports Gives Unexpected Results 985 PCA-ERR-0057 Recursive Evaluation Error 985 Arithmetic Overflow Error When Running a Report in PDF Format 985 RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-69' UDA-SQL-0043 Error 986 Problems When Drilling Through 986 Cannot Drill Through Between PowerCubes Because MUNs Do Not Match 986 Unexpected or Empty Results When Drilling Through 987 Cannot Drill Through From a Relational Source to a Cube 988 Appendix C: Accessibility Features
989
Keyboard Shortcuts 989 Considerations to Improve Report Accessibility 989 Enable Accessible Report Outputs 990 Add Alternate Text to Images and Charts 991 Add Summary Text to Tables 991 Designate Cells Headers in Tables 992 Example - Conditionally Show a List Below a Chart for an Accessible Report 992 IBM and accessibility 994
User Guide 49
995
1001
Introduction
This document is intended for use with IBM Cognos Report Studio. It provides step-by-step procedures and background information to help you create standard and complex reports. Report Studio is a Web product for creating reports that analyze corporate data according to specific information needs.
Audience
To use this guide, you should have knowledge of your business requirements experience using a Web browser, developing Web applications, and writing reports knowledge of databases and data modeling concepts
Finding information
To find IBM Cognos product documentation on the web, including all translated documentation, access one of the IBM Cognos Information Centers at http://publib.boulder.ibm.com/infocenter/ cogic/v1r0m0/index.jsp. Updates to Release Notes are published directly to Information Centers. You can also read PDF versions of the product release notes and installation guides directly from IBM Cognos product disks.
Accessibility features
Accessibility features help users who have a physical disability, such as restricted mobility or limited vision, to use information technology products. This product has accessibility features. For information on these features, see the accessibility section in this document.
Forward-looking statements
This documentation describes the current functionality of the product. References to items that are not currently available may be included. No implication of any future availability should be inferred. Any such references are not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of features or functionality remain at the sole discretion of IBM.
51
Introduction
Samples disclaimer
The Great Outdoors Company, GO Sales, any variation of the Great Outdoors name, and Planning Sample depict fictitious business operations with sample data used to develop sample applications for IBM and IBM customers. These fictitious records include sample data for sales transactions, product distribution, finance, and human resources. Any resemblance to actual names, addresses, contact numbers, or transaction values is coincidental. Other sample files may contain fictional data manually or machine generated, factual data compiled from academic or public sources, or data used with permission of the copyright holder, for use as sample data to develop sample applications. Product names referenced may be the trademarks of their respective owners. Unauthorized duplication is prohibited.
To review an up-to-date list of environments supported by IBM Cognos products, such as operating systems, patches, browsers, Web servers, directory servers, database servers, and application servers, visit www.ibm.com.
Active Reports
You can now use IBM Cognos Report Studio to create active reports. IBM Cognos Active Report is a report output type that provides a highly interactive and easy-to-use managed report. Active reports are built for business users, allowing them to explore their data and derive additional insight. Active reports make business intelligence easier for the casual user. Report authors build reports targeted at their users' needs, keeping the user experience simple and engaging. Active reports can Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010. 53
Chapter 1: What's New? be consumed by users who are offline, making them an ideal solution for remote users such as the sales force. For more information, see "Active Reports" (p. 215).
Statistical Analysis
IBM Cognos Report Studio now offers statistical functionality in an add-on package called IBM Cognos Statistics. Report Studio integrates statistical analysis and reporting, providing you with the capability to distribute reports that now can include statistical information. Unlike specialized statistical tools, this functionality is easy to use within the IBM Cognos Business Intelligence authoring environment. This functionality covers three main areas in statistical analysis: the distribution of data data analysis and testing statistical process control
Chart Enhancements
Report Studio includes many enhancements to charts.
Bullet Charts
You can now create bullet charts to complement your dashboard reports and as an alternative to gauge charts. A bullet chart features a single primary measure, such as current revenue, compares that measure to one or more other measures to enrich its meaning, such as the target or planned
Chapter 1: What's New? revenue, and displays it in the context of a qualitative range of performance, such as poor, satisfactory, or good. For more information, see "Bullet Charts" (p. 137).
Chart Matrix
You can now convert a complex nested chart into a matrix configuration that shows multiple small charts arranged in rows and columns. The numeric scale of all the charts is the same so that you can easily compare and analyze values from each chart. For more information, see "Create a Matrix of Current Default Charts" (p. 184).
Colored Regions
You can now define colored regions in the body of a chart to make your chart more informative. For example, you can divide the background of a scatter chart into quadrants and color each quadrant. For more information, see "Add Colored Regions in a Current Default Chart" (p. 159).
User Guide 55
Chapter 1: What's New? You can customize the color, style, and weight of chart gridlines or set the background of your chart to display bands of color. For more information, see "Show Gridlines in a Current Default Chart" (p. 165). You can change the bar shape in a bar or column chart to one of the following two dimensional and three dimensional shapes: box, cylinder, cone, pyramid, rectangle, and triangle. You can also change the width of the bars or columns in a bar or column chart to a percentage of the chart body, such as 80% or 25%.
Chart Axes
To make your charts easier to read, you can now customize the color, style, weight, and transparency of chart axis lines and specify where to display major and minor gridlines on the chart. For more information, see "Customize the Axes of a Current Default Chart" (p. 162).
Bubble Size
In a bubble chart, you can now set the maximum and minimum bubble size and specify the smallest bubble to show in the chart. For more information, see "Specify the Bubble Size in a Current Default Bubble Chart" (p. 190).
Chapter 1: What's New? When working with dimensional data sources, the insert individual members button and
the insert member with children button have moved to the Insertable Objects pane. These buttons have the same function as they did in the previous release. For more information, see "Insert a Member" (p. 349). When working with dimensional and mixed model data sources, you can now switch between viewing the full data tree and the dimensional-only data tree by clicking the view package tree button and the view members tree button Data to a Report" (p. 347). . For more information, see "Add Dimensional
These same buttons are available in the expression editor. You can now remove all of the filters at once from your report with new options in the filters button . For more information, see "Focusing Dimensional Data" (p. 371) and "Focusing Relational Data" (p. 324). Expanded tooltips for toolbar buttons now include a description of what the button does. To see a tooltip, pause the pointer over a button in the toolbar. You can turn off the expanded tooltips (Tools, Options). A new Show Container Selectors visual aid allows you to select list, crosstab, repeater table, table of contents, active report application objects, and table container objects with one click. When enabled, a small clickable region (three orange dots) appears in the top left corner of these report objects. This selector provides easier access to the container objects properties and allows you to easily move containers with one mouse gesture. For more information, see "Visual Aids Button" (p. 78).
User Guide 57
Time-dependent Hierarchies
Time-dependant hierarchies now automatically reflect hierarchy or structure changes. When a structure is imported into IBM Cognos Framework Manager, each SAP BW time hierarchy is depicted as an individual level. Report Studio users can use these structures to report on and compare levels that are valid for a specific time period.
Simplified Calculations
To add a calculation, you now choose to add either a Query Calculation or Layout Calculation object from the toolbox tab.
Chapter 1: What's New? For more information, see "Using Relational Calculations" (p. 342) and "Using Dimensional Calculations" (p. 396).
List Enhancements
You can now specify whether to automatically include an overall aggregate summary in the list footer. For more information, see "Lists" (p. 111). You can also specify whether grouping a column automatically makes it the first column in the list. For more information, see "Group Relational Data" (p. 308). You enable these behaviors in the Report Studio options (p. 84), by selecting the Group and automatic summary behavior for lists check box. A new Render property allows you to hide columns from the output of list reports. For more information, see "Hide Columns in List Reports" (p. 112).
In addition, the documentation now includes alternate text for all graphics so that screen readers can interpret graphics. User Guide 59
User Guide 61
Line charts now include an option for creating step line charts. A new Line Type property for the Line object in the chart allows you to use vertical and horizontal lines to connect the data points, forming a step-like progression. Line charts can now also include opening, closing, minimum, and maximum value markers (p. 182). In bubble charts, a new Bubble Size property allows you to control the size of bubbles in relation to the actual values of the Z-axis.
User Guide 63
Support for Multiple Hierarchies per Dimension for IBM Cognos and SSAS Cubes
If you use IBM Cognos PowerCubes or Microsoft SQL Server Analysis Services (SSAS) 2005 cubes, you can now insert multiple hierarchies from a single dimension in the same query in your report. In previous releases, if a query contained multiple hierarchies from the same dimension, you encountered errors or no data appeared in your report. For more information, see "Insert a Hierarchy" (p. 351).
For more information about queries in the relational reporting style, see "Working with Relational Queries" (p. 329). For more information about queries in the dimensional reporting style, see "Working with Dimensional Queries" (p. 377).
Editing SQL
If you edit the SQL of a query, you must now set the Processing property of the query to Limited Local. For more information see "Working with Queries in SQL or MDX" (p. 389).
Chapter 1: What's New? To review an up-to-date list of environments supported by IBM Cognos products, such as operating systems, patches, browsers, Web servers, directory servers, database servers, and application servers, visit www.ibm.com. For information about upgrading, see the Installation and Configuration Guide for your product. For an overview of new features for this release, see the New Features Guide.
User Guide 65
No Data Handling
When a query returns no data, you can now choose to provide a message or to remove the data item from the report. The new No Data Contents property was added to many data containers such as lists, crosstabs, and charts. For more information, see "Specify What Appears for Data Containers that Contain No Data" (p. 502). You can also choose not to render the entire report page if all the data containers on the page do not contain any data. For more information, see "Specify What Appears for Data Containers that Contain No Data" (p. 502).
The following functions are used to determine where the current cell is within a data frame, such as a list or crosstab:
GetColumnNumber IsFirstColumn IsLastColumn GetColumnNumber GetRowNumber IsColumnNodeMember IsRowNodeMember IsInnerMostColumnNodeMember IsOuterMostColumnNodeMember IsInnerMostRowNodeMember IsOuterMostRowNodeMember IsLastInnerMostColumnNodeMember IsLastInnerMostRowNodeMember IsFirstColumn IsLastColumn IsFirstRow IsLastRow GetTableRowNumber GetTableColumnNumber InScope
User Guide 67
Chapter 1: What's New? Several options for horizontal page numbering are provided. For more information, see "Control Page Breaks and Page Numbering" (p. 547) and "Insert Page Numbers in a Report" (p. 547).
Cell Values
(blank) -/0
Security (for example, insufficient access #!Security rights) N/A Error Casting error ----
Chapter 1: What's New? IBM Cognos 8 Planning - Contributor Oracle Essbase SAP BW
The changes may affect the number of decimal places, the number of group separators, or the rounding precision used in your reports. The following table lists some examples of the changes.
Division
Rounding
You can override these default formats using IBM Cognos Report Studio or IBM Cognos Query Studio. For more information, see www.ibm.com.
Chapter 1: What's New? To obtain correct results, in Report Studio, set the Suppress property for the query to None. This option may cause more empty rows to appear in the report. You can also remove the summaries from your report. The report will no longer include a footer with two dashes or empty cells as the summary.
For more information, see Upgrading to Cognos 8 BI 8.3 - Changes in Product Behavior on www.ibm.com.
User Guide 71
Chapter 1: What's New? For more information, see Upgrading to Cognos 8 BI 8.3 - Changes in Product Behavior on www.ibm.com.
Your reports can contain any number of report objects, such as charts, crosstabs, and lists, as well as non-BI components such as images, logos, and live embedded applications that you can link to other information.
Locate and prepare data sources and models IBM Cognos BI can report from a wide variety of data sources, both relational and dimensional. Database connections are created in the Web administration interface, and are used for modeling, for authoring, and for running the application.
73
Chapter 2: Understanding Report Studio To use data for authoring and viewing, the business intelligence studios need a subset of a model of the metadata (called a package). The metadata may need extensive modeling in Framework Manager. Build and publish the content Reports, scorecards, analysis, dashboards and more are created in the business intelligence studios of IBM Cognos BI. Which studio you use depends on the content, lifespan, and audience of the report, and whether the data is modeled dimensionally or relationally. For example, selfservice reporting and analysis are done through IBM Cognos Business Insight Advanced, IBM Cognos Query Studio, and IBM Cognos Analysis Studio, and scheduled reports are created in IBM Cognos Report Studio. Report Studio reports and scorecards are usually prepared for a wider audience, published to IBM Cognos Connection or another portal, and scheduled there for bursting, distribution, and so on. You can also use Report Studio to prepare templates for self-service reporting. Deliver and view the information You deliver content from the IBM Cognos portal or other supported portals, and view information that has been saved to portals, or delivered by other mechanisms. You can also run reports, analyses, scorecards, and more from within the business intelligence studio in which they were created. For information about tuning and performance, see the IBM Cognos Administration and Security Guide and www.ibm.com.
Item
Report type
Relational reporting
Lists (p. 111) Crosstabs (p. 117) Charts (p. 127) Maps (p. 203)
Dimensional reporting
Crosstabs (p. 117) Charts (p. 127) Maps (p. 203)
Data tree
package (p. 91) folder (p. 92) namespace (p. 91) query subject (p. 91) query item (p. 91) measure (p. 92) level (p. 92)
A customizable source tree (p. 349), including the following: package (p. 91) folder (p. 92) namespace (p. 91) fact (p. 92) measure (p. 92) dimension (p. 91) hierarchy (p. 91) level (p. 92) level attribute (p. 91) member (p. 91)
Data items
Data items using dimensional and common constructs (p. 798) Extended data items (p. 356)
Inserting data
Report Studio groups data automati- Report Studio groups data automatically by query item. For example, when cally by level. For example, when you you add the Product type query item to add the Product type level to a crosstab, a list, all product types appear when all product types appear when you run the report. you run the report. You can also create sets of members from different levels within the same hierarchy (p. 352). For example, you can create a set of members that includes only Cooking Gear and Lanterns and than add that data to a crosstab. You can also choose to insert just the member, just the children of the member, or the member and its children (p. 349).
User Guide 75
Item
Summarizing data Focusing data
Relational reporting
Member summaries: Aggregate
within detail (p. 361)
Dimensional reporting
Member summaries: Aggregate
within set (p. 361)
Add a query item and then add a detail Add only the relevant members to an or summary filter to view only the data edge of the crosstab (p. 349) or to the you want to see (p. 324). context filter (p. 371). For example, add the Quarter query item to a list and filter by Q3. For example, only add the Q3 member to your report. Drilling through by member (p. 517) Drilling up and down (p. 414)
Drilling
Simple page breaks (p. 538) Page sets (p. 538) Page layers (p. 549)
Simple page breaks (p. 538) Page sets (p. 538) Sections (p. 313)
Master detail relationships using Master detail relationships using parameterized edge or slicer expressions parameterized filters (p. 337) (p. 386) Alternative Stu- IBM Cognos Query Studio dios IBM Cognos Analysis Studio
Properties pane
Description of properties
Work area
We recommend that you use a screen resolution of at least 1024 by 768 pixels.
Properties Pane
The Properties pane lists the properties that you can set for an object in a report. You can obtain additional information about a property by selecting it and pressing F1. For example, you can view the list of objects that use each property. When you specify a value for a property, press Enter, click another property, or save the report to ensure that the value is saved. Tip: To view a description of the currently selected property at the bottom of the pane, from the View menu, click Property Descriptions.
Explorer Bar
Pause the pointer over the following buttons on the Explorer bar to work with different parts of a report: the page explorer button
User Guide 77
Chapter 2: Understanding Report Studio You use Page Explorer to view or create new report pages and prompt pages (p. 421) or to create and modify classes (p. 460). the query explorer button You use Query Explorer to create or modify queries in relational reporting (p. 329) or dimensional reporting (p. 377) and to perform complex tasks, such as defining union joins and writing SQL statements. the condition explorer button You use Condition Explorer to work with variables to define conditions (p. 475) in a report.
Option
Show Boundary Lines Force Boundary Lines
Description
Shows all boundary lines around objects. Overrides all boundary line settings by replacing them with default (dotted line) lines. For example, if you set the Border property for an object, the border lines are replaced with dotted lines.
Show Repeating
Repeats objects when you insert them. For example, when you insert a data item in a crosstab, the data item appears in each row or in each column of the crosstab. Shows the page header and page footer.
Option
Show Drag & Drop Padding
Description
Shows drag-and-drop zone when the Padding property for an object is set to 0. If the Padding property is set to a value that is greater than the minimum padding that Report Studio uses to show drag-and-drop zones, only the minimum padding is shown.
Shows objects for which the Box Type property was set to None or for which the Visible property was set to No.
Show Sorting
Shows the sorting icon for data items for which a sort order was specified. For more information about sorting data, see "Sorting Relational Data" (p. 328) or "Sorting Dimensional Data" (p. 375). Shows the grouping icon for grouped data items (p. 308). Shows the icon for the source type of objects, such as layout calculation. Shows the icon for the type of data item, such as query item, member, or measure. Shows data items for which the drill-through definition (p. 525) was defined as a hyperlink. Shows table of contents entries (p. 544) inserted in the report. Shows bookmarks (p. 542) inserted in the report. Shows master detail relationships (p. 386) defined in the report. Tip: Pausing the pointer over the master detail relationship icon shows the relationship.
Show No Data Contents Tab Control Shows tabs if the data container's No Data Contents property is set to Yes (p. 502). Show Repeater and Singleton Contain- Shows repeater and singleton containers inserted in the report. ers Show Helper Controls Shows controls in the top right corner of active report application objects.
User Guide 79
Option
Show Container Selectors
Description
Shows a small clickable region (three orange dots) in the top left corner of the following container objects and allows you to select them: list crosstab repeater table table of contents table active report application objects
Layout
A layout is a set of pages that defines the appearance and formatting of a report. When you design the layout of a report, you present the data in a meaningful way by using lists, crosstabs, charts, and maps add formatting, such as borders, color, images, and page numbers
Chapter 2: Understanding Report Studio specify how the data flows from one page to the next
Pages
Pages are containers for the layout objects that you use to build a report. A page is made up of the following mandatory and optional components: page header (optional) page body (mandatory) page footer (optional)
When you run a report, the amount of data queried often exceeds one page. As a result, a page will repeat until all the data is shown. You have control over how data flows from one page to the next. For example, here are alternative representations of a report that contains a chart and a lengthy list.
1. 2.
The chart appears on its own page. The list begins on the next page and fills subsequent pages until all rows appear. The chart and the first few rows of the list appear on the first page. The rest of the data in the list appears on the subsequent pages.
Objects
You add layout objects to a page when you create a report. Below are objects that you will use often when building reports in IBM Cognos Report Studio: list Add a list to show data in rows and columns. crosstab Add a crosstab to show data in a grid with dimensions along the rows and columns and measures in the cells or intersection points. chart map repeater Add a repeater to show each instance of a certain column or data item in a separate frame. text User Guide 81
Chapter 2: Understanding Report Studio block Add a block to hold text or other information. Blocks are often used to lay out horizontal bands of information. table
For information about other layout objects you can add to a report, see "Insert a Formatting Object in a Report" (p. 445).
Queries
Queries determine what data items appear in the report. Sometimes you want detailed rows of data, which you obtain by using a simple SELECT statement. Other times you must calculate totals or averages using summary functions and grouped columns or must apply filters to show only the data you want. Report Studio automatically creates the queries you need as you build reports. However, you can modify these queries or create your own custom queries to get the results you want. For more information about working with queries in the relational reporting style, see "Working with Relational Queries" (p. 329). For more information about working with queries in the dimensional reporting style, see "Working with Dimensional Queries" (p. 377).
Report Objects
You build reports by adding objects and manipulating them to obtain the results you want. To understand how to work with objects in IBM Cognos Report Studio, you must be familiar with the following concepts: object types objects as containers locking and unlocking objects hierarchy of objects
For information about Report Studio objects, see "Report Studio Object and Property Reference" (p. 605).
Object Types
In Report Studio, layout objects are either inline or block. You can insert other objects on the same line as an inline object, but not on the same line as a block object. When you insert an object to the left or to the right of a block object, the object appears on the line above or below the block object, respectively. Examples of inline objects include graphics and text items. Examples of block objects include any report type (list, crosstab, chart, map, or repeater) and tables. Note: You can also use an object's floating (p. 458) property to define how other objects flow around the object. For example, you can specify how text flows around an image.
Objects as Containers
Objects, such as tables (p. 449), blocks (p. 445), and any report frame (p. 445), are containers in which you can insert other objects. For example, you can insert a list in one cell of a table and a chart in another. Tip: You can also nest objects to create a sophisticated layout. For example, you can insert a table in a cell of another table.
Hierarchy of Objects
In Report Studio, objects are organized hierarchically. For example, a list contains list columns, and each list column contains a text item, which is the name of the inserted data item. The hierarchy of objects is useful to remember when you apply formatting because formatting is applied to the child objects of the object. For example, you can specify that all list column titles in a list have red as the background color. The formatting is automatically applied to any new columns you add to the list because the formatting is applied to the list and is therefore applied to the objects in the list. If you apply formatting to a specific object, it will override the same formatting specified for the parent object.
Steps
1. From the Edit menu, click Find. 2. Click Find what and choose the type of object to find. 3. In the Options box, specify the search criteria. For example, if you want to find the objects that reference a specific data item, you must specify the query that contains the data item and the data item name. 4. Click Find Next. The first object that meets the search criteria is selected in the report. Continue clicking Find Next to show all other objects that meet the search criteria. Note: In some cases, such as searching for a data item that is used to define a conditional style, Report Studio cannot directly select the object in the report. Instead, Report Studio selects the object that uses the object for which you are searching.
User Guide 83
Options
You can set various options that control the appearance and behaviors of IBM Cognos Report Studio (Tools, Options).
Description
Replaces the current appearance of the interface with the display scheme specified by the Windows settings. Shows the Welcome dialog box at startup. Reuses the same IBM Cognos Viewer window when you rerun a report without first closing the window. Maximizes the IBM Cognos Viewer window when you run a report. Animates the appearance of dialog boxes, menus, and panes. Specifies the size of the Report Studio window at startup.
Position pane on the right (requires Moves the Insertable Objects pane and Properties pane to the right of the work area. This check box is cleared by restart) default. For the change to take effect, you must close and then restart Report Studio. Show rich tooltips (requires restart) Specifies whether to show descriptive tooltips when you hover over a button in the toolbar. This check box is selected by default. For the change to take effect, you must close and then restart Report Studio. Display report preview Shows a preview of the report when you open or save a report, within the Open, Save, and Save As dialog boxes.
Description
Automatically wraps text in all editors where you can define expressions.
Option
Automatically populate values list
Description
When building expressions in the expression editor, automatically shows values when you browse the data of a data item (p. 401).
Automatically validate expressions Automatically validates calculations, such as filters, created in the expression editor. For more information, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396). In-place edit Use chart flyouts in Design View Enables the editing of text in place when double-clicking. When in Page Design view (p. 80), shows the chart drop zones as flyouts that appear only when you hover your mouse over the chart. When cleared, the chart drop zones are always displayed. By default, this option is not enabled. Drop replace on crosstab and chart Specifies what the existing members are replaced with when you drag a new member onto a report. nodes Double click on member action When working with dimensional data, specifies what happens when you double-click a member data item. By default, you drill down or up on the item that you doubleclick. Layout dimensions Specifies the width and height of the area where you will create reports.
Description
When working with a dimensional data source, creates an alias when you add a member to the report or to an expression (p. 412). Automatically deletes query objects linked to another object. For example, if you delete a list, the query linked to the list is deleted as well. Automatically deletes conditional styles (p. 475) or palettes (p. 154) when the last data item that refers to the conditional style or palette is also deleted. User Guide 85
Option
Description
Always create extended data items When working with dimensional data sources, determines whether Report Studio creates extended data items or for new reports expression-based data items for new reports. Expression-based data items allow you to view or edit the expression by double-clicking the Expression property for the item. If you are working with a dimensional data source and this option is not selected, the appropriate dimensional data item is added when you insert items such as members, levels, or calculated members. For example, if you insert a level, a level set is created. This makes it easier to work with dimensional data items because Report Studio knows the data item type of the items that are in the report. Automatic group and summary behavior for lists When working with lists, automatically adds an overall aggregate summary in the list footer and a summary for any groups in the list (p. 111). When grouping a column, automatically makes it the first column in the list (p. 308). When working with a dimensional data source, limits the number of child members that are inserted. For example, you specify 3 for this option and, in the toolbar, you specify the option to insert children when you drag a member to a data container (p. 349). You then drag the Camping Equipment member to the rows of a crosstab. What you see as rows are the child members Cooking Gear, Tents, and Sleeping Bags and a row named Others (Camping Equipment) for the remaining child members of Camping Equipment. When working with a dimensional data source, specifies the aggregation type to use when aggregating values in crosstabs and charts. Within detail aggregates the visible details. Within aggregate aggregates the visible aggregates at the next lower level of detail. Within set aggregates the member sets. For more information about aggregating values in crosstabs and charts, see "Summarizing Values in Crosstabs" (p. 361).
Aggregation mode
Description
Uses the Microsoft Windows (or other operating system) clipboard instead of the internal Report Studio clipboard.
Enables the opening and saving of reports on your computer (p. 553). Enables you to create new reports using the legacy charts instead of the default charts and disables the automatic upgrade of charts in existing reports to the current default charts. Select this check box if you do not want to upgrade the charts in your existing reports.
Disable chart preview in design view When in Page Design view (p. 80), displays a static image for a chart instead of updating the chart with a preview of your chart, using simulated data. Override 10.x styles with 8.x styles Specifies whether to use the Version 8.x report styles by default when creating new reports. on new reports For more information about report styles, see "Create and Modify Report and Object Styles" (p. 460). Map feature display limit When working with maps, specifies the maximum number of features that can appear in a map. When working with dimensional data, specifies the maximum number of members that can appear in the Insertable Objects pane when performing a search (p. 350).
User Guide 87
Chapter 2: Understanding Report Studio Run ActiveX controls and plug-ins Script ActiveX controls marked safe for scripting Binary and Script Behaviors Allow programmatic clipboard access Enable pop-ups for the IBM Cognos BI server
For Firefox, the following settings are required: Enable JavaScript Accept Cookies Allow Scripts to disable or replace context menus Enable pop-ups for the IBM Cognos BI server
Report Studio uses the native Microsoft Internet Explorer XML support, which is a component of the browser. ActiveX support must be enabled because Microsoft implements XML using ActiveX. IBM Cognos BI does not provide or download ActiveX controls. Only the ActiveX controls that are installed as part of Internet Explorer are enabled through this configuration. For more information about the Web browser configuration and cookies used by IBM Cognos BI, see the IBM Cognos Business Intelligence Installation and Configuration Guide.
Tips
When you are viewing the report specification, you cannot modify or copy parts of it. You can also modify the XML code in a report specification by saving the report specification on your computer (p. 553).
You can then lay out the report (p. 437) and manipulate the data that will appear in the report. For information about other tasks that are specific to a report type, see "Lists" (p. 111), "Crosstabs" (p. 117), "Charts" (p. 127), and "Maps" (p. 203).
Steps
1. Open IBM Cognos Report Studio with the package you want to use. 2. In the Welcome dialog box, choose whether to open a new or existing report or template: To create a new report or template, click Create a new report or template and choose a basic report layout. Tip: You can specify a language other than the default language for your package by clicking on the ellipsis (...) button to the right of the Package field, clicking the Language Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
89
Chapter 3: Creating a Report ellipsis button in the Report Package dialog box, highlighting the desired language, and then clicking OK. As stated on the language selection dialog box, items such as separators and decimals may need to be manually updated for language-specific syntax rules as a result of your selection. To open an existing report or template, click Open an existing report or template and select a report.
Objects from the selected package, such as query items, appear on the Source tab of the Insertable Objects pane. Tip: You can later change packages (p. 560).
Steps
1. In the Insertable Objects pane, click the Source tab 2. Click the refresh button . .
Tip: You can also close and reopen the report to upgrade it to the latest version of the package.
Steps
1. From the File menu, click New .
2. If you want to change the package, click the ellipsis (...) button and click a different package. 3. Choose a basic report layout: To create a report from a blank layout, double-click Blank. To create a report using one of Report Studio's predefined report layouts, double-click the layout. To create a new report template that can be applied to reports created in IBM Cognos Query Studio or IBM Cognos Analysis Studio, double-click Report Template.
Chapter 3: Creating a Report To create a financial report using the basic financial report layout, double-click Financial Report. For more information about creating report templates, see "Creating Report Templates" (p. 551) To create a new report using another report, double-click Existing, locate the report, and click Open. Tip: In the Type box, click Templates to see only existing templates. The basic report layout appears in the report page.
Add Data
Select the data items you want to appear in your report. For more information about adding data to a relational style report, see "Add Relational Data to a Report" (p. 307). For more information about adding data to a dimensional style report, see "Add Dimensional Data to a Report" (p. 347).
Icon
Object
Package, which contains the objects you can insert in a report. Namespace, used to organize objects. Query subject, which represents a table in the database. In relational data sources, query item, which represents a column of qualitative data in the database, such as product name or country. In dimensional data sources, level attribute, which represents a property of a level. A member is a unique item within a hierarchy. For example, Camping Equipment and 4 Man tent are members of the Products Hierarchy. Dimension, which represents a broad grouping of descriptive data about a major aspect of a business, such as products, dates, or markets. Hierarchy, which represents a collection of dimensional members organized into a tree structure.
User Guide 91
Icon
Object
Level, which is a set of members that have common attributes. For example, a geographical dimension might contain levels for country, region, and city. Multiple levels can exist within a level hierarchy, beginning with the root level. The root level is the parent and rollup of all members in the first level. It is used to obtain a rollup of all values across the hierarchy and to provide a convenient point to start drilling. For example, a Years level hierarchy may contain the following levels: Root level Years First level Year Second level Quarter Third level Month
Measure or fact, a query item that represents a column of quantitative data in the database, such as revenue or quantity. Measures folder, which contains hierarchical measures. Model filter. Model calculation. Folder, used to organize data items. You cannot import a folder into your report.
Step
In the Insertable Objects pane, on the Source tab , drag data items to the report object.
A flashing black bar indicates where you can drop a data item. Data items in the report appear on the Data Items tab .
Chapter 3: Creating a Report items from the same query. This is useful when using a single query is more efficient to display a set of single values than using multiple queries. You can also filter the data item in the singleton. For example, you can show the total revenue for only the year 2007. Queries that are associated to a singleton object are not supported when producing report output in delimited text (CSV) format. Tip: The Returns by Damage, Failed Orders and Complaints in 2006 sample report (p. 584) in the GO Data Warehouse (analysis) package includes a singleton. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. In the Insertable Objects pane, on the Toolbox tab An empty data container is created. 2. From the Insertable Objects pane, on the Source tab container. , drag a data item into the Singleton , drag Singleton to the report.
Tip: To create a singleton, you can also drag a data item anywhere in your report layout. 3. To change the query associated to the singleton object, in the Properties pane, double-click the Query property and make changes. When the report is run, the first row value for the data item is retrieved.
Validate a Report
Validate your report to ensure that it contains no errors. When you open a report created in a previous version of IBM Cognos BI, it is automatically upgraded and validated. For more information, see "Upgrading Reports" (p. 563).
Steps
1. From the Tools menu, click Validate Report .
A message box appears indicating whether any errors were found in the report. 2. If you require more detail from the validation process, from the Tools menu, click Validate Options and do the following: Click one of the following validation levels.
Validation level
Error Warning
Description
Retrieves all errors returned from the query. Retrieves all errors and warnings returned from the query. This is the default validation level.
User Guide 93
Validation level
Key Transformation
Description
In addition to errors and warnings, retrieves informational messages describing important transformation steps from the report specification to the native query sent to the data source. These messages can show the cause of errors and warnings returned from the query. This feature is only partially implemented at present.
Information
Retrieves errors, warnings, key transformations, and other information related to query planning and execution.
Select the Interactive data check box to specify that no query optimization is to be used. The Interactive data check box controls how queries will be processed during validation. Clear the Interactive data check box to set the Execution Optimization property to All Rows. Tip: For more information about the Execution Optimization property, see Execution Optimization in "Report Studio Object and Property Reference" (p. 605). A message box appears indicating whether any errors were found in the report.
3. If you encounter validation errors and want Report Studio to identify incorrect objects in your report, from the Tools menu, click Auto Correct. Report Studio provides a list of such objects that you can remove individually to successfully run your report. In some cases, the information or error message is linked to the location of the issue in your report. To go to the location of the issue, click the message, and then click Select. If only warnings and information appear in the dialog box, these will disappear when you click OK.
Save a Report
Save your report to preserve the modifications you made. Reports are saved to the IBM Cognos BI server. You can also save your report on your computer (p. 553).
Steps
1. From the File menu, click Save name. or click Save As to save a copy of the report under a different
2. If you are saving the report for the first time, specify where to save the report and type a file name.
Chapter 3: Creating a Report For information about setting up folders in IBM Cognos Connection for your reports, see the IBM Cognos Connection User Guide. 3. Click Save.
Run a Report
Run your report to see the data that is retrieved. Save time by validating it first (p. 93) to check for errors. You can also run a report or a group of reports in IBM Cognos Connection. Furthermore, you can save report outputs to a file system. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide. You can specify not to render a report page if it does not contain any data (p. 98). When you run a report in an export format such as PDF, delimited text (CSV), Microsoft Excel spreadsheet software (XLS), the IBM Cognos report name is used as the exported file name. If you run a report that uses functions or features not supported by the data source, an error message appears. We recommend that you periodically test your reports while you author them in Report Studio to ensure that you do not encounter multiple error messages when you run the report.
Steps
1. Open a report. 2. If you want to clear parameter values stored on the IBM Cognos BI server, from the File menu, click Clear Parameter Values. Parameter values stored by the IBM Cognos BI server include signon, validation, and prompt information. For example, if you define two data source connections in IBM Cognos Connection that point to the same data source, you are prompted to choose one when you run a report. This information is stored so that you are not prompted each time you run the report. 3. If you want to view only the tabular data, from the Run menu, click View Tabular Data .
If the report contains multiple queries, you must first click an object, such as a list or crosstab, that uses the query for which you want to view the tabular data. Use this command to ensure that the right results appear. For example, you create a calculation (p. 342) and you want to ensure it is giving you the results you want. Tip: You can also view tabular data in Query Explorer, which is useful when you are building queries. 4. If you want to set run options, from the Run menu, click Run Options. The default value is the value of the selected corresponding run option in IBM Cognos Connection. The run options that you set apply only to the current session. When you close Report Studio, the options return to the default settings. 5. Change any values for the current session.
User Guide 95
Option
Format Paper size Paper orientation Data mode
Description
Specify to change the default format from HTML. Specify only if the output format is PDF. Specify only if the output format is PDF. Specify how much data is returned: All Data returns all data. Limited Data limits the amount of data returned based on design mode filters defined in the package. No Data returns artificial data instead of actual data from the data source.
For more information about design mode filters, see the Framework Manager User Guide. Language The content language sets the preferred language for the data, IBM Cognos Viewer, dates, and so on. Specifies the number of rows to appear on each page. A Rows Per Page property exists in the Properties pane for lists and crosstabs. If you set this property, the setting overrides the same-named run option. This property applies to both HTML and PDF outputs. For more information about this property, see "Controlling the Rows Per Page for Multiple Containers in HTML and PDF" (p. 98). Prompt Select to be prompted (p. 421) for each prompt defined unless the prompt is defined in a report page. If you clear the Prompt check box, you are prompted only if the report cannot run without user intervention. For example, if a report has a single parameterized filter that is optional, you are not prompted when you run the report.
Option
Include accessibility features
Description
Specifies whether accessibility features, such as alternate text on images and charts (p. 991) and summary text in tables (p. 991), are included in the report output. This option is also used for conditional layouts in Report Studio. When the option is selected, you can specify that a crosstab is rendered as an accessible alternate to a chart (p. 992). For more information about how to create accessible reports, see "Considerations to Improve Report Accessibility" (p. 989).
6. From the Run menu, click one of the options to produce the report in the format you want. You can produce a report in HTML, PDF, CSV, various Microsoft Excel formats, and XML. You cannot produce a report in CSV format if you have more than one query defined in the report unless the additional queries are used for prompts. The report runs in IBM Cognos Viewer. Once the report has finished running, you can run the report again in the same format or in a different format. If you run the report again in CSV or XLS format, the report will appear in a new browser window. The options available in IBM Cognos Viewer depend on the capabilities set by the administrator for each user. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
User Guide 97
Chapter 3: Creating a Report Mixed currency values occur when you calculate values with different currencies. This behavior occurs when you are using an IBM Cognos cube as a data source. This behavior also occurs for SAP BW data sources.
When using Business Explorer (BEx) to define variables in your SAP data source, avoid using exclusionary ranges and the mandatory not initial property.
Steps
1. In the report page, click a data container. 2. In the Properties pane, click the select ancestor button For example, if the data container is a list, click List. 3. Set the Render Page when Empty property to No. 4. Repeat steps 1 to 3 for all other data containers in the page and any table of contents objects (p. 445). When you run the report, if no data is produced in all data containers and table of contents objects in a page, the page is not rendered. The page is not rendered even if the page contains other objects, such as text items or images. and click the data container type.
Controlling the Rows Per Page for Multiple Containers in HTML and PDF
If you have more than one data container in a report, such as a list and a crosstab, you can control how the report is rendered in HTML and PDF by setting the Rows Per Page property for each container. For HTML output, the report property option Page break by data container for interactive HTML (p. 459) controls whether the default number of rows is rendered for each data container on each page. IBM Cognos BI uses the following rules when rendering reports in HTML and PDF: If the Rows Per Page property is not set for any of the data containers, 20 rows per page are rendered in HTML and each page is completely filled in PDF. The first data container is rendered until there is no more data, followed by the next container, and so on. Tip: The number of rows that appear on a PDF page depends on the font size set in the report.
Chapter 3: Creating a Report If the Rows Per Page property is set for each data container, the specified numbers of rows are rendered in HTML and PDF on each page until there is no more data. If the property is set for only some of the containers, the specified numbers of rows are rendered in HTML and PDF on each page until there is no more data. For the remaining containers, 20 rows per page are rendered on each page in HTML and each page is completely filled in PDF. For example, you have two lists, List1 and List2. You set the Rows Per Page property to 5 for List1. When you run the report in HTML, the first page contains the first 5 rows from List1 followed by the first 15 rows of List2. If no data is returned for a data container, an empty container is rendered.
You can open reports saved in CSV format using a variety of spreadsheet software applications. By default, reports produced in CSV format will appear in the application associated with the .csv file type. You cannot produce the following in CSV format: maps charts that do not have at least one category or series reports that have more than one query defined in the report, unless the additional queries are used for prompts
In IBM Cognos Connection, you can configure the CSV output to suit your environment. For example, you can specify the character used to delimit fields. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
User Guide 99
Chapter 3: Creating a Report Excel 2007 format renders report output in native Excel XML format, also known as XLSX, that provides a fast way to deliver native Excel spreadsheets to Microsoft Excel 2002, Microsoft Excel 2003, and Microsoft Excel 2007. Users of Microsoft Excel 2002 and Microsoft Excel 2003 must install the Microsoft Office Compatibility Pack, which provides file open and save capabilities for the new format. The output is similar to other Excel formats, with the following exceptions: Charts are rendered as static images. Row height can change in the rendered report to achieve greater fidelity. Column width that are explicitly specified in reports are ignored in Microsoft Excel 2007. Merged cells are used to improve the appearance of reports.
Excel 2002 format also offers the following benefits: Works with SSL protocol. Works with a single signon. Secure reports can be accessed without subsequent signons because the system automatically identifies users and provides security information. Works with Netscape 7.01. Spreadsheets are contained in a single file for reliable spreadsheet navigation.
Limitations exist when producing reports in XLS format. For more information, see "Limitations When Producing Reports in Microsoft Excel Format" (p. 597).
Chapter 3: Creating a Report If a report contains more than one data container, such as a crosstab and a list, and both containers use the same query, only the output for the list is produced. If a report contains multiple lists, only the output for the first list is produced. If a report contains multiple crosstabs and multiple lists, only the output for the first list is produced.
Steps
1. To set PDF page options for all report pages in a layout, do the following: From the File menu, click PDF Page Setup and set the page options.
2. To set PDF page options for an individual page, do the following: Pause the pointer over the page explorer button In the work area, click anywhere on the page. In the Properties pane, click the select ancestor button and click Page. and click the page.
Double-click the PDF Page Setup property, select the Override the page setup for this page check box, and set the page options.
Chapter 3: Creating a Report You can use the lineage tool that comes with IBM Cognos BI, or you can use another lineage tool by specifying the URL to the tool in IBM Cognos Administration. Note that if the URL source is secured, the source must be able to prompt users for a password because IBM Cognos BI does not pass security information. IBM Cognos BI also supports the IBM Metadata Workbench as a lineage tool. For more information about configuring other lineage tools, see the IBM Cognos Business Intelligence Administration and Security Guide. Tip: The Customer Returns and Satisfaction sample report (p. 579) in the GO Data Warehouse (analysis) package includes lineage information. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Business View
The business view displays high-level textual information that describes the data item and the package from which it comes. This information is taken from IBM Cognos Connection and the Framework Manager model.
Technical View
The technical view is a graphical representation of the lineage of the selected data item. The lineage traces the data item from the package to the data sources used by the package. When you click an item, its properties appear below it. If you click an item in the Package area, you see the model properties of the item. If you click an item in the Data Sources area, you see the data source properties of the item.
Saved Reports
You can also view lineage information in IBM Cognos Viewer after you run a report. For example, you can click a cell in a crosstab to see how the cell value was calculated. To view lineage information in IBM Cognos Viewer, right-click an item in the report and then click Lineage. If you or an administrator runs a saved report with the IBM Cognos BI lineage tool, both the business view and the technical view are visible. Report consumers can see only the business view. In addition to the Package and Data Sources areas, a Report area exists when looking at the technical view. You cannot use lineage information to troubleshoot queries. For example, lineage information will not explain why a data item is double counted. Also, you cannot view lineage information when running a report from a mobile device. Before you can access lineage information for a report, your administrator must configure lineage in IBM Cognos Administration. Also, the administrator must enable the lineage capability and grant read permission for you on the report. Note: The IBM Cognos BI lineage tool shows lineage on a report at its highest level. The lineage does not change after you drill down on a report. Because the selection context used to launch lineage can be affected by drill-down operations, we recommend that you always launch lineage at the highest report level before drilling down on the report. Otherwise, the lineage may not start properly.
Step
In the Insertable Objects pane, on the Source tab , right-click the data item and click Lineage. User Guide 103
Chapter 3: Creating a Report Tip: You can view lineage information for multiple data items at the same time by first Ctrl+clicking the items. The IBM Metadata Workbench does not support viewing lineage for multiple data items at once. The lineage tool opens showing the lineage information of the selected data item.
Step
Right-click the data item and click Glossary. The IBM InfoSphere Business Glossary appears.
Chapter 3: Creating a Report Create a container report that includes all the report objects that dashboard users might want to add in a report. Such a report is not meant to be run and does not need to show report objects in a proper layout. It is only used as a container for the various report parts. Each page of a report appears as a folder within the Business Insight Content pane. For example, on one page named Prompts you can insert all the possible prompts that users might want to add to a dashboard, and give each prompt a useful business name, such as Value Prompt for Region. On a second page named Charts, you can insert a number of charts useful for dashboards. Ensure that the titles and labels used in your report are understandable by business users. Ensure that you use report objects that are well suited for dashboards. They convey the most information in as little space as possible. For example, if you include a chart, use bullet charts (p. 137), microcharts (p. 139), line charts (p. 131), or column and bar charts (p. 131). Use conditional blocks to show business indicators. If your report includes charts, customize the font sizes so that the charts appear correctly in a dashboard. You may need to reduce the font sizes. If your report includes embedded objects, such as a list with an embedded chart and crosstab, and business users insert the list object in their dashboard, the embedded objects appear as blank. Users must insert the entire report. Therefore, you may want to hide the list and embedded objects from business users by clearing the Name property and allowing them to only insert the entire report. If your report includes a map, customize the colors of the map in Report Studio so that they match the color palette of the dashboard. You cannot edit the color palette of a map from within a Business Insight dashboard.
Chapter 3: Creating a Report data item in its own query and name it _BusinessInsight_ within the Report Studio report. Therefore, the data item must exist in both the query used for the data container (such as the list, crosstab, or chart) and in this separate query. For example, a chart shows the revenue for the product lines for each region. You want to filter the chart to show only data for the year 2008. When you author the report, in addition to including Year in the Query1 used for the chart data container, you create a new query named _BusinessInsight_ that includes Year. For more information, see "Creating Reports for Business Insight Dashboards" (p. 104).
Steps
1. Pause your pointer over the Query Explorer and click Queries. 2. From the Insertable Objects pane, drag a Query object to the work area. 3. Click the Query object, and in the Properties pane, in the Name box, type _BusinessInsight_. 4. Double-click the Query object, and from the Source tab of the Insertable Objects pane, add the data item to use as a filter. Ensure that the same data item also exists in the query used for the data container.
Chapter 3: Creating a Report Tip: Workbooks, documents, and presentations that are enabled for IBM Cognos for Microsoft Office are identified by their own unique icons, helping you to distinguish them from other types of files. Optimize report templates for Microsoft Office. If you rely on IT personnel or other report authors to create content, request report templates that are optimized for your Microsoft Office integration needs. You may want to request only the data elements or queries that you need and request minimal formatting so that you can more easily use Microsoft Office formatting capabilities with the IBM Cognos content. For example, reports authored in Report Studio can contain list objects embedded within list objects with specific formatting applied. When converted to the tabular representation available in Excel, these reports may not be rendered in the same way in which they appear in IBM Cognos BI. Format elements in the Office application. Instead of formatting objects in IBM Cognos BI, add the formatting in the Office application. By applying less formatting in IBM Cognos BI, you can import more data into the desired locations. Label report elements using descriptive names. This practice makes them more easier to find after you import them. Examples of report elements include lists, crosstabs, and charts. Do not nest report objects. If you nested report objects, some objects may not appear in the correct location, or they may not appear at all. In addition, nesting report objects may cause the following error message to appear: RDS-ERR-1000 Report Data Service could not process from the content provider. For example, this error occurs if a repeater or repeater table is inside a block or table. It also appears when layout objects, such as lists, crosstabs, and charts, are in a conditional block that is inside another block or table. Keep table sizes small. For example, because of the size of slides, the maximum number of rows and columns that you can have in Microsoft PowerPoint tables is 25. Although Word and Excel permit larger tables, it takes more time to download and render them. Use images with transparent backgrounds. The background will show through the image in the Office application, making the image look like part of the presentation. If you want, you can then supply your own background color. Specify the height and width of images in a list. This practice ensures that the image appears in the correct size in the Office application. Remember that graphs and charts are imported as images.
Chapter 3: Creating a Report Images in IBM Cognos BI have image maps associated with them to enable tooltips and hotspots. IBM Cognos BI for Microsoft Office cannot import tooltips and hotspots into Office applications. Consider the additional limitations that exist when producing reports in Excel format (p. 597).
Unsupported features
In addition, the following report features are not supported for reports that are viewed on mobile devices with IBM Cognos Mobile.
Formatting
Font size Font size is supported for reports that are viewed on the Web portal. Line-through font style Line-through font style is supported for reports that are viewed on the Web portal. HTML items HTML items are supported for reports that are viewed on the Web portal. Rich text items HTML links HTML links are supported for reports that are viewed on the Web portal. Chart border colors, patterns (such as dotted lines), and widths
Chapter 3: Creating a Report Borders on any objects other than crosstabs or lists Padding Chart frames inside blocks, table cells, or field sets Vertical text alignment Line height Letter spacing Page number background Text rotation Whitespace for formatting, such as tabs
Report Features
Multi-page widgets in IBM Cognos Business Insight dashboards Only the first page is shown for reports that are viewed on mobile devices or on the Web portal. Static images that are protected with NTLM in reports Set NTLM security only on the cgi-bin directory. If you choose to enforce NTLM across your static content as well, you will encounter missing static images in your reports. Image backgrounds in cells Image animations Hyperlink buttons Bookmarks JavaScript (or any kind of client-side scripting) Field sets Drill definitions Drilling through on multiple values
Authentication
Symbian JavaScript
Prompting
Inline prompts ("in-page" prompts) Prompts are not shown within the report, but the user is prompted instead when they run the report.
Chapter 3: Creating a Report In-page cascading prompts In-page cascading prompts are supported for reports that are viewed on the Web portal. Value prompts displayed as checkboxes Customized prompt pages and conditional display of prompts Prompts that are directly on a report page Multi-select range prompts, such as a prompt that allows users to view data for January 1 to February 15 and February 17 to March 2 Multi-select range prompts are supported for reports that are viewed on the Web portal. Japanese Imperial calendar control Prompt page layout Prompt page layout is supported for reports that are viewed on the Web portal. Select & Search prompt options IBM Cognos hardcodes the includes and case insensitive options which are the least restrictive options. Seconds and milliseconds in time prompts Prompts for data source connections, such as to provide credentials or choose a database
When using the IBM J9 Java Virtual Machine, the buildSettings tool is not supported. In addition, the buildSettings tool for BlackBerry and Windows Mobile devices is only supported on the Microsoft Windows operating system. For more information about IBM Cognos Mobile, see the IBM Cognos Mobile Installation and Administration Guide and User Guide.
Chapter 4: Lists
Use lists to show detailed information from your database, such as product lists and customer lists. A list shows data in rows and columns. Each column shows all the values for a data item in the database or a calculation based on data items in the database.
You can specify whether to automatically add an overall aggregate summary in the list footer and a summary for any groups in the list by selecting Automatic group and summary behavior for lists in the IBM Cognos Report Studio options. The default aggregation as specified in your enterprise data source is used. For information about converting a list into a crosstab, see "Change a List into a Crosstab" (p. 123). Tip: The Order Invoices - Donald Chow, Sales Person sample report (p. 591) in the GO Sales (query) package includes a list. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. To format an individual column, do the following: Click the column title or column body. To format the text in the column title or the data in the column body, click the unlock button in the toolbar and then click the title or body. in the title bar of the
To format the whole column, click the select ancestor button Properties pane and click List Column. In the Properties pane, set the property value.
For example, to specify a background color, click Background Color and choose the color. Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010. 111
Chapter 4: Lists 2. To format all columns, do the following: Click a column in the list. To format list column bodies, click the select ancestor button in the title bar of the Properties pane and click List Columns Body Style. To format list column titles, click the select ancestor button in the title bar of the Properties pane and click List Columns Title Style. To format entire columns, click the select ancestor button in the title bar of the Properties pane and click List Columns. To format the entire list, click the select ancestor button in the title bar of the Properties pane and click List. In the Properties pane, set the property value.
For example, to specify a background color, click Background Color and choose the color. Formatting for specific columns overrides formatting for entire columns. For example, you specify red as the background color for a specific column body and green as the background color for all columns. When you run the report, the specific column body is red and the remaining columns in the list are green. New columns added to the list will be green. For more information about formatting reports, see "Laying Out a Report" (p. 437).
Steps
1. Select the column that you want to hide. 2. Click the select ancestor button 3. Set the Render property to Yes. When you run your report, the column is hidden in the report output. in the title bar of the Properties pane and click List Column.
Chapter 4: Lists
In crosstab reports in IBM Cognos BI, set evaluation is always done in the context of what the set is nested under in the report. However, in list reports set evaluation is done independently of the grouping. For example, if the first column contains Country instead of Year, you see the top three months for each country (across all years) in both cases. In the case of different dimensions, you can force context independence by replacing [Revenue] in the topCount expression with tuple ([Revenue], X), where X is the default member of the hierarchy that contains Month. However, for nested levels in the same hierarchy, there is no such workaround at this time.
Using Repeaters
Use repeaters to repeat items when you run the report. For example, you can use repeaters to create mailing labels, including customer names and addresses. To build a repeater, drag the Repeater or Repeater Table object from the Toolbox tab to the work area. Use repeaters to repeat items across a single row without a particular structure. For example, you want to create a list that contains Year, and Product line. For each year, you want all product lines to appear in a single row. To do this, create a list with Year as a column and with a repeater as a second column. Then insert Product line into the repeater. Use repeater tables to repeat items in a table structure. Drop the items in the repeater, and modify the properties of the repeater to obtain the results you want. For example, you can specify how many frames appear per page in a repeater table by typing values in the Across and Down properties.
Steps
1. Click any part of the list. 2. From the Structure menu, click Convert List to Repeater.
Chapter 4: Lists
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Repeater Table and click OK. 4. Click the repeater, click the select ancestor button Repeater Table. 5. In the Properties pane, set the following properties: Set the Across property to 2. Set the Down property to 5. Double-click the Table Properties property, select the Fixed size check box, and click OK. in the Properties pane title bar, and click
6. In the Insertable Objects pane, on the Toolbox tab, drag the Table object to the repeater. The Insert Table dialog box appears. 7. In the Number of columns box, type 1 and click OK. 8. Click the table, ensure that you see Table Cell in the Properties pane title bar, and modify the following properties: Double-click Background Image, click Specified and click Browse. Click logo.jpg and click OK. In the Background Image dialog box, under Position, click the align top right button. Under Tiling, click Do not tile and click OK. Double-click Size & Overflow, and in the Height box, type 175, and click OK.
9. Click the table, click the select ancestor button in the Properties pane title bar, and click Table. 10. In the Properties pane, specify properties for the table: Double-click Border. In the Style box, click Solid line. In the Width box, click 1 pt. In the Color box, click Black. Under Preview, click the apply all borders button and click OK.
Double-click Font, and under the Size box, click 8pt, and click OK.
Chapter 4: Lists 11. In the Insertable Objects pane, on the Toolbox tab, drag the Block object to the repeater 8 times to create 8 blocks. 12. Drag the Text Item object to the first block:
In the Text dialog box, type To: and click OK. Select the text item. Double-click the Font property, set the weight to Bold, and click OK.
13. Click the first block, and, in the Properties pane, specify properties for the first block: Double-click the Padding property, type 35 in the box on the right, click mm as the unit, and click OK. Set the Horizontal Alignment property to Center. , expand Sales and Marketing (query),
Sales (query), and Retailer site and drag seven data items to the remaining seven blocks. 15. Ctrl+click the seven blocks to select them, and in the Properties pane, specify properties for the seven blocks: Double-click the Padding property, type 25 in the box on the left, click mm as the unit, and click OK. Set the Horizontal Alignment property to Left.
When you run the report, each page contains 10 mailing labels in two columns.
Chapter 4: Lists
Chapter 5: Crosstabs
Use crosstab reports, also known as matrix reports, to show the relationships between three or more query items. Crosstab reports show data in rows and columns with information summarized at the intersection points. For example, the crosstab below shows the gross profit and revenue by product line for each year.
Tip: The Same Month Prior Year sample report (p. 577) in the Sales and Marketing (cube) package includes a crosstab. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). For information about adding microcharts in a crosstab, see "Insert a Microchart into a Crosstab" (p. 194).
Each crosstab node member refers to a data item that contains an expression to define the members in the crosstab. The following crosstab contains four crosstab nodes.
117
Chapter 5: Crosstabs
(1) (2)
Crosstab node 1 contains a single node member for the total. This node refers to the data item Total(Product line). Crosstab node 2 contains a crosstab node member that refers to the data item Product line. This member has a nested crosstab node containing a crosstab node member that refers to the data item Product type. Tip: Nodes are also created when you add data items to charts.
Chapter 5: Crosstabs
The style applied to the last object in the list overrides styles applied to previous objects. In addition, class styles are applied before styles that you apply manually. You can also quickly format crosstabs by applying table styles (p. 450) and add white space to a crosstab by inserting crosstab space objects (p. 445).
Steps
1. To format the entire crosstab, do the following: Click anywhere in the crosstab. Click the select ancestor button in the title bar of the Properties pane and click Crosstab.
In the Properties pane, set the property value. For example, to specify a background color, click Background Color and choose a color.
2. To format all rows, columns, or fact cells, click a row, column, or fact cell in the crosstab and then do the following: If you clicked a row, click the select ancestor button in the title bar of the Properties pane and click Crosstab Rows. If you clicked a column, click the select ancestor button in the title bar of the Properties pane and click Crosstab Columns. If you clicked a fact cell, click the select ancestor button in the title bar of the Properties pane and click Crosstab Fact Cells. In the Properties pane, set the property value. For example, to specify a background color, click Background Color and choose the color. Tip: You can also right-click the row or column and click Select Fact Cells. 3. To format all crosstab cells for a specific row or column, do the following: Click the row or column. Click the select ancestor button in the title bar of the Properties pane and click Crosstab Member Fact Cells. User Guide 119
Chapter 5: Crosstabs Tip: You can also right-click the row or column and click Select Member Fact Cells. In the Properties pane, set the property value. For example, to specify a background color, click Background Color and choose the color. 4. To format all row or column titles, do the following: Click a row or column title. Click the select ancestor button in the title bar of the Properties pane and click Crosstab Rows or Crosstab Columns. In the Properties pane, set the property value. For example, to specify a background color, click Background Color and choose the color. 5. To format an individual row, column, or intersection, do the following: Click the row, column, or intersection. Tip: To format the data in a row, column, or intersection, click the unlock button the toolbar and then click the text item to format. In the Properties pane, set the property value. For example, to specify a background color, click Background Color and choose the color. Tip: In cases where fact cell formatting applied to rows conflicts with fact cell formatting applied to columns, you can set the Fact Cells Precedence property in the Properties pane to determine whether the row formatting or the column formatting has precedence. To set this property, click anywhere in the crosstab, click the select ancestor button in the title bar of the Properties pane, and click Crosstab. For more information about formatting reports, see "Laying Out a Report" (p. 437). in
Steps
1. In the Insertable Objects pane, from the toolbox tab area. 2. From the Source tab , insert a crosstab object to the work
A black bar indicates where you can drop the data item. 3. Repeat step 2 to insert additional data items: If you dragged the data item in step 2 to the Rows drop zone, drag the additional items above or below the first item.
Chapter 5: Crosstabs If you dragged the data item in step 2 to the Columns drop zone, drag the additional items to the left or right of the first item.
4. To add measures to the crosstab, drag the measures to the Measures drop zone. When you run the report, a crosstab is produced that has only one edge.
Rows
The following relationships are created when you insert a data item as a row: Inserting a data item to the left or right of a column creates a parent-child relationship between them. When you insert a data item to the left of a column, the data item becomes a parent to the column. When you insert a data item to the right of a column, the data item becomes a child of the column. Inserting a data item above or below a column creates a union relationship between them.
Columns
The following relationships are created when you insert a data item as a column: Inserting a data item to the left or right of a column creates a union relationship between them. Inserting a data item above or below a column creates a parent-child relationship between them.
When you insert a data item above a column, the data item becomes a parent to the column. When you insert a data item below a column, the data item becomes a child of the column. For example, you have a crosstab with Product line as rows and Quantity and Revenue as nested rows. For columns, you have Order method with Country as a nested column. In this crosstab, Product line is a parent to Quantity and Revenue. Quantity and Revenue are peers. Order method is a parent to Country.
Steps
1. In the Insertable Objects pane, on the Source tab , click the data item to add.
Chapter 5: Crosstabs 2. Drag the data item to the report as a nested column or nested row. A black bar indicates where you can drop the data item. 3. Repeat steps 1 to 2 to add other nested columns or rows. Tip: If you add more than one measure to a crosstab, all measures appear as columns. You cannot have one measure appear as a row and another as a column. To make all measures appear as rows, swap columns and rows (p. 122).
Steps
1. To specify the default measure for a crosstab, do the following: Click any part of the crosstab, and then click the select ancestor button of the Properties pane. Click Crosstab. Set the Default Measure property to the default measure. in the title bar
2. To specify the default measure for a chart, drag the measure to the Default measure box in the chart.
Step
From the toolbar, click the swap rows and columns button .
In the report, the rows become the columns and the columns become the rows.
Chapter 5: Crosstabs
Indent Data
You can indent crosstab node members to set them apart from surrounding data. When you insert a hierarchy in rows, all members are automatically indented according to their level. By default, the first member in a set is not indented. If you insert a hierarchy in columns, the members are not automatically indented. You can change the indentation properties of members in the report. Relative indentation means that the member will shift by one tab when the member's level increases relative to the previous member in the hierarchy. Indenting based on the level in the hierarchy means that the member will shift the number of tabs equivalent to the level in the hierarchy. You can also indent objects by applying padding (p. 450).
Steps
1. Click the crosstab node member to indent. 2. In the Properties pane, set the Level Indentation property to your indentation type, length, and direction.
Steps
1. Click the columns to appear as columns or nested columns in the crosstab. 2. From the Structure menu, click Pivot List to Crosstab. The list becomes a crosstab with the columns you selected in step 2 appearing as columns and nested columns. The unselected columns, except for measures, appear as rows and nested rows. If you have one measure, it becomes the cells of the crosstab. If you have more than one measure, they appear as columns. Tip: To make all measures appear as rows, swap columns and rows (p. 122).
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template.
Chapter 5: Crosstabs 3. In the New dialog box, click Crosstab and click OK. 4. In the Insertable Objects pane, on the Source tab :
Expand Sales and Marketing (query) and Sales (query). Expand Product and double-click Product line to add it as rows. Expand Order method and double-click Order method to add it as columns. Click Product type and drag it just to the right of Product line. Product type is now nested in Product line.
Expand Sales fact and drag Quantity to the Measures drop zone to add it as a measure. Drag Revenue to the right of Quantity to add it as a second measure. Tip: Drop Revenue into the crosstab when you see a vertical bar between the Product type column and the Order method column.
5. Click any part of the crosstab, and then click the select ancestor button the Properties pane. 6. Click Crosstab. 7. In the Properties pane, double-click the Font property. 8. In the Size box, click 8pt and click OK. 9. Click one of the measures. 10. Click the summarize button and click Maximum.
When you run the report, you can see that for camping equipment, Cooking Gear generated the highest sales volume for the Special order method and Tents generated the most revenue. Tents ordered by the Web order method generated the largest revenue.
Chapter 5: Crosstabs
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Crosstab and click OK. 4. In the Insertable Objects pane, on the Source tab :
Expand Sales and Marketing (query) and Sales (query). Expand Product and drag Product line to the Rows area. Expand Order method and drag Order method to the Columns area. Expand Sales fact and drag Revenue to the Measures area. and click Query1.
5. Pause the pointer over the query explorer button 6. On the Toolbox tab
The Data Item Expression dialog box appears. 7. In the Expression Definition box, type the following and click OK:
Chapter 5: Crosstabs [Employee summary (query)].[Employee by region].[Region] 8. In the Properties pane, set the Name property to Region. 9. Pause the pointer over the page explorer button and click Page1.
10. On the Source tab, expand Retailer site and drag Region to the left of Order method. Tip: Drop Region into the crosstab when a flashing vertical bar appears between the Product line column and the Order method column. Otherwise, Region may appear as a nested row instead of a column. 11. Click Region. 12. In the Properties pane, double-click the Sorting property. 13. From the Data Items pane, drag Region to the Sort List pane. 14. Click the sort order button 15. Run the report. to sort quarters in ascending order and click OK.
Chapter 6: Charts
You can use IBM Cognos Report Studio to create many chart types, such as column, bar, area, and line charts. For information, see "Chart Types" (p. 130).
Creating Charts
Before creating charts, review the available chart types (p. 130) to select the best chart for your needs. Also review the chart objects (p. 127) that make up charts. Tip: To view the available chart types, from the File menu, click New, and then double-click the chart icon . You can also view the available chart types by adding a Chart object from the Toolbox tab in the Insertable Objects pane to an existing report. To create charts, drag data items from the Source tab of the Insertable Objects pane to the measures, data series and categories drop zones. To help you when creating charts, you can do the following: Preview your chart style changes. As you author your chart and edit the chart properties, IBM Cognos Report Studio provides you with a preview of your chart, using simulated data. This allows you to view your style changes without running your report. You need to run your report to see the chart with your actual data. You can disable the chart preview in the options (p. 84). Resize your charts (p. 150). Move the chart drop zones into flyouts so that they appear only when you pause your pointer over the chart (p. 84).
After you create a basic chart, modify the various chart objects (p. 147) to customize your chart.
Chart Objects
The following shows the most common chart objects as they appear in your report output in IBM Cognos Viewer.
127
Chapter 6: Charts
gridlines
x-axis labels
The following shows the same chart as it appears in the IBM Cognos Report Studio user interface. The Y-axis is selected, and the axis titles are displayed.
Chapter 6: Charts
y-axis
plot area
axis labels
Data Series
A data series is a group of related data points that are plotted in a chart. Each series has a unique color or pattern and is described in the legend. You can plot one or more data series in a chart; pie charts have only one data series. In the example chart, the data series are order years 2004, 2005, 2006, and 2007.
Categories
Categories are groups of related data from the data series that are plotted on the X-axis. Categories of multiple data series are shown together using clustered and stacked data markers. In the example chart, the categories are the product lines of The Great Outdoors Company in clustered columns.
Axes
Axes are lines that provide references for measurement or comparison. The primary axis (or Y-axis) refers to measures of quantitative data, such as sales figures or quantities. Charts can have more than one primary axis. The category axis (X-axis or ordinal axis) plots qualitative data, such as products or regions. It runs horizontally, except in bar charts.
Chapter 6: Charts The z-axis is the vertical axis in a 3-D chart. Major gridlines extend from the tick marks on an axis and run behind the data markers.
Legend
A legend is a key to the patterns or colors assigned to the data series or categories in a chart.
Chart Types
IBM Cognos Report Studio provides many types of charts for presenting your data in a way that is meaningful for your users. You can select from a variety of chart types (such as pie, bar, line, gauge, scatter, and so on) and you can select from a variety of chart configurations (such as stacked columns, 3-D pies). Combination charts allow you to use more than one chart type within your chart. Some chart types are not supported for Microsoft Excel output or appear differently in Excel. For more information, see "Limitations When Producing Reports in Microsoft Excel Format" (p. 597).
Purpose
Show contributions of parts to a whole
Show trends in time or contrast values across different Line Charts categories Area Charts Bar Charts Column Charts Always place time in the horizontal axis. Compare groups of related information against actual Bar Charts values Radar Charts
Chapter 6: Charts
Purpose
Compare different kinds of quantitative information Rank values in descending or ascending order
Show correlation between two sets of measures Show key performance indicators in an executive dashboard
Column Charts
Column charts are useful for comparing discrete data or showing trends over time. Column charts use vertical data markers to compare individual values. The Sales Growth Year Over Year sample report (p. 586) in the GO Data Warehouse (analysis) package includes a column chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). The following example shows the revenue for each product line.
Column charts can plot data using standard, stacked, 100 percent stacked, and three-dimensional configurations.
Line Charts
Line charts are useful for showing trends over time and comparing many data series. Line charts plot data at regular points connected by lines. Line charts can plot data using standard, stacked, 100 percent stacked, and three-dimensional configurations. It is best not to use stacked line charts because they are difficult to distinguish from unstacked line charts with multiple data series.
Chapter 6: Charts The following example shows a rising revenue trend in every territory.
The Top Retailers by Country sample report (p. 578) in the Sales and Marketing (cube) package includes a line chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Pie Charts
Pie charts are useful for highlighting proportions. They use segments of a circle to show the relationship of parts to the whole. To highlight actual values, use another chart type, such as a stacked chart. Pie charts plot a single data series. If you need to plot multiple data series, use a 100 percent stacked chart. Reports in PDF or HTML format show a maximum of 16 pies or gauges per chart. If you need to see more, run the report in Excel Single Sheet format and they all appear in the report. The Returns by Failed Orders in 2006 sample report (p. 584) in the GO Data Warehouse (analysis) package includes a pie chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). The following example shows that the largest proportion of revenue comes from the Americas, followed closely by the Asia Pacific region.
Chapter 6: Charts Pie charts can plot data using standard, 100 percent, and three-dimensional configurations.
Bar Charts
Bar charts are useful for showing trends over time and plotting many data series. Bar charts use horizontal data markers to compare individual values. The Manager Profile sample report (p. 581) in the GO Data Warehouse (analysis) package includes a bar chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). The following example shows revenue for every country.
Bar charts can plot data using standard, stacked, and 100 percent stacked configurations.
Area Charts
Area charts are useful for emphasizing the magnitude of change over time. Stacked area charts are also used to show the relationship of parts to the whole. Area charts are like line charts, but the areas below the lines are filled with colors or patterns. Do not use standard area charts to show multiple data series because it is possible for areas with lower values to be covered by others. For multiple data series, use a stacked area chart. The following example is a stacked area chart showing the quantity of products sold over a twoyear period in multiple territories.
Chapter 6: Charts
Area charts can plot data using standard, stacked, 100 percent stacked, and three-dimensional configurations.
Point Charts
Point charts are useful for showing quantitative data in an uncluttered fashion. Point charts use multiple points to plot data along an ordinal axis. A point chart the same as a line chart without the lines. Only the data points are shown. The following example shows the revenue for each product line.
Combination Charts
Combination charts plot multiple data series by using combinations of columns, areas, and lines within one chart. They are useful for highlighting relationships between the various data series. The Quantity Sold vs. Shipped and Inventory sample report (p. 583) in the GO Data Warehouse (analysis) package includes a combination chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). The following example shows a combination chart that includes planned revenue as a column chart and actual revenue as an area chart.
Chapter 6: Charts
Combination charts can plot data using standard, stacked, 100 percent stacked, and three-dimensional configurations.
Scatter Charts
Scatter charts use data points to plot two measures anywhere along a scale, not only at regular tick marks. You can also specify a default measure. For example, you might need to specify a default measure to give context to a calculated measure in the chart. For more information about the default measure, see "Specify the Default Measure" (p. 122). Scatter charts are useful for exploring correlations between different sets of data. The Employee Satisfaction 2006 sample report (p. 579) in the GO Data Warehouse (analysis) package includes a scatter chart. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). The following example shows the correlation between production cost and gross profit for each product line.
Chapter 6: Charts
Bubble Charts
Bubble charts, like scatter charts, use data points and bubbles to plot measures anywhere along a scale. The size of the bubble represents a third measure. You can also specify a default measure. For example, you might need to specify a default measure to give context to a calculated measure in the chart. For more information about the default measure, see "Specify the Default Measure" (p. 122). Bubble charts are useful for representing financial data. These charts are not supported for Microsoft Excel output. The following example plots quantity and revenue by product line. The size of the bubble represents the amount of gross profit.
Quadrant Charts
Quadrant charts are bubble charts with a background that is divided into four equal sections. Quadrant charts are useful for plotting data that contains three measures using an X-axis, a Y-axis, and a bubble size that represents the value of the third measure. You can also specify a default measure. For example, you might need to specify a default measure to give context to a calculated measure in the chart. For more information about the default measure, see "Specify the Default Measure" (p. 122). Legacy quadrant charts use baselines (p. 173) to create the quadrants. Current default charts use colored regions (p. 159). Use a quadrant chart to present data that can be categorized into quadrants, such as a SWOT (strengths, weaknesses, opportunities, and threats) analysis. The following example shows the relationship between production cost and gross profit. The size of the bubble represents the quantity of units sold.
Chapter 6: Charts
Bullet Charts
Bullet charts are a variation of bar charts. They compare a featured measure (the bullet) to a targeted measure (the target). They also relate the compared measures against colored regions in the background that provide additional qualitative measurements, such as good, satisfactory, and poor. Bullet charts are often used instead of gauge charts in executive dashboards. Bullet charts can be horizontal or vertical. Note: This chart type applies only to the current default charts, and does not apply to the legacy charts (p. 127). A bullet chart contains the following components: A bullet measure. The bullet measure, Revenue, appears as the blue bar in the chart below. A target measure. The target measure, Planned revenue, appears as the black indicator in the chart below. From zero to five colored regions along the numeric scale to provide information about the featured measures qualitative state. The chart below includes three colored regions: 0-50%, 50-75%, and 75-100%. A label that identifies the measures. A numeric scale.
Chapter 6: Charts
Gauge Charts
Gauge charts, also known as dial charts or speedometer charts, use needles to show information as a reading on a dial. The value for each needle is easily read against the colored data range or chart axis. This chart type is often used in executive dashboard reports to show key business indicators. Gauge charts are useful for comparing values between a small number of variables either by using multiple needles on the same gauge or by using multiple gauges. Reports in PDF or HTML format are limited to show a maximum of 16 pies or gauges per chart. These charts are not supported for Microsoft Excel output. A gauge chart consists of a gauge axis (which contains the data range, color ranges, and intervals markers), needles, and a center pivot point. The following example shows a basic gauge chart with default attributes. It is a degree dial chart with two axes.
Pareto Charts
Pareto charts help you to improve processes by identifying the primary causes of an event. They rank categories from the most frequent to the least frequent. These charts are frequently used for quality control data, so that you can identify and reduce the primary cause of problems. Pareto charts include a cumulation line, which shows the percentage of the accumulated total of all the columns or bars. You can create before and after comparisons of Pareto charts to show the impact of corrective actions. These charts are not supported for Microsoft Excel output. The following example shows that the most frequent reason for product returns is unsatisfactory product.
Chapter 6: Charts
Progressive column charts can plot data using standard and three-dimensional configurations. You can also create progressive charts using horizontal bars.
Microcharts
Microcharts are smaller versions of column charts, bar charts, and line charts that you can use in crosstabs and dashboards. Microcharts include column microcharts and bar microcharts, which
Chapter 6: Charts are available in stacked and 100 percent stacked configurations, and win-loss charts and modified line charts that contain the following: A closing value marker. Opening, closing, high, and low value markers. A reference line.
If you specify custom labels for a microchart, the custom labels appear in the tooltips, not on the chart itself. For more information about custom labels, see "Specify Custom Label Text" (p. 161).
Win-loss charts are microcharts in which the value of each column is either 1 or -1, often denoting a win or loss. Win-loss charts use two measures (the default and the win-loss measure) and no series. The winloss measure is the measure or calculation that you define. You can also specify a default measure. For example, you might need to specify a default measure to give context to a calculated measure in the chart. For more information about the default measure, see "Specify the Default Measure" (p. 122). The following example shows the quarters that have a margin of less than 10,000 in red.
Marimekko Charts
Marimekko charts are 100 percent stacked charts in which the width of a column is proportional to the total of the column's values. Individual segment height is a percentage of the respective column total value. The following example shows the contribution of revenues for product lines in different regions.
Chapter 6: Charts
Radar Charts
Radar charts integrate multiple axes into a single radial figure. For each figure, data is plotted along a separate axis that starts at the center of the chart. The following example shows the revenue from multiple retailer types in multiple territories.
Radar charts can plot data using standard and stacked configurations.
Polar Charts
Polar charts are useful for showing scientific data. They are circular charts that use values and angles to show information as polar coordinates. You can specify a default measure. For example, you might need to specify a default measure to give context to a calculated measure in the chart. For more information about the default measure, see "Specify the Default Measure" (p. 122). The following example shows the revenue and quantity for each product line. The distance along the radial axis represents quantity, and the angle around the polar axis represents revenue.
Chapter 6: Charts
You can also insert IBM Cognos Metric Studio diagrams in your report to show the relationship between metrics. For more information, see "Add a Static Metric Studio Diagram to a Report" (p. 201) and "Add a Data-driven Metric Studio Diagram to a Report" (p. 202).
Chart Configurations
Chart configurations specify the grouping type of the columns, bars, lines, and areas in a chart. Some examples are standard, stacked, and 100 percent stacked charts.
Standard Charts
Standard or absolute charts are useful for comparing specific values and for representing discrete data, such as data for different regions or individual employees. For example, a standard column chart that plots regional sales emphasizes the actual value that each region achieves in sales. Standard charts plot the actual value of each data series from a common axis. 142 IBM Cognos Report Studio
Chapter 6: Charts When you create charts using multiple data series, you can distinguish each series by the color or pattern of its data marker. Related data series are shown together in clusters for easy comparison. In standard area and radar charts that have multiple data series, the colored areas that represent lower values might be covered by the larger colored areas that represent higher values. Use the stacked configuration for area and radar charts with multiple data series. The following example shows the revenue values for each product line within each territory.
Stacked Charts
Stacked charts are useful for comparing proportional contributions within a category. They plot the relative value that each data series contributes to the total. For example, a stacked column chart that plots product line sales will emphasize the proportion that each product line contributes to the total in each territory. You can distinguish each data series by the color or pattern of its section in the stack. The top of each stack represents the accumulated totals for each category. Do not use the stacked configuration in line charts that have multiple data series because it is difficult to distinguish between unstacked and stacked configurations, and your chart consumers might misunderstand your data. The following example shows that camping equipment contributed a large proportion of the actual revenue in most sales territories.
Chapter 6: Charts
Three-dimensional Charts
Three-dimensional charts provide a visually effective display that is suitable for presentations. Three-dimensional column, bar, line, and area charts plot data by using three axes. Three-dimensional pie charts have a three-dimensional visual effect. Do not use three-dimensional charts when you need to show exact values, such as for control or monitoring purposes. The distortion in three-dimensional charts can make them difficult to read accurately. For example, the following chart shows actual revenue for each product line in each territory, but some data labels are omitted because there is not enough room to display them all.
Chapter 6: Charts
Steps
1. Right-click a chart and click Convert Chart. 2. Select a new chart type, and click OK. If some chart properties cannot be converted, the Chart Property Changes dialog box appears notifying you of the properties that cannot be converted.
Steps
1. From the Tools menu, click Options. 2. From the Advanced tab, clear the Use legacy chart authoring check box. 3. Right-click the legacy chart and click Convert Chart. 4. Select a new chart type, and click OK. If some chart properties cannot be converted, the Chart Property Changes dialog box appears notifying you of the properties that cannot be converted.
Chapter 6: Charts The following legacy chart properties are not migrated to the current default charts: Conditional Palette Style Variable Display Frequency and First Label Index on the category axis Visual Angle Rotate Values Value Location Conditional Style, Style Variable, and Drill-Through Definitions on pie labels and gauge labels Connecting Lines on combination charts line styles; only four line styles are supported in the current default charts
The following table outlines some behavior differences between legacy charts and the current default charts.
Legacy Charts
Combination charts are always ordered from Combination charts support any order. back to front - area, bar, and line. In bar charts, multiple bar definitions for the In bar charts, multiple bars are placed on top of Y1-axis are placed side-by-side. one another and you can control the width of the bars. In combination charts, the color palette is In combination charts, color palettes are restarted continued over multiple bars, lines, and areas. for each bar, line, and area. The legend order respects the order in which The legend order is the same as the order specified bars, lines, and areas are specified. For in the chart. example, bars can appear before areas in the legend. The following chart types continue to use the legacy chart technology and therefore cannot be upgraded to the current default chart technology. If you want to convert these chart types to the current default charts, upgrade them to a different chart type, such as a column or line chart. Win loss Radar Polar 3-D Bar, 3-D Line, 3-D Area, and 3-D Combination 3-D Scatter
Goal
Hide or show the title, subtitle, or footer Hide or show the legend
Select the chart. Under Chart Annotations, set the Baselines property. For more information, see "Add a Baseline to a Current Default Chart" (p. 173).
Hide or show trendlines or regression Select the chart. Under Chart Annotations, set the Trendlines lines or Regression Line property. For more information, see "Display Trendlines in Current Default Charts" (p. 177) or "Display Regression Lines in Legacy Scatter or Bubble Charts" (p. 178). Hide or show markers Select the chart. Under Chart Annotations, set the Markers property. For more information, see "Add a Marker to a Current Default Chart" (p. 175).
Chapter 6: Charts
Goal
Hide or show notes
Select the chart. Under Axes, set the Y1 Axis, Y2 Axis, or Category Axis property. For more information, see "Customize the Axes of a Current Default Chart" (p. 162).
Select the axis. Under General, set the Axis Line or Axis Title property. For more information, see "Customize the Axes of a Current Default Chart" (p. 162).
Select the axis title. Under General, set the Default Title property to No, and then double-click the axis title and type a new title. For more information, see "Customize the Axes of a Current Default Chart" (p. 162).
Select the numeric axis. Under General, set the Minimum Value, Maximum Value, Scale Interval, or Scale property. For more information, see "Change the Axis Scale of a Current Default Chart" (p. 163).
Select the chart. Under Chart Labels, set the Tooltips property. When you pause your pointer over a data marker in the report output, the corresponding absolute or cumulative value appears in a tooltip. Tooltips are not supported in PDF output.
Select the numeric axis. Under Data, set the Data Format property. Select the chart. Under Box, set the Padding or Margin property. For more information, see "Apply Padding to an Object" (p. 450) and "Set Margins for an Object" (p. 451).
Chapter 6: Charts
Goal
Change the color or pattern in the Select the chart object. Under Color & Background, set the palette for columns, lines, and areas Palette or Conditional Palette property. For more information, see "Customizing the Color Palette of a Chart" (p. 151) and "Create a Simple Conditional Palette for a Current Default Chart" (p. 154). Change the chart orientation Select the chart. In the Properties pane, under Chart Orientation, select Vertical or Horizontal. Change the default color or font for Select the chart. Under Color & Background, set the all chart objects Background Color, Foreground Color, or Fill Effects property. For more information, see "Change a Chart Background in a Legacy Chart" (p. 158). Under Font & Text, set the Font or Relative Alignment property. Tip: The 2005 Quarterly Sales Forecast sample report (p. 588) in the GO Sales (analysis) package includes text alignment. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). Override the default font or color for Click the unlock button in the toolbar to unlock the axes and chart values chart object, select the chart body by clicking between the axes, and set the Font, Background Color, Foreground Color, or Fill Effects property. Change the three-dimensional appearance of a chart Select the chart. Under General, set the Depth or Visual Angle property. For example, for a pie chart, a Depth value of 0 (zero) leaves the pie flat, or two-dimensional. A value of 100 raises the pie almost to a round ball shape. Tip: You can select a value from the Depth list or type a value that is not listed.
Chapter 6: Charts
Goal
Insert a background image or water- Click the lock button in the toolbar to unlock the chart mark in the chart body. object, select the chart body by clicking between the axes. Under Color & Background, set the Background Image property. For more information, see "Change a Chart Background in a Legacy Chart" (p. 158). Go to another report Select the chart. Under Data, set the Drill-Through Definitions property. For more information, see "Using Drill-through Access" (p. 517). Specify which labels and values to use Select the chart. Under Chart Labels, set the Values propwhen generating the text shown on erty. the chart Note: When you show all the labels and values on some chart types, such as scatter charts, bubble charts, and polar charts, the text shown might be too long.
Steps
1. Select the chart object. 2. Click the resize handle in the lower right corner of the chart Use Shift+drag to maintain the aspect ratio of the chart. 3. To see the actual size of the chart as it will appear in the report output, collapse the chart objects with the minus (-) button in the upper left corner of the chart. The new chart size appears in the Size & Overflow property. You can also edit the chart size with this property. .
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. In the Properties pane, double-click the Size & Overflow property and specify the height and width.
Steps
1. Select the chart object. 2. To choose a preset color palette, click the chart palette presets button and then click a palette. 3. To change the existing color palette: In the Properties pane, under Color & Background, double-click the Palette property. On the Entries tab, click the palette entry that you want to change. Under Fill, select fill type, color, transparency, and other fill settings. The options in the Fill type list depend on the chart type you are using. Linear Gradient displays a gradient that changes color horizontally. You can specify the position of each color in the gradient and add or remove colors from the gradient. Radial Line Gradient displays a gradient that changes color outwards from a central point, or focus. You can specify the position of each color in the gradient and the size and position of the focus. You can also add or remove colors from the gradient. Radial Rectangle Gradient displays a gradient that changes color outwards from a rectangle. You can specify the position of each color in the gradient and the size of the rectangle. You can also add or remove colors from the gradient. Pattern displays a colored pattern that you choose from a preset list. You can specify the foreground and background colors. on the style toolbar,
Chapter 6: Charts Color displays a solid color. You can specify the transparency. Image displays an image. You can specify the image to use. To change the color of this palette definition, click the color in the Colors list, click Color, specify the color properties, and click OK. 4. Under Style, depending on the chart type you are customizing and the fill type you chose in step 2, you can change the marker shape, line style, default color, and line weight. 5. To add a new palette entry, click the new button and specify the new palette settings.
6. To change the order in which the colors, gradients, or patterns appear in the chart, use the arrow buttons under the Palette box to change their position. 7. To copy and paste a palette, open the palette dialog box and press Ctrl+C to copy the palette to the clipboard. Close the palette dialog box. Select another chart, open the palette dialog box, and press Ctrl+V to paste the palette from the clipboard. 8. To customize the data markers, on the Properties tab, depending on the chart type you are customizing and the fill type you chose in step 2, you can specify whether data markers are shown and change their color and size.
Steps
1. Select the progressive chart object. 2. In the Properties pane, double-click the Progressive Palette property. You can specify the following: Positive value fill defines the appearance of the positive bars or columns on the chart. Negative value fill defines the appearance of the negative bars or columns on the chart. First value fill defines the appearance of the first bar or column on the chart. Total value fill defines the appearance of the total bar or column on the chart, if a total bar or column is present.
3. To change the appearance of a fill: Click the colored box beside the fill name. Click a fill type from the Fill type list. Linear Gradient displays a gradient that changes color horizontally. You can specify the position of each color in the gradient and add or remove colors from the gradient.
Chapter 6: Charts Radial Line Gradient displays a gradient that changes color outwards from a central point, or focus. You can specify the position of each color in the gradient and the size and position of the focus. You can also add or remove colors from the gradient. Radial Rectangle Gradient displays a gradient that changes color outwards from a rectangle. You can specify the position of each color in the gradient and the size of the rectangle. You can also add or remove colors from the gradient. Pattern displays a colored pattern that you choose from a preset list. You can specify the foreground and background colors. Color displays a solid color. You can specify the transparency. Image displays an image. You can specify the image to use. To change the color of this fill, click the color in the Colors list, click Color, specify the color properties, and click OK. 4. To change the text of the label that appears next to a bar, double-click the text box beside the fill name and specify the text.
Steps
1. Select the chart object. 2. In the Color & Background section of the Properties pane, double-click the Palette property. 3. In the Palette dialog box, click the new palette entry button to define a new palette entry: To apply color, click Color, specify the color properties, and click OK. To apply a gradient, click Gradient, specify the Direction, From color, and To color properties, and click OK. To apply a pattern, click Pattern, specify the Pattern, Foreground color, and Background color properties, and click OK. Tip: You can also select a predefined palette from the Palettes box. 4. To change the order in which the colors, gradients, or patterns appear in the chart, use the arrow buttons under the Palette box to change their position. 5. To copy and paste a palette, open the palette dialog box and press Ctrl+C to copy the palette to the clipboard. Close the palette dialog box. Select another chart, open the palette dialog box, and press Ctrl+V to paste the palette from the clipboard. 6. Repeat step 3 for each chart series.
Chapter 6: Charts
Steps
1. Select the chart series to which you want to apply the conditional palette. 2. In the Properties pane, under Color & Background, double-click the Conditional Palette property. 3. Click the new button and click New Condition.
4. If you want to create a conditional palette based on a string, do the following: Select the string data item to determine the condition. In the Type of conditional style list, click String, and click OK. Click the new button and select how to define the condition: To select more than one individual value, click Select Multiple Values and click the values. To type specific values, click Enter Values and type the values. To specify your own criteria, such as values that begin with the letter A, click Enter String Criteria and specify the condition. Under Palette Entry, beside the new condition, click the edit button Define the palette entry fill type, colors, and angle, and click OK. .
5. If you want to create a conditional palette based on a numeric range, date/time range, interval range, date range, or time range, do the following: Select a numeric data item to determine the condition. In the Type of conditional style list, click the type of condition you want to create, and click OK.
Chapter 6: Charts Click the new button and type a value to define a threshold.
The value appears in the Range column, and two ranges are created. For each range, under Style, click the edit button colors, and angle, and then click OK. Repeat the steps above to add other conditions. Tip: Under Style, pause the pointer over each range that range. to see the condition produced for to define the palette entry fill type,
If you want to use the default palette for the lowest range instead of specifying a conditional palette select the Use default palette for lowest range check box.
For example, you insert a threshold value of five million. By default, the ranges are less than or equal to five million and greater than five million. Moving the five million value above the threshold changes the ranges to less than five million and greater than or equal to five million. 6. To customize the label for a conditional palette, do the following: Click Label beside the palette entry. In the Conditional Palette Entry Label dialog box, click Specified text and click the ellipsis (...) button. Type the default label text in the Label text box. , select the other To add customized labels for other languages, click the add button languages, and click the language to define the customized label for that language.
7. Specify the order in which to evaluate the conditions by clicking a condition and then clicking the move up or move down arrow. Conditions are evaluated from top to bottom, and the first condition that is met is applied.
Steps
1. Select the chart series to which you want to apply the conditional palette. 2. In the Properties pane, under Color & Background, double-click the Conditional Palette property.
Chapter 6: Charts 3. Click the add button and click Advanced Condition. and specify the expression that defines the condi-
The new advanced condition appears in the Conditional Palette - Advanced dialog box. 5. Under Palette Entry, beside the new advanced condition, click the edit button. 6. Define the palette entry fill type, colors, and angle, and click OK. 7. Specify the order in which to evaluate the conditions by clicking a condition and then clicking the move up or move down arrow. Conditions are evaluated from top to bottom, and the first condition that is met is applied.
Steps
1. Click the chart object. 2. In the Properties pane, under Color & Background, double-click the Conditional Palette property. 3. If you want to create a variable that has only two possible values, Yes and No, do the following: Under Variable, click New boolean variable. In the New Variable dialog box, type a name for the variable. In the Expression Definition box, define the condition and click OK. For example, the following expression returns the value Yes if revenue is less than one million and the value No if revenue is greater than or equal to one million: [Revenue]<1000000 For information about creating expressions, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396) and "Calculation Components" (p. 773). In the Value box, select whether the expression evaluates to Yes or No. Under Effects, specify the color palette to use for the condition.
4. If you want to create a variable whose values are string-based, do the following: Under Variable, select New string variable. In the Expression Definition box, define the condition and click OK.
Chapter 6: Charts For example, the following expression returns the value high if revenue is greater than one million and the value low if revenue is less than or equal to one million:
if ([Revenue]>1000000) then ('high') else ('low')
For information about creating expressions, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396) and "Calculation Components" (p. 773). Click the add button in the Values pane.
For each value that the variable can assume, type the name of the value that corresponds with the possible outcomes defined in the expression. For example, in the previous expression, you must create two values for the variable, high and low. Tip: You can create a group by clicking two or more values and then clicking the group values button languages. . For example, you can create a group that includes the available French
5. If you want to create a variable whose values are different languages, do the following: Under Variable, select Report Language Variable. In the Languages dialog box, select the languages to support.
6. Click OK to close the expression editor and leave the Conditional Palette dialog box open. 7. Under Effect, click Pattern. 8. Under Pattern, select a pattern and click OK. 9. In the Box section of the Properties pane, set the Borders property to Show.
Steps
1. Click the chart object. 2. Click the unlock button , select the chart body by clicking between the axes, and, in the
Properties pane, under Color & Background, double-click the Plot Area Fill property. 3. Click a fill type from the Fill type list. Linear Gradient displays a gradient that changes color horizontally. You can specify the position of each color in the gradient and add or remove colors from the gradient.
Chapter 6: Charts Radial Line Gradient displays a gradient that changes color outwards from a central point, or focus. You can specify the position of each color in the gradient and the size and position of the focus. You can also add or remove colors from the gradient. Radial Rectangle Gradient displays a gradient that changes color outwards from a rectangle. You can specify the position of each color in the gradient and the size of the rectangle. You can also add or remove colors from the gradient. Pattern displays a colored pattern that you choose from a preset list. You can specify the foreground and background colors. Color displays a solid color. You can specify the transparency. Image displays an image. You can specify the image to use.
Steps
1. Click the chart object. 2. Click the unlock button , select the chart body by clicking between the axes, and, in the
Properties pane, under Color & Background, double-click the Fill Effects property. 3. In the Effect box, choose a color, a gradient fill effect, or a pattern: To apply a color, click Color and specify the color properties. To apply a gradient fill effect, click Gradient and then specify the Direction, From color, and To color properties. To apply a pattern effect, click Pattern and specify the Pattern, Foreground Color, and Background Color properties. The foreground color is the color of the selected pattern. The background color is the color of the area behind the pattern. Tip: To remove a background fill effect, click None.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. To apply a preset background fill effect, from the toolbar, click the background effects presets button. 3. To add a custom fill effect and border do the following: In the Properties pane, under Color & Background, double-click the Background Effects property. Click Border and specify settings for border style, width, color, corner radius for rounded rectangles, and transparency. If the object also includes a fill with a transparency setting, select the Allow transparent bleed check box to apply the same transparency to the border. Click Fill and specify the settings. The fill effect can either be a solid color, a gradient, or a pattern. 4. To add a texture effect, in the Properties pane, under Color & Background, select an option under Material Effects. 5. To add a drop shadow In the Properties pane, under Color & Background, double-click the Drop Shadow property. Select the Drop shadow check box. From the Shadow color list, click a color. Under Blur, click an intensity to set the drop shadows blur. Under Offset, enter a value and a unit to define the width and height of the drop shadow. Under Transparency, type a percentage to determine the transparency of the shadow.
6. To add a bevel In the Properties pane, under Color & Background, double-click the Bevel property and click a bevel effect.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127). In bullet charts (p. 137), colored regions are automatically added. You can use the following criteria to position the colored regions.
Option
Percent on Axis (%)
Position
Uses a percentage of the full range of the axis. For example, if the axis range is -500 to 1100, a Percent on Axis value of 25% puts the baseline at -100 (25% of the range, 1600).
Uses a static numeric value. Uses the statistical mean plus or minus a number of standard deviations based on all charted data values on the specified axis. Uses a specified percentile. Uses the following expression: 25th percentile value - 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical minimum is -5 [2.5 -1.5(5) = -5].
Statistical Minimum
Uses the following expression: 75th percentile value + 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical maximum is 15 [7.5 +1.5(5) = 15].
Query Calculation
Uses a query calculation from the same query or from a different query. For more information, see "Using Relational Calculations" (p. 342). Uses a layout calculation. For more information, see "Using Relational Calculations" (p. 342). Specifies a position based on the index value of the data item in the categories axis. The value must be between 0 and 100. For example, a Category index value of 1 indicates that the position is located at the first data item. This is the default.
Layout Calculation
Category Index
Chapter 6: Charts You can also combine colored regions with gridlines (p. 165).
Steps
1. Click the chart object. 2. In the Properties pane, under Color & Background, double-click the Colored Regions property. 3. Click the new button ,
4. Under Region label, type a name for the region. 5. Under Label location, specify whether the label should appear in the legend or in the chart. 6. If your chart includes multiple charts, such as in a combination chart, under Based on, select the chart to which the colored regions apply. 7. Under Region fill, click the color box to specify the color and fill effects. 8. Specify the start and end of the category and numeric positions. 9. If you want to add more colored regions, repeat steps 3 to 5. 10. If you add more than one colored region, specify their order using the up and down arrows. The regions are drawn in the same order that they appear in this list. The first region is drawn first, on the bottom, and the last region is drawn on top of the other regions. Tip: To delete a colored region, click the colored region icon and text and click the delete button . The new region appears in the Colored regions box.
Steps
1. Click the chart node member or measure. 2. In the Properties pane, under the Chart Labels, set the Custom Label property to Show. A new chart text item appears above the default measure or below the chart node member. 3. Do one of the following: To change the text of the label, double-click the chart text item and type the text. To change the source of the label text, select the new chart text item. In the Text Source section of the Properties pane, set the Source Type property.
Chapter 6: Charts If nothing is specified in the new chart text item, the label appears blank. Tip: To remove a custom label, set the Custom Label property to Hide.
In HTML/PDF, if you have a report with a line chart, you can use the Include Zero For Auto Scale property to adjust the scale of the Y-axis of the chart. If the difference between your measure's maximum/minimum values is much less than the difference between your measure's minimum value and zero, using this property will make the chart Y-axis begin at something closer to your measure's minimum value, making the line utilize all of the chart's vertical space. In some cases this is significant in improving the readability of the chart.
Steps
1. Select the Y-axis or the X-axis of the chart. 2. To show or hide the axis labels, in the Properties pane, set the Axis Label property. 3. If your chart includes nested categories, to change how the category axis labels are displayed, set the Nested Label Display property. 4. To show or hide axis lines, in the Properties pane, double-click the Axis Line property, and select or clear the Axis line check box. 5. To change the color, style, and weight of the axis line, in the Properties pane, set the Axis Line property. 6. To show or hide minor and major tick marks and specify their location, in the Properties pane, set the Axis Line property.
Chapter 6: Charts
Steps
1. Select the Y-axis or the X-axis of the chart. 2. To show or hide the axis labels, in the Properties pane, set the Axis Label property. 3. Select the Axis line check box. 4. Click Line color and choose a color for this axis line. 5. To show or hide axis lines, in the Properties pane, double-click the Axis Line property, and select or clear the Axis line check box. 6. To change the color, style, and weight of the axis line, in the Properties pane, double-click the Axis Line property.
For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Logarithmic Scales
Logarithmic scales can be useful when some of the data you are displaying is much less or much more than the rest of the data or when the percentage or ratio differences between values are important. A logarithmic scale in Report Studio shows the base value of 10 raised to the power of a value. For example, 10 has a logarithm of 1 because 10 raised to the power of 1 is 10, 100 has a logarithm of 2 because 10 raised to the power of 2 is 100, and so on. For example, the chart below is using a normal scale:
Chapter 6: Charts
In this chart, the Y-axis shows values up to 2,000,000,000 with evenly spaced intervals of 400,000,000. However, the Outdoor Protection column is so much less than the other columns that it is difficult to compare them. The following is the same chart using a logarithmic scale:
In this chart, the Y-axis still shows the same revenue values, but the intervals reflect a logarithmic scale, which increases exponentially. You can now compare all the product lines because none of the product lines have much higher or much lower values than the others. Logarithmic scales can also be useful when the percentage or ratio differences between values are important. For example, if the logarithmic scale chart above represents data from 2008, and you add data from 2009 as a second set of colored bars, you could see the differences between the 2008 revenue and 2009 revenue. In a logarithmic scale, differences between values on the Y-axis represent the same percentage for each bar. So if the 2008 and 2009 data differs by the same distance for
Chapter 6: Charts each product line, you could deduce that your revenue went up by the same percentage for each product line. This would not be clear on a normal scale.
Steps
1. Select the Y-axis or the X-axis of the chart. 2. In the Properties pane, under General, double-click the Axis Range property. 3. To set a maximum value for this axis, under Maximum, click Manual, and then type a maximum value in the Manual box. Note: You can use either a positive or negative value as the maximum value. 4. To set a minimum value for this axis, under Minimum, click Manual, and then type a minimum value in the Manual box. Note: You can use either a positive or negative value as the minimum value. 5. To include zero on this axis, select the Include zero check box. 6. To use a logarithmic scale for this axis, select the Logarithmic scale check box. Note: If you choose to use a logarithmic scale, ensure that your chart consumers know that the scale is logarithmic by including that information in the axis title or in a note on the chart (p. 170). 7. To set the position of major gridlines and tick marks, under Major interval, click Manual, and then type the distance between major gridlines and tick marks in the Manual box. The distance between major gridlines and tick marks is measured in the units of that axis. For example, if the axis is revenue in dollars, type the dollar value in the Manual box. 8. To add minor gridlines, type the number of minor gridlines that you want to see between each major gridline in the Number of minor intervals box.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the Y-axis or the X-axis of the chart. 2. To show alternating bands of color as your chart background, do the following: In the Properties pane, double-click the Gridlines property. Select the Show alternating color bands check box. Set the color and transparency of the first and second colors.
3. To show major gridlines as your chart background, do the following: In the Properties pane, double-click the Gridlines property. Select the Show major gridlines check box. Set the color, style, and weight of the major gridlines. If you are working with a gauge chart, specify the length of the gridline.
4. To show minor gridlines as your chart background, do the following: In the Properties pane, double-click the Minor gridlines property. Select the Show minor gridlines check box. Set the color, style, and weight of the minor gridlines. If you are working with a gauge chart, specify the length of the gridline.
Steps
1. Select the Y-axis or the X-axis of the chart. 2. In the Properties pane, under General, double-click the Gridlines property. 3. To specify the color, style, and weight of major gridlines do the following: Select the Show major gridlines check box. Click Line color and choose a color for the major gridlines. To specify the thickness of the gridlines, click Point size and select a line weight from the list. Click a line style in the Line style list.
4. To specify the color, style, and weight of minor gridlines: 166 IBM Cognos Report Studio
Chapter 6: Charts In the Properties pane, under General, double-click the Minor Gridlines property. Select the Show minor gridlines check box. Click Line color and choose a color for the minor gridlines. To specify the thickness of the gridlines, click Point size and select a line weight from the list. Click a line style in the Line style list. To change the transparency of the gridlines, type a percentage in the Transparency box.
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Legend property. 3. To show the legend on the chart, select the Show Legend check box. 4. To choose a preset legend position, click Preset and click a position from the diagram. 5. To choose a customized legend position, do the following: Click Advanced and click the ellipsis (...) button. To display the legend at a set distance from the sides of the chart area, from the Anchor list, click Relative to Chart. To display the legend at a set distance from the sides of the chart body, from the Anchor list, click Relative to Chart Body. To display the legend at a set distance from a data item, such as a specific pie slice in a pie chart, from the Anchor list, click Report Expression, click the ellipsis (...) button beside Expression, and enter an expression in the Report Expression dialog box. Set the horizontal and vertical distances from the anchor.
Chapter 6: Charts
Steps
1. Select the legend. 2. To truncate the legend In the Properties pane, under General, double-click the Text Truncation property. To specify the number of characters at which the legend items are truncated, click Manual and type the number of characters in the Maximum characters box. To shrink the font of the legend item text until all the text fits in the legend, select the Shrink font as needed check box. To specify some text to appear at the end of truncated legend items, in the Truncation text box, type the text that you want to appear at the end of truncated items.
3. To show the values of legend items within the legend In the Properties pane, under General, set the Show Values property. First Value and Last Value refer to the first and last item in the child set under the legend data item. Minimum Value and Maximum Value refer to the lowest and highest value in the child set under the legend data item. If you want to change the separator between the legend item and value, type a new separator in the Legend Separator property. 4. To customize the title of the legend Click the default legend title area in the work area. In the Properties pane, under General, set the Default Title property to No. Double-click the default legend title area in the work area and type the new title.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the legend. 2. To truncate the legend text, do the following: In the Properties pane, under General, set the Auto Truncation property to Yes. In the Maximum Characters property, type the number of characters to appear before the text is truncated. In the Truncation Text property, type the characters to append when the text is truncated. To shrink the font of the legend item text until all the text fits in the legend, select the Shrink font as needed check box. To specify text to appear at the end of truncated legend items, type it in the Truncation text box. 3. To show the values of legend items within the legend, do the following: In the Properties pane, under General, set the Show Legend Values property. First Value and Last Value refer to the first and last item in the child set under the legend data item. Minimum Value and Maximum Value refer to the lowest and highest value in the child set under the legend data item. If you show multiple values and want to change the separator between the values, type a new separator in the Separator property. 4. To customize the title of the legend, do the following: Click the default legend title area in the work area. In the Properties pane, under General, set the Default Title property to No. Double-click the default legend title area in the work area and type the new title.
Chapter 6: Charts the report runs. If you have two notes with the same coordinates, the first one in the list is drawn first and the next one is drawn on top of the first. Tip: The Top 10 Retailers for 2005 sample report (p. 586) in the GO Data Warehouse (analysis) package includes a note. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Notes property. 3. Click the new button .
4. Type the note text in the Text box and click OK. Tips: To delete a note, click the note and click the delete button down in the list, click the up or down arrows. 5. In the Notes dialog box, click OK. 6. To position the note: Click the note icon in the list of notes. . To move a note up or
In the Properties pane, under Positioning, double-click the Position property. To align the note horizontally, click the left, center, or right alignment button. To align the note vertically, click the top, middle, or bottom alignment button. To set the margins around the chart body, type margin values and choose margin units. To display the note at a set distance from the sides of the chart area, from the Anchor list, click Relative to Chart.
To display the note at a set distance from the sides of the chart body, from the Anchor list, click Relative to Chart Body.
To display the note at a set distance from a data item, from the Anchor list, click Report Expression, click the ellipsis (...) button beside Expression, and enter an expression in the Report Expression dialog box.
7. To edit the text, double-click the text next to the note object
in the chart.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
4. Type the note text in the Text box and click OK. Tips: To delete a note, click the note and click the delete button down in the list, click the up or down arrows. 5. In the Notes dialog box, click OK. 6. Click the note icon and set the note position, size, and border in the Properties pane. . To move a note up or
You set the location of the note by defining number of pixels from the bottom left corner of the chart area.
Option
Numeric Value Query Calculation
Description
Uses a static numeric value. Uses a query calculation from the chart query or from a different query. For more information, see "Using Relational Calculations" (p. 342). Uses a layout calculation. For more information, see "Using Relational Calculations" (p. 342). Uses the index value of the data item in the categories axis. For example, a Category index value of 1 indicates that the baseline is located at the first data item. This is the default. Note: This option applies only to the current default charts, and does not apply to the legacy charts (p. 127).
Layout Calculation
Category Index
Chapter 6: Charts
Option
Member Value
Description
When working with dimensional data sources, uses a position relative to a member. For example, a member calculation that uses an expression similar to [Query1].[Current year]=2006 places the baseline in the middle of the chart object that represents 2006. To place the baseline between 2006 and 2007 on the chart, a half member width to the right, set the Member Offset property to 50%. To place the baseline between 2005 and 2006, set the Member Offset property to -50%. You can also type in 100, -200, and so on to place the baseline on the chart.
Statistical Limit
Statistical maximum uses the following expression: 25th percentile value - 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical minimum is -5 [2.5 -1.5(5) = -5]. Statistical minimum uses the following expression: 75th percentile value + 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical maximum is 15 [7.5 +1.5(5) = 15]. Statistical minimum and Statistical maximum use percentiles to determine values, so the baseline might not appear on the chart if its value is off the axis.
Mean
Uses the statistical mean plus or minus a number of standard deviations based on all charted data values on the specified axis. Uses a specified percentile. Uses a percentage of the full range of the axis. For example, if the axis range is -500 to 1100, a Percent on Axis value of 25% puts the baseline at -100 (25% of the range, 1600).
If you apply more than one baseline, you can specify the order in which they should be drawn when the report runs. If you have two baselines with the same coordinates, the first one in the list is drawn first and the next one is drawn on top of the first one. By default, the baseline and its label appear in the legend. Tip: The Positions to Fill sample report (p. 582) in the GO Data Warehouse (analysis) package includes a baseline. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. Click the chart object. 2. Depending on your chart and the type of baseline you want to add, in the Properties pane, under Chart Annotations, double-click the Numeric Baselines or Category Baselines property. 3. Click the new button and choose the type of baseline from the list.
4. Specify the necessary criteria for the baseline position 5. Under Baseline Properties, type a label for the baseline and specify the line style. Tip: To remove the baseline from the legend, delete the label. 6. If you add more than one baseline, specify their order using the up and down arrows. The new baselines appear in the Markers, notes, baselines, and trendlines box. 7. To change the label that appears next to the baseline, under the Markers, notes, baselines, and trendlines box, double-click the placeholder text next to the baseline icon your text. and type
8. To change the line style, select the chart and in the Properties pane, under Chart Annotations, double-click the Baselines, Numeric Baselines, or Category Baselines property. 9. To delete a baseline, select the baseline icon and click the delete button .
Steps
1. Click the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Baselines property. 3. Click the new button and choose the type of baseline from the list.
4. Specify the necessary criteria for the baseline position. If you use a calculation to determine the baseline, define an expression.
Chapter 6: Charts 5. If you add more than one baseline, specify their order using the up and down arrows. 6. Click OK. A baseline icon appears in the Markers, notes, and baselines box. 7. To define the line style, click the baseline icon and set the Line Styles property.
8. To define the text style, click the baseline text and make changes in the Properties pane. Tip: To delete a baseline, click its baseline icon and click the delete button .
Option
Numeric Value Query Calculation
Position
Uses a static numeric value. Uses a query calculation from the same query or from a different query. For more information, see "Using Relational Calculations" (p. 342). Uses a layout calculation. For more information, see "Using Relational Calculations" (p. 342). Uses the following expression: 25th percentile value - 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical minimum is -5 [2.5 -1.5(5) = -5]. Statistical minimum uses percentiles to determine values, and might not always appear in the chart if the values are off the axis.
Layout Calculation
Statistical Minimum
Chapter 6: Charts
Option
Statistical Maximum
Position
Uses the following expression: 75th percentile value + 1.5 * (75th percentile value - 25th percentile value) For example, if 2.5 is the 25th percentile and 7.5 is the 75th percentile, the statistical maximum is 15 [7.5 +1.5(5) = 15]. Statistical maximum uses percentiles to determine values, so the marker might not always appear on the chart if its value is off the axis.
Mean
Uses the statistical mean plus or minus a number of standard deviations based on all charted data values on the specified axis. Uses a specified percentile. Uses a percentage of the maximum axis value.
If you apply more than one marker, you can specify the order in which they should be drawn when the report runs. If you have two markers with the same coordinates, the first one in the list is drawn first and the next one is drawn on top of the first.
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Markers property. 3. Click the new button , and then set the marker properties
4. In the Based on box, select the chart object that will determine the marker position. 5. In the Numeric position box, specify how you want to define the position on the numeric (Y) axis. 6. In the Category position box, specify how you want to define the position on the category (X) axis. 7. In the Marker label box, type the label that you want to give to the marker. 8. In the Marker size box, specify the size of the marker symbol. 9. To specify the color, fill, and shape of the marker symbol, click the Marker color and style box. 10. If you add more than one marker, specify their order by using the up and down arrows.
Chapter 6: Charts The new markers appear in the Markers, notes, and baselines box. Tip: To delete a marker, click the marker icon and text and click the delete button 11. Run the report. .
4. In the X-axis position box, specify how you want to define the position on the X-axis. 5. In the Y-axis position box, specify how you want to define the position on the Y-axis. 6. In the Marker label box, type the label that you want to give to the marker. 7. In the Marker size box, specify the size of the marker symbol 8. To specify the color, fill, and shape of the marker symbol, click the Marker color and style box. 9. If you add more than one marker, specify their order using the up and down arrows. The new markers appear in the Markers, notes, and baselines box. Tip: To delete a marker, click the marker icon and text and click the delete button .
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Markers property. 3. Click the new button , and then set the Numeric position type, Marker label, Marker shape,
Numeric value, and Color properties. 4. If you add more than one marker, specify their order by using the up and down arrows. The new markers appear in the Markers, notes, and baselines box. Tip: To delete a marker, click the marker icon or marker label and click the delete button .
Chapter 6: Charts
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Annotations, double-click the Trendlines property. 3. Click the new button and click a trendline type.
4. Define the trendline by specifying the following options. The options that are available depend on the type of trendline you chose. To set the order, or degree, of a polynomial trendline, in the Order box, type a value between 2 and 6. To set the number of periods to go back in a moving average trendline, in the Periods box, type a value. If you have more than one series on your chart, in the Based on list, click the data you want to use for the trendline. Click either One trendline for all series items or A trendline for each series item. To customize the style of the trendlines, click Line Styles and customize the line color, weight, and style. To customize the trendline labels in the legend, click Label and choose None, Automatic, or Custom. To display the trendline equation, click Show equation, and then click Show in legend or Show on chart, and then click Position to define the equations position on the chart. To display the R-squared value of the trendline, click Show R-squared value, and then click Show in legend or click Show on chart and then click Position to define the position of the value on the chart.
Chapter 6: Charts Use a linear regression line when your data increases or decreases at a consistent rate. For example, if your chart displays a steady increase in revenue by product line over time, you could use a linear regression line. Common Log or Natural Log Use a logarithmic regression line when your data increases or decreases rapidly and then levels out. For example, if your chart displays a rapid decrease in revenue by product line over time and then a plateau, you could use a logarithmic regression line. Exponential Use an exponential regression line when your data increases or decreases exponentially, or at steadily increasing or decreasing rate. For example, if your chart displays an exponential increase in revenue by product line over time, you could use an exponential regression line. Polynomial Fit Use a polynomial fit regression line when your data both increases and decreases. For example, if your chart displays both increases and decreases in revenue by product line over time, you could use a polynomial fit regression line. If you are not sure which regression line type to use, try each type to see which one best fits most of your data points. For example, a linear regression line is not going to fit most points on a scatter chart with widely spread data points.
Steps
1. Select the scatter or bubble chart. 2. In the Properties pane, under Chart Annotations, set the Regression Line property to Show. 3. Click the regression line icon in the report layout.
4. In the Properties pane, under General, set the Line Styles, Regression Type, and Number of Regression Lines properties.
Steps
1. Select the pie or donut chart object. 2. In the Properties pane, under Chart Labels, double-click the Show Values property. 3. To display data labels for each slice of the pie, under Show, select the Slice names check box. User Guide 179
Chapter 6: Charts 4. To show lines pointing from data labels to the slices they apply to, select the Show leader lines check box. 5. To specify the data label format, in the Values list, click Hide, Absolute, Percentage, or Absolute and Percentage. Hide does not display data values. Absolute displays the absolute value of the data. Percentage displays the slices percentage of the whole pie. Absolute and Percentage displays the slices percentage of the whole pie as an absolute value.
6. To specify the placement of data labels, in the Position list, click All around the pie or Aligned left and right of the pie. 7. To specify how to display the labels if their positions on the chart overlap, in the Collision mode list, click one of the following modes: None specifies that labels appear in default positions and might overlap. Normal specifies that labels are placed just above their corresponding data markers or chart objects. There is no collision detection, so labels can overlap. Coarse Stagger specifies that labels are placed close to their data markers and staggered so that they do not overlap. This collision mode takes less time to render than Fine Stagger but might result in labels being farther away from their corresponding data markers. Fine Stagger specifies that labels are staggered so that they do not overlap. The labels are as close to the data markers as possible without overlapping. This collision mode takes more time to render than Coarse Stagger but might result in labels being closer to their corresponding data markers.
Steps
1. Select the chart object. 2. In the Properties pane, under Chart Labels, double-click the Data Labels property. 3. To show lines pointing from data labels to the data marker they apply to, select the Leader lines check box. 4. For each of the categories, series, and measures, select whether to show only values, values and labels, or neither.
Chapter 6: Charts 5. To specify how to display the labels if their positions on the chart overlap, in the Collision Mode list, click one of the following modes: None specifies that labels appear in default positions and might overlap. Normal specifies that labels are placed just above their corresponding data markers or chart objects. There is no collision detection, so labels can overlap. Coarse Stagger specifies that labels are placed close to their data markers and staggered so that they do not overlap. This collision mode takes less time to render than Fine Stagger but might result in labels being farther away from their corresponding data markers. Fine Stagger specifies that labels are staggered so that they do not overlap. The labels are as close to the data markers as possible without overlapping. This collision mode takes more time to render than Coarse Stagger but might result in labels being closer to their corresponding data markers.
Define Query Context When Customizing Legend Entries, Legend Titles, or Axis Labels
You want to use a revenue expression as a chart legend title. If you get an error message saying that the query context of a layout object cannot be determined, you must define the property list for the item to which it refers. You must first add the desired data item to the query before you can define its property list. For more information, see "Specify a List of Data Items for an Object" (p. 378).
Steps
1. Open the chart to customize. 2. Pause the pointer over the query explorer button and click the query.
3. In the Insertable Objects pane, drag the desired item to the Data Items window to add it to the query. 4. Pause the pointer over the page explorer button and click the chart page.
5. In the Insertable Objects pane, drag the desired item to the layout object. 6. In the Properties pane, under Data, double-click the Properties property. 7. Select the check box for the data item to define.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. In the Properties pane, under General, double-click the Summarize Small Slices or Summarize Small Items property. 3. To summarize small slices or items up to a maximum number, select the Maximum number of slices or Maximum number of items check box and type the maximum number. 4. To summarize all the slices or bars that are smaller than a specific value, select the Summarize slices smaller than a value or Summarize items smaller than a value check box, type a value that represents the upper size limit, and choose whether the value is a percentage or absolute. 5. Under Small slice summarization type or Small item summarization type, choose whether to summarize the slices or items as a Total or Average. Note: Averages are calculated using only the summarized items in the report. 6. Under Slice label or Item label, type a label for the one large slice, bar, area, or line that summarizes the smaller ones.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. In the chart area, under Series, click the line chart icon to view the line properties. 3. To select whether to show only the line, the line and data markers, or only the data markers, in the Properties pane, select an option from the Line and Markers list. 4. To show special data markers, double-click the Value Markers property. Select the check box for the special data markers that you want to add and for each marker, specify the color and shape. The options you specify in Value Markers overwrite the options for Line and Markers. 5. To change the shape of the line that connects data markers, select an option from the Line Shape list. 6. To show data labels for the data points, double-click the Data Labels property. For more information, see "Show Data Values or Labels in a Current Default Pie or Donut Chart" (p. 179). 7. To change the color of the lines, double-click the Palette property. For more information, see "Customizing the Color Palette of a Chart" (p. 151).
For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. In the chart area, under Series, click the line chart icon to view the line properties. 3. To select whether to show only the line, the line and data markers, or only the data markers, in the Properties pane, under General, select an option from the Line Type list. 4. To show or hide the line, select an option from the Show line list. 5. To show data points or value markers, double-click the Show Data Points property:
Chapter 6: Charts To show or format data points, click Data points and specify the point shape and point size. The point color is defined by the chart palette. For more information, see "Customizing the Color Palette of a Chart" (p. 151). To show or format value markers, click Value markers and specify the markers to show. For each marker, specify the shape and marker size. Click Color to change the marker color. Tip: To remove all data points and value markers, in the Show Data Points dialog box, select None.
Steps
1. Select the combination chart object. 2. In the Properties pane, under General, double-click the Combinations property. 3. Under Numeric axes, select which axes to show. 4. Under Combinations, add or remove data series.
5. If you want to change the order in which the series appear, use the up and down arrows. The series appear in the order they are listed. Each chart appears in the foreground of any previous charts. 6. If you want to change the configuration type of the series, such as changing clustered bars to stacked bars, under Combinations, select the series, click the edit button and select the type.
7. If you use the same data series for multiple charts and want to synchronize the data marker colors, under Color & Background, set the Series Color property to Match.
Chapter 6: Charts When working with pie, gauge, and bullet charts, if you include a data item in the categories, you automatically create a matrix of charts. One chart appears for each data item in the category. When working with progressive and bullet charts, if you include a data item in the series, you also automatically create a matrix of charts. For example, the following column chart shows the revenue for each year (in the categories or Xaxis) for all the regions and product lines (in the series or Y-axis). This chart is very complex and difficult to understand.
The following chart contains the same series and categories. However, when converted to a matrix of charts, the information is much easier to analyze. The columns show charts for each year and the rows show charts for each the product lines. The bars represent the revenue for each region.
Chapter 6: Charts For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the chart object. 2. In the Properties pane, under General, double-click the Matrix rows and columns property. 3. If your matrix chart includes only rows or columns, and you want them to wrap, select the Wrap rows or columns if possible check box. 4. If you want to show the axes and axis labels for each small chart in the matrix, select the Repeat row and column axis labels check box. When this option is cleared, axes and axis labels appears only along the outer edge of the matrix. 5. Select the Show outer nested series as matrix rows or Show outer nested categories as matrix columns check boxes (or both). 6. In the Matrix levels box, select the number of nested levels to include in the matrix columns or rows. The remaining nested levels are represented in the chart bodies in the matrix if the chart supports additional categories. The pie, gauge, and bullet charts do not support additional categories. The bullet and progressive column charts do not support additional series. For example, in the above chart, Regions are nested under Product Line. In the matrix chart, a Matrix level of 1 is specified. Therefore, Product Line appears as the matrix rows (series) and Regions appear within the chart bodies. 7. If you want labels for the matrix rows and columns to appear on each chart, select the Show row labels or Show column labels check box. 8. In the Labels location list, select where the nested labels should appear on each chart. The default position is on the left for rows and on the bottom for columns. 9. If the labels are too long, click Truncation. 10. To change the font, color, and data format of the labels, click Style. 11. To show the title in the row or column axis, select the Show row title or Show column title check box. 12. If you want to hide or show the axes, select the axis object, and in the Properties pane, under Miscellaneous, set the Show in Matrix property.
Chapter 6: Charts
Unless indicated in the user interface, all sizes are a percentage of the maximum allowed. If your gauge chart includes a border, long axis labels, such as 250,000,000, may overlap the gauge border and be difficult to read. To avoid this problem, customize the data format of your gauge chart measure and reduce the scale so that less zeros are displayed. Or change the gauge border color or size or remove the border. For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Click the gauge chart object. 2. If you want to change the shape of the gauge, modify the start and end angles of the gauge axes and border, as follows: In the Properties pane, under General, double-click the Gauge Axes property and specify the start and end angles and the direction of the axes. Double-click the Gauge Border property and specify the style and the start and end angles of the border.
For example, a border start angle of 0 degrees and end angle of 180 degrees produces a semicircular gauge. 3. If you want to add an additional axes to a gauge chart, do the following: In the Properties pane, under General, double-click the Gauge Axes property. Click the new button axis. and specify the start and end angles and the direction of the new
4. If you want to change the size, shape, and color of the center pivot point, double-click the Gauge Pivot property and specify the style.
Chapter 6: Charts 5. If you want to change the indicators in the gauge axis, click the Gauge Axis object in the chart and do the following: To change the needle, under Axes, double-click the Gauge Needle property and specify the style. To change, add, or remove color bands that indicate the data range positions, under Color & Background, double-click the Gauge Axis Colors property and specify the color palette. If you want to change the size or thickness of the gauge axis and color bands, under Axes, specify a percentage size for the Gauge Axis Inner Radius and Gauge Axis Outer Radius properties. If you want to change the gridlines, under General, double-click the Gridlines or Minor Gridlines properties and specify the style. If you want to change the appearance of the gauge axis line, under General, double-click Axis Line.
Steps
1. Click the gauge chart object. 2. If you want to customize the color of the gauge face or outline, in the General section of the Properties pane, double-click the Face Color or Dial Outline Color property. 3. If you want to hide the gauge labels, in the Chart Labels section of the Properties pane, set the Gauge Labels property to Hide. 4. If you want to customize the colors and boundaries of the gauge areas, do the following: In the Color & Background section of the Properties pane, double-click the Gauge Palette property. To change the color of a boundary area, under Palette, select the color, click Color, specify the color properties, and click OK. To change the value of a boundary area, under Palette, select the boundary value, and type a new value. To add a new boundary area, click the new button .
Chapter 6: Charts
Tips
You can choose whether to use discrete colors or continuous colors. To use a number instead of a percentage as a boundary, clear the Percentage check box, and then type a number in the Numeric boundary box.
In a bubble chart, you can combine the color by value and bubble size (p. 190) to create a more meaningful chart. For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Drag a measure to the Color drop zone under Measures and then select the measure. 2. In the Properties pane, under Color & Background, double-click the Color by Value property. 3. To define the colors by percentages instead of actual values, select the Percentage check box. For example, if the Percentage check box is selected and your values range from 25 (red) to 50 (green), then the bottom 25 percent of values will be red, the top 50 percent of values will be green, and the values between 25 and 50 percent will be an interpolated color, such as yellow.
Chapter 6: Charts 4. If you want to use a preset color palette, click Palette, and select the palette that you want to use. 5. If you want to customize a palette color or boundary value, select the palette entry in the Palette box and specify the color, transparency, and type a new boundary value. 6. To add a new palette entry, select the palette entry below which you want to add the new entry, click the new palette entry button , and click Color.
7. If your chart has lines or markers, under Style, set the marker shape, line style, and line weight. 8. To choose a color and transparency for missing or null values, under Missing Values, click Color and type a value in the Transparency box.
Steps
1. Select the chart object. 2. In Properties pane, under General, double-click the Bubble Size property. 3. Under Smallest bubble, select what value the smallest bubbles represent: To show data items with a value of zero at the minimum bubble size, click Zero. Tip: This setting is consistent with Microsoft Excel 2003. To show data items with a value of zero at the minimum bubble size and show negative bubbles as hollow, select the Zero. Negatives shown as hollow check box. Tip: This setting is consistent with Microsoft Excel 2007. To set the minimum bubble size to the minimum data value, click Minimum data value, and type a size for the minimum and maximum bubble size. Note: The minimum data value can be positive or negative.
Chapter 6: Charts
Set the Position of the First Slice in a Current Default Pie Chart
The default starting position of the first slice is 0 (zero), which displays the first slice beginning at the 3 o'clock position. By default, the slices appear counterclockwise around the pie, so a starting position of 90 displays the first slice at the 12 o'clock position, a starting position of 180 displays the first slice at the 9 o'clock position, and so on. You can change the direction of the slices so that they appear clockwise. For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the pie chart object. 2. In the Properties pane, under General, beside the First Slice Angle property, enter the angle at which you want the first slice to appear. 3. To change the directions in which slices appear, change the Slice Direction property.
Steps
1. Select the pie chart object. 2. In the Properties pane, under General, set the Hole size (%) property to the percentage of the pie that you want the hole to take up. Tip: You can select a value from the Hole size (%) list or type a value that is not listed.
Chapter 6: Charts
For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127).
Steps
1. Select the pie chart object. 2. In the Properties pane, under General, double-click the Exploded Slices property. 3. In the Exploded Slice dialog box, click the new button .
4. In the Exploded amount box, type the percentage by which the slice should appear away from the rest of the pie. 0% displays the pie slice in the pie; 100% displays the pie slice as far out from the rest of the pie as possible. 5. Define which slice to pull out: To select a slice to pull out using its slice index, under Exploded slice, click Slice number and type the slice number. The slice number refers to the order of the slice in the legend. In the example above, Camping Equipment has a slice number of 1 and Personal Accessories has a slice number of 5. To select a slice to pull out using a calculation, under Exploded slice, click Expression and click the ellipsis (...) beside the Expression box to define an expression. In the example above, the expression that defines which slices to pull out is as follows: [Query1].[Revenue] < 100000000. The slice definitions appear in the Exploded Slices list. 6. To pull out other slices, repeat steps 3 to 5.
Chapter 6: Charts
Steps
1. Select the Pareto chart. 2. To hide or show the cumulation line, in the Properties pane, under Chart Annotations, set the Cumulation Line property. 3. To customize the cumulation line, click the cumulation line icon pane, under General, set the following properties: Line Styles defines the cumulation line color, style, and weight. Cumulation Label defines the label in the legend for the cumulation line. You can use the default label from the data source or type a custom label. The color and marker shape of the cumulation line still appears in the legend when this property is set to None. Data Points defines whether to show or hide data points along the cumulation line, whether to show or hide data point borders, the color of data point borders, and the data point size and shape. Data Labels specifies whether to show or hide the labels for the data points along the cumulation line. , and in the Properties
Steps
1. Select the Pareto chart. 2. To hide or show the cumulation line, in the Properties pane, under Chart Annotations, set the Cumulative Line property to Show. 3. To customize the cumulation line, click the cumulation line icon under General, set the following properties: and in the Properties pane,
Chapter 6: Charts Cumulation Axis displays or hides the cumulation lines axis on the right of the Pareto chart. Cumulation Label displays or hides the cumulation line label in the legend. The color and marker shape of the cumulation line still appears in the legend when this property is set to No. Line Styles defines the cumulation line color, style, and weight. Marker Size (pt) defines the size of the markers along the cumulation line in points. Marker Shape defines the shape of the markers along the cumulation line. Values specifies whether to show or hide the values for the markers along the cumulation line. Value Location defines the location of the marker values.
Steps
1. Select a crosstab row or column. 2. From the right-click menu, click Insert Chart for Row Data or Insert Chart for Column Data. 3. From the Insert Chart dialog box, select a chart and click OK. 4. Specify the data to plot in the microchart. The chart automatically plots the data in the specified rows or columns. You can change this if necessary.
Steps
1. Select the bullet chart object. 2. To change the shape, color, and size of the bullet or target In the Properties pane, under General, double-click the Bullet Indicators property.
Chapter 6: Charts Under Bullet, specify how to show the bullet. The Bar width setting specifies the width of the bullet bar as a percentage of the space available. For example, if you specify 50 percent, the bar uses half of the space available. If you specify 100 percent, the bar uses all the available space. Under Target, specify how to show the target.
3. To change the chart orientation, in the Properties pane, under General, set the Chart Orientation property.
Steps
1. Open a chart that uses a dimensionally-modeled data source. 2. From the Data menu, click Drill Behavior. 3. On the Basic tab, under Report output drill capabilities, select the Allow drill-up and drill-down check box. By default, the system determines which items can be drilled on based on the dimensional structure. On the Basic tab, you can make drilling unavailable for any data item by selecting the item in either the Disable drill-up for box or the Disable drill-down for box. On the Advanced tab, you can change the drill-up or drill-down behavior for any parameter by selecting the parameter and then choosing one of the desired behaviors. The chart generates links for any item that can be drilled down on. You can drill down or drill up by right-clicking and choosing the action from the context menu. The menu items are unavailable if an item cannot be drilled up or down on.
Chapter 6: Charts to drill through from the revenue chart to view the product details for any item selected. You create a drill-through report to link two reports containing related information. You can then access related or more detailed information in one report by selecting a value in the chart. You create two reports: a target list report that contains the details for the item and a source report that contains the chart that shows the product line revenue. For more information about using drill-though reporting in IBM Cognos Report Studio, see "Set Up Drill-through Access in a Report" (p. 525). For more information about legacy and current default charts, see "Current Default Charts and Legacy Charts" (p. 127). This example has three parts: Create the target report. Create the source report. Define the drill behavior.
Steps
1. Open Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab Sales (query), and Product. 5. Double-click the following data items to add them to the list: Product line Product type Product name Introduction date Product image , expand Sales and Marketing (query),
Now you must create a filter to use as a drill-through parameter. A drill-through parameter begins and ends with a question mark (?) symbol.
Chapter 6: Charts 6. Click the filters button 7. Click the add button . and type the following in the Expression Definition window:
Steps
1. Create a new report. 2. In the New dialog box, click Chart and click OK. 3. In the Chart group pane, click Column. 4. In the Chart type pane, click Column. 5. Click OK. 6. In the Insertable Objects pane, on the Source tab then Sales (query). 7. Expand Sales fact and drag Revenue to the Measure (Y-axis) drop zone. 8. Expand Order method and drag Order method to the Series drop zone. 9. Expand Product and drag Product Line to the Categories (X-axis) drop zone. , expand Sales and Marketing (query) and
Steps
1. From the Data menu, click Drill Behavior. 2. On the Basic tab, under Report output drill capabilities, select the Allow this report to be a package-based drill-through source check box and click OK.
Chapter 6: Charts 3. Right-click the chart object and click Drill-Through Definitions. 4. Click New Drill Through. 5. Under Report, click the ellipsis (...) button. 6. Select the Product Line Details report you created and click Open. 7. Under Action, click Run the Report. 8. Under Format, click HTML. 9. Click the edit button .
Any existing drill-through parameters appear. You see the parameter you created for Product Line Details. 10. For item p_PL, under Method, click Pass data item value, and under Value, click Product line. 11. Save the chart as Product Revenue. 12. Run the report. The chart shows the product lines as clickable links. When you click a product line, the second report runs for that product line.
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Chart and click OK. 4. In the Chart group pane, click Metrics Range. 5. In the Chart type pane, click Column Chart with Range Indicators and click OK. 6. In the Insertable Objects pane, on the Source tab Sales (query), and Sales fact. 7. Drag Revenue to the Actual (Y-axis) drop zone. 8. Drag Planned Revenue to the Target (marker) drop zone. 9. Expand Time dimension, and drag Quarter to the Categories (X-axis) drop zone. 10. On the Toolbox tab , drag a query calculation to the Tolerance (marker) drop zone. , expand Sales and Marketing (query),
11. In the Create Calculation dialog box, type Tolerance. 12. In the Expression Definition box, type [Planned revenue] * 0.1 and click OK. 13. Run the report and then pause the pointer over each bar to see the revenue for that quarter.
Steps
1. Select the chart body. 2. In the Properties pane, under Target Markers, ensure that the Performance Pattern property is set to On Target. 3. Double-click the Marker Color property, click Lime and click OK 4. Set the Upper Range Skew (%) property to 0%. This option removes the upper tolerance line. In this example, you do not need to see the upper tolerance line because the revenue is always below the planned revenue target. 5. Ensure that the Target Range (%) property is set to 50%.
Chapter 6: Charts This option sets the size of the range around the planned revenue target. The percentage you choose is the percentage of the tolerance measure. In this example, a 50% target range would display 50% of the tolerance calculation you created, which is 50% of 10% of planned revenue. 6. Double-click the Target Color property, click Red and click OK. 7. Double-click the Target Marker Border Color property, click Green and click OK. 8. Run the report.
Steps
1. Under the chart legend select Marker. 2. In the Properties pane, under Text Source, double-click the Text property. 3. Replace the text in the Text dialog box with Planned revenue and click OK. 4. Under the chart legend select Tolerance. 5. In the Properties pane, under Text Source, double-click the Text property. 6. Replace the text in the Text dialog box with Tolerance: 10% of planned revenue and click OK. 7. Under the chart legend, select Range. 8. In the Properties pane, under Text Source, double-click the Text property. 9. Replace the text in the Text dialog box with Planned revenue range = 50% and click OK. 10. Run the report. The report now shows customized legend labels for the markers, tolerances, and ranges as shown below.
Chapter 6: Charts
You can also add range indicator charts (p. 142). You must first create custom diagrams in Metric Studio before you can add them in an IBM Cognos Report Studio report. Impact diagrams are automatically created in the metrics package. For information about creating Metric Studio diagrams, see the Metric Studio User Guide.
Steps
1. In the Insertable Objects pane, on the Toolbox tab to the report. 2. Select the Metric Studio diagram object. User Guide 201 , drag a Metric Studio Diagram object
Chapter 6: Charts 3. In the Properties pane, paste the diagram identifier in the Diagram Identifier box. Tip: Copy the identifier from Metric Studio (Diagrams tab, View the Diagram Identifier button in the Actions column). 4. In the Description box, type a description for the diagram. 5. If you want to make the diagram image accessible, in the Alternate Text box, type a description for the image. For more information, see "Add Alternate Text to Images and Charts" (p. 991).
Steps
1. Open Report Studio with a metrics package. 2. In the Insertable Objects pane, from the Source tab report. , insert a diagram query item to the
3. If you want to make the diagram image accessible, select the image object for the diagram, and in the Alternate Text box, type a description for the image. For more information, see "Add Alternate Text to Images and Charts" (p. 991).
Chapter 7: Maps
IBM Cognos Report Studio provides a set of maps that you can use to represent tabular data in a spatial context. For example, on a map of the world, countries can be colored to represent the level of revenue. Maps are not supported for reports run in Microsoft Excel format.
Region Layer
Point Layer
Display Layer
IBM Cognos Report Studio maps provide the following three types of layers: Region layer Specifies the regions on a map to be differentiated according to values in the data source. For example, to show the revenue level for each country on a map of the world, choose Country as the region layer and then specify that the color of each country is based on the revenue value for that country. Regions can be set up for drilling through to other reports. Point layer Specifies the points to be placed on a map. The color and size of the points is based on the data that you select. For example, you choose to show cities as points on a map and set the color
203
Chapter 7: Maps of each point by revenue and the size of each point by profit. Points can be set up for drilling through to other reports. Display layer You can show or hide items such as grid lines or capital cities. This layer is determined in the map file and not in the data source. Note: If you intend to create CSV or XML output from your map, use only a point layer or a region layer. CSV and XML do not support the simultaneous use of both layers in the same map. Only one layer will be rendered in the output.
footer
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package.
Chapter 7: Maps 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Map and click OK. 4. In the Choose Map dialog box, in the Maps pane, expand the World folder and click World. 5. In the Region layers box, click Countries + Territories. 6. In the Point layers box, click None. 7. In the Display layers box, click Oceans. Tip: You can select or deselect multiple display layers by Ctrl+clicking. Tip: You can return to the Choose Map dialog box at any time by double-clicking the map background. 8. Drag the following data items to the map: Revenue (in Sales fact) to the Color drop zone. Retailer country (in Retailer site) to the Location drop zone.
Chapter 7: Maps
Goal
Hide or show the title, subtitle, footer, or axis title Hide or show the legend Hide or show map labels
Select the region or points layer. Under Chart Labels, set the Values property.
Hide or show the border around the Select the legend icon. Under Box, set the Borders property. legend Change the border around the map object Hide or show the tooltips Note: Some versions of Acrobat Reader do not support tooltips. Change the amount of white space around the map Under Box, set the Padding or Margin property. Under Box, set the Border property.
Change the default colors for all map Under Color & Background, set the Background Color, elements Foreground Color, or Fill Effects property. Change the font and the alignment of text Under Font & Text, set the Font or Relative Alignment property. Tip: The 2005 Quarterly Sales Forecast sample report (p. 588) in the GO Sales (analysis) package includes text alignment. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). Resize the map Change the font for the legend Under Positioning, set the Size & Overflow property. Select the legend icon. Under Font & Text, set the Font property. Select the value in the region or point layer. Under Data, set the Data Format property.
Chapter 7: Maps
Goal
Ignore data with no features Specify the size of points
Add titles, subtitles, footers, or axis Set the Title, Subtitle, Footer, or Axis Title property. titles
Steps
1. Select the map object or map element to change: To change general properties, such as size and color, click the map object. To change specific map elements, such as a layer or title, click the element itself.
Tip: To cancel a selection, press the Esc key. 2. In the Properties pane, set the property value. An ellipsis (...) button indicates that a dialog box provides further options. You may have to scroll to see all the properties.
Steps
1. In the Insertable Objects pane, expand Sales and Marketing (query), Sales (query), and Sales fact. 2. Drag Revenue to the Color drop zone. 3. Expand Employee by organization. 4. Drag Country to the Location drop zone. 5. Run the report.
Chapter 7: Maps
4. In the Dictionary Entry dialog box, click Search. 5. In the Search string box, type a word or part of a word for which to search. For example, if you are searching for United States, type in part or all of the name. 6. In the Search map layer box, click the layer to search and click Search.
Chapter 7: Maps 7. In the Matching features box, click the label to which to match your data source and click OK. 8. In the Alias box, type the name as it appears in the data source and click OK. For example, if the country in your data source is named USA, type USA as the alias. To find out the name for the objects in your data source, run a list report. For example, you can run a list report to show the names of all the countries in your data source. For more information see "Lists" (p. 111).
2. In the Point Layers box, select the layer containing the points to show on the map. For example, on a map of the world, you may want the points to represent cities. 3. In the Insertable Objects pane, drag an object to the Color drop zone in the Point Layer. For example, to have the color of the point based on revenue, drag Revenue from the Insertable Objects pane to the Color drop zone. 4. In the Insertable Objects pane, drag an object to the Size drop zone in the Point Layer.
Chapter 7: Maps
Steps
1. In the report, click the Region Layer or Point Layer. 2. In the Color & Background section of the Properties pane, double-click the Palette property. 3. Click the new button and click Color.
A new color is added to the list of colors. 4. To view the palette colors as a continuous spectrum in which colors blend into one another, click Continuous Colors. 5. With the new color selected, click Color in the right pane of the dialog box and select a color. 6. Change the percentage boundaries for the colors. Tip: To specify absolute values rather than percentages, clear the Percentage check box.
2. In the General section of the Properties pane, set the Legend Title to Show. 3. In the report, double-click the legend title and type the title.
Step to Change the Legend Title for the Region Color, Point Color, or Point Size
By default the legend titles are taken from the object you have selected from the data source. To change a title, do one of the following: In the Insertable Objects pane, drag a text or calculation object to the Color Legend Title drop zone in the Region Layer or Point Layer, or the Size Legend Title drop zone in the Point Layer. Double-click the Color Legend Title or Size Legend Title drop zone, to change from the default legend title, then double-click the drop zone again. In the Text dialog box, type text for the legend title.
Chapter 7: Maps
A note icon with the words New Note appears in the report. 4. Click New Note next to the note icon .
5. In the Text Source section of the Properties pane, double-click the Text property. 6. Type the text to appear in the note and click OK.
2. In the Positioning section of the Properties pane, type values to specify the bottom position, left position, height, and width for the note. The location of the note is defined by the number of pixels. 3. Set the Note Border property to specify a border around the note. 4. Run the report to view the note. If necessary, change the position again.
4. In the Available Components box, click the Source or Data Items tab to select the data item to use. For example, to open the target report when Canada is clicked in the source report, expand Countries and double-click Country.
Chapter 7: Maps 5. In the Expression Definition box, type an operator after the data item or select an operator from the Functions tab and then enter a value. For example, to open the report when Canada is clicked in the source report, the expression would be as follows: [Country]='Canada', where [Country] is the name of the data item in the package. 6. Save the target report.
5. In the Search string box, type the name of the feature to use for the drill-through link. For example, to open a report when you click on Canada in the map, search on all or part of the word Canada. 6. Click Starts with to search for features that start with the search string or click Contains to search for feature names that include the search string. 7. To include a parent layers name in the results of your search, select a layer in the Include parent layer list. For example, if you searched for Oslo and you included the parent layer of Countries + Territories, the search result would be Oslo (Norway). 8. Click Search. 9. Select a feature from Matching features box and click OK 10. In the Drill-Through Definitions dialog box, click the new button. 11. Click the ellipsis (...) button beside the Report box, and select the target report. 12. Run the report. When you click the selected feature in the source report, the target report will open.
Edit a Map
Administrators and modelers use a Microsoft Windows operating system utility named Map Manager to import maps and update labels for maps in Report Studio. For map features such as country and city names, administrators and modelers can define alternative names to provide multilingual versions of text that appears on the map. With IBM Cognos Map Manager you can edit the labels in maps to be consistent with the object names in your database.
Chapter 7: Maps For instructions, see the Map Manager Installation and User Guide.
Additional Maps
IBM Cognos supplies a set of standard maps that can be used directly with IBM Cognos Report Studio as well as IBM Cognos Map Manager. If you already have proprietary geographic data, you can also create your own custom .GST files and then import these into Map Manager. To create custom .GST files, you must use an application that produces MapInfo files, such as MapInfo Professional.
Location Intelligence
Sophisticated mapping functionality, known as location intelligence, can be used for a broad range of business applications that extend the mapping capability of IBM Cognos BI. MapInfo provides solutions that can be directly integrated with IBM Cognos BI. These include the ability to dynamically create geographic filters and custom areas for aggregating data for ad-hoc analysis. Examples of business applications of location intelligence are listed in the following table.
Business application
Target marketing
Benefits
Learn who your best clients are and find more like them. Put stores near your customers and look for gaps in geographical coverage. Reduce the number of trucks you need and make your drivers more efficient. Provide citizens with self-service opportunities. Create balanced sales territories. Plan the development of your community. Avoid costly mistakes by putting cell towers in the right locations. Identify the locations of clients in your service area.
Network optimization and site location analysis Routing and work force optimization
You can contact MapInfo for both data and location intelligence solutions through their Web site: www.mapinfo.com.
Chapter 7: Maps
For tips about building active reports, see the Proven Practices section of the Cognos Customer Center (http://www-01.ibm.com/software/data/cognos/customercenter).
Layout
The following controls are used to build the layout of an active report: Tab controls, which are used for grouping similar report items. Decks of cards, which are used for layering report items. Hiding or showing list columns, which allows users to control the data they see by using check boxes.
215
Chapter 8: Active Reports Interactions with charts For example, clicking a category in a chart filters the data in a list. Radial buttons Check boxes Toggle buttons Push button controls
Data Containers
Data containers, such as lists and crosstabs, are also considered controls in an active report, as you can add interactive behavior to them.
Steps
1. Open the report that you want to convert. 2. From the File menu, click Convert to Active Report. IBM Cognos Active Report menu items, objects, and properties become available in IBM Cognos Report Studio. Objects in the report that are not supported in active reports, such as prompt controls in report pages, are removed.
Steps
1. From the File menu, click Active Report Properties. 2. To specify the title that will appear in the browser window title bar when the report is viewed, under Window Title, type the title that you want. 3. If you want to specify the window title in other languages, do the following: Under Window Title, click the ellipsis button (...).
Select the languages that you want. In the Language column, click one of the languages that you selected. Click the edit button and type the window title for that language.
4. If you want to show an icon beside the window title when a report is viewed, in the Window Icon box, type the URL of the icon that you want. 5. In the Window Startup Size box, choose among the available options to specify the size of the browser window when an active report is viewed. 6. In the Maximum query rows box, specify the maximum number of rows of data that the report can contain. The value that you specify will influence the performance when users interact with the report. 7. To reuse the Window Startup Size and Maximum query rows properties when you create other active reports, select the Use as default for new active reports check box.
Chapter 8: Active Reports changing the name or defining default values. For more information about defining connections between controls, see "Define a Connection Between Controls" (p. 221).
Steps
1. From the Tools menu, click Manage Active Report Variables. 2. To create a new variable, do the following: Under the Active Report Variables box, click the new button the variable. and specify the name of
If you want to specify a default value for the variable, under the Default Variable Values box, click the new button and define the value.
Tip: You can define more than one default value for a variable. Define multiple default values when you want more than one item selected in a control that allows multiple selections, such as a check box group. 3. To modify an existing variable or its values, under Active Report Variables or Default Variable Values, click the edit button and make the changes that you want.
Tip: After you add interactivity to a report, the Variable References box shows how variables are used in the report.
Chapter 8: Active Reports are defined by a data container or data items inserted in the deck, and a data item determines which card appears.
Buttons
Use buttons to add individual push buttons to a report.
Data Containers
Lists, crosstabs, charts, and maps are also controls in an active report, as you can add interactive behavior to them.
2. To add an image to the data in the control, drag the appropriate data item to the Icon box. 3. If the data that will appear in the control depends on other data that you do not want to show, drag the appropriate data item to the Values box. For example, you add Product type to a data list box control and you want to filter the product types that appear in the control based on a product line selected in another control. To filter the data, you must drag Product line to the Values box. Tip: IBM Cognos Report Studio can automatically copy data items from other controls when you create connections between controls. For more information, see "Define a Connection Between Controls" (p. 221). 4. If the control is a data deck and you want to create a default card that will appear when no other card matches the variable value passed to the deck, in the Properties pane, click Yes for the Default Card property. Then click the No Data Contents tab the objects that you want to appear on the default card. for the deck and insert
Tip: The definition icon is visible only when the visual aid Show Active Object Controls is enabled. For more information, see "Visual Aids Button" (p. 78). 2. To add a new object, such as a card in a deck or a button in a button bar, under Data Table, click the new button. 3. In Data Table, define the values that you want to appear in the control. Values are organized by data item. In addition to the default data item (Label) and values provided, you can create your own data items and values. For example, to add an icon to each value, you must create a data item for the icons. To define a new data item, click the new button that you want to create. and type the name of the data item
Click inside each table row and type the name of the value.
Chapter 8: Active Reports To add translations for the values, to support users in multiple languages, click the ellipsis (...) button, choose the languages that you want to support by clicking the add button and type the translated text for each language added. If you created new data items, in the Definition box, click the Label drop-down list and select the data item that you want to use in the control. To add an icon to each value, select the Icon check box, click the drop-down list, and select the data item that contains the icons that you want to use. ,
4. If the control is a deck, click the left and right arrows to navigate to each card of the deck and insert the objects that you want to appear on each card. To create a default card that will appear when no other card matches the variable value passed to the deck, in the Properties pane, click Yes for the Default Card property. Then click the No Data Contents tab default card. for the deck and insert the objects that you want to appear on the
Steps
1. Click the interactive behavior icon of a control that you added to the report.
Tip: The interactive behavior icon is visible only when the visual aid Show Active Object Controls is enabled. For more information, see "Visual Aids Button" (p. 78). 2. In the Control drop-down list, select the control for which you want to define a connection. 3. Click Create a New Connection. 4. In the top left drop-down list, select the control that you want to specify as the source. 5. In the top right drop-down list, select the control that you want to specify as the target. 6. Click the Connection Method drop-down list between the source and target controls and specify the type of relationship that you want to define between the two controls: To filter data in the target control based on what will be selected in the source control, select Filter.
Chapter 8: Active Reports To select a target control based on what will be selected in the source control, click Select.
7. In the Active Report Variable section, choose to create a new variable for the connection or use an existing variable. Tip: If you create a new variable, you can change the default name generated by Report Studio. 8. In the Data Item drop-down list at the bottom left of the dialog box, select the data item that will drive the behavior of the target control. 9. In the Data Item drop-down list at the bottom right of the dialog box, select the item that will determine what appears in the target control. If the data item that you want to use is not in the query of the target control, select Copy Data Item from Source to copy the source data item specified in the previous step to the target control query. If the target control is a data container, the copied data item appears shaded in the container to indicate that the column visibility property for the item is set to Hidden. For more information about the column visibility property, see "Show or Hide a Column or Row" (p. 225). 10. Click Connect. 11. To create or manage other active report variables, click Manage Active Report Variables. When a connection is defined, Report Studio creates the appropriate conditions for the selection behavior and reaction behavior of the source and target controls. Tip: The interactive behavior icon of a control changes to indicate that a connection was defined.
Steps
1. Click the interactive behavior icon of the source control.
Chapter 8: Active Reports Tip: The interactive behavior icon is visible only when the visual aid Show Active Object Controls is enabled. For more information, see "Visual Aids Button" (p. 78). 2. In the Behavior on Select box, to the right of Set Variable Values, click the edit button .
3. To create or manage active report variables, click Manage Active Report Variables. For more information about creating or managing active report variables, see "Create and Manage Active Report Variables" (p. 217). 4. For each active report variable that you want to set as part of the selection behavior of the control, click the Value drop-down list and select one of the following choices: If you want to clear the current value of the variable, click Set to Empty. Tip: Clearing the current value of a variable is useful when you have cascading controls. For example, if the parent control is reset to a default value, you want to reset the child control to a default value as well. If you want to specify your own value, click Type in a value and type the value that you want to use. If you want the variable values to be driven by a data item in the report, click the data item that you want to use. If you do not want the variable to be used for the control, click Do not set.
Chapter 8: Active Reports In addition to the above behaviors, you can specify the item to appear when nothing is selected in a list control, hide or show a column, and whether to allow data to be sorted in a list. For more information about specifying the item to appear when nothing is selected in a list control, see "Set the No Value List Item" (p. 225). For more information about hiding or showing a column, see "Show or Hide a Column or Row" (p. 225). For more information about sorting data in a list, see "Sort Data in a List" (p. 226).
Steps
1. Click the interactive behavior icon of the control.
2. In the Reaction Behavior box, to the right of the reaction behavior that you want to specify, click the edit button .
If a condition has not yet been defined, two dialog boxes appear. The second dialog box prompts you to define the condition expression that you want to use to specify the reaction behavior. 3. In the Item box on the left, define the left side of the condition expression. To use a data item, click the Data Item radio button and then click the item that you want to use. The data items that are available in the drop-down list depend on the data items that you inserted into the control. To use a static item, click the Value radio button and type the value that you want to use. The value must be defined as a value of the selected active report variable in the next step. If you want to set the value of an active report variable to null, click the Empty Variable radio button.
4. In the Item box on the right, define the right side of the condition expression. To use a value in an active report variable, click the Active Report Variable radio button and then click the variable that you want to use. The variables that are available in the drop-down list depend on the variables that you defined in the report. To use a static item, click the Value radio button and type the value that you want to use. To use null as the value, click the Empty Data Item radio button. Use null as the value to specify the reaction behavior when no data exists for the value selected in the source control. 5. If you want to apply the condition when no item is selected in the source control, clear the Drop this condition if the variable is empty check box. Clearing the check box can improve performance and prompt users to perform an action. For example, a report contains a list with many rows of data, and the list is filtered by another control. When the check box is cleared, no data will appear in the list until an item is selected in the other control.
Steps
1. Select the control. 2. In the Properties pane, for the No Value List Item property, click Show. A text item representing the no value list item appears in the control. 3. In the Properties pane, double-click the Label property. 4. In the Default text box, type the name of the no value list item. 5. To specify the text for other languages, do the following: Click the add button .
Select the languages that you want. In the Language column, click one of the languages that you selected. Click the edit button and type the name of the no value list item for that language.
6. In the Properties pane, click the Position in List property and specify where you want the no value list item to appear in the control.
Steps
1. Click the title of the column or row that you want to show or hide. 2. If the data container is a crosstab, in the Properties pane, click the Visibility property and click Yes or No. 3. If the data container is a list, in the Properties pane, double-click the Column Visibility property. 4. To make the list column visible when the report is viewed, click the Visible radio button. 5. To hide the list column when the report is viewed, click the Hidden radio button. 6. To make the list column visible based on a condition, click the Visible based on condition radio button, click the edit condition button , and specify the condition.
In the left Item box, type the value that you want to use for the condition.
Chapter 8: Active Reports If you want to use null as the value for the condition, click the Empty Variable radio button instead. Click the Operator drop-down list and select the operator that you want to use for the condition. In the right Item box, select the active report variable that you want to use for the condition. If you want to apply the condition when no item is selected in a control that is connected to the list, clear the Drop this condition if the variable is empty check box.
Steps
1. Select the column that you want users to be able to sort. 2. In the Properties pane, for the Allow Sorting property, click Yes.
Steps
1. In the list or crosstab, click the column or row for which you want to add an output summary. 2. In the toolbar, click the summarize button and then, under Summarize in Output, choose the summary that you want to add the active report output.
Chapter 8: Active Reports To view an active report in MHT format in Mozilla Firefox, you must first download an UnMHT add-on.
Steps
1. To show the state of active report variables when the report is viewed, from the Run menu, click Run Options, and select the Enable right-click debug menu check box. 2. To run a report, from the Run menu, click Run Active Report. 3. To save a report, from the Run menu, click Download Active Report, and when prompted, choose to save the report as an MHT file. When running a report with the Enable right-click debug menu check box selected, right-clicking in the report output window allows you to choose to view the variables in the report and to clear the variable values.
Example - Create an Active Report Showing Revenue Data for Core Products
You are a report author at The Great Outdoors Company, which sells sporting equipment. You are requested to create an active report showing revenue data for the core products Camping Equipment and Golf Equipment. The revenue data is specific to countries in the Americas. The report will allow users to filter data by product or by country. To create this report, you will need to add two data drop-down list controls and a list container. The first data drop-down list control will contain the core products that users can select. The second data drop-down list control will contain countries that users can select. The list will show revenue data for each core product and country. When users click different products or countries, the data in the list will be filtered based on the selections made.
6. Clear the Maximize width check box and then click OK to create a table with two columns and one row. 7. Drag the Data Drop-Down List object to each cell in the table.
Chapter 8: Active Reports 8. Drag the List object to the report so that it appears under the table.
Expand the Sales and Marketing (analysis) folder and the Sales namespace. Expand the Products dimension and then the Products hierarchy. Drag Product line to the Data Items area.
3. Click Product line and in the Properties pane, do the following: Click the Name property, delete the existing name, and type Core products Double-click the Set Definition property. Click the new button and then click Exclude.
In the Available members box, expand Sales and Marketing (analysis), Sales, and Products. Drag the Mountaineering Equipment, Personal Accessories, and Outdoor Protection members to the Members box.
The Core products member set now contains only Camping Equipment and Golf Equipment. 4. Click OK twice. 5. Pause the pointer over the page explorer button and click Page1. , drag Core products from Query1 to
6. In the Insertable Objects pane, on the Data Items tab the drop-down list box in the control.
7. Click the control and in the Properties pane, for the No Value List Item property, click Show. The Properties pane for the no value list item property appears. 8. Double-click the Label property, type Core products in the Default text box, and click OK.
Chapter 8: Active Reports Tip: This expression returns the children of the Americas member. The MUN for Americas is used instead of the member name. 4. In the Properties pane, click the Name property, delete the name and type Countries 5. Pause the pointer over the page explorer button and click Page1. , drag Countries from Query2 to the
6. In the Insertable Objects pane, on the Data Items tab drop-down list box in the control.
7. Click the control and in the Properties pane, for the No Value List Item property, click Show. The Properties pane for the no value list item appears. 8. Double-click the Label property, type Countries in the Default text box, and click OK.
7. In the Insertable Objects pane, on the Data Items tab from Query3 to the list. 8. In the Insertable Objects pane, on the Source tab
, do the following:
Expand the Products dimension and then the Products hierarchy. Drag Product type to the list, inserting it between Core products and Countries. Expand Sales fact. Drag Revenue and Planned revenue to the list, to the right of Countries.
Chapter 8: Active Reports In the Data Item drop-down list for both controls, Core products is selected.
5. In the Control drop-down list, click Data Drop-Down List2. 6. Click Create a New Connection. 7. Click the upper right drop-down list and click List1. 8. Ensure that the following information appears in the dialog box and click Connect. In the Connection Method drop-down list, Filter is selected. In the Data Item drop-down list for both controls, Countries is selected.
9. In the Control drop-down list, click Data Drop-Down List1. 10. In the Behavior on Select section, click the edit button .
11. Set Countries Variable 1 to Set to Empty and click OK twice. When users select a different product in the first data drop-down list control, the second data drop-down list value will reset to the no value list item.
Steps to Specify Default Values for the Data Drop-Down List Controls
1. From the Tools menu, click Manage Active Report Variables. 2. In the Active Report Variables box, ensure that Core products Variable 1 is selected. 3. Under the Default Variable Values box, click the new button and click OK. 4. In the Active Report Variables box, click Countries Variable 1. 5. Under the Default Variable Values box, click the new button OK twice. When users either run the report from IBM Cognos Connection or open the report in MHT format, the following data appears in the list. Users can click different products or countries and see the revenue data that they want to see in the list. , type United States, and click , type Camping Equipment,
Example - Create an Active Report Showing Revenue Data for New Order Methods
You are a report author at The Great Outdoors Company, which sells sporting equipment. You are requested to create an active report showing revenue data for the new order methods Web, Email, and Telephone. The report will allow users to filter data by order method. To create this report, you will need to add a data check box group control and a list container. The data check box group control will contain the new order methods that users can select. When the report is run, users can select one or more order methods, and the data in the list container will be filtered based on the selections made.
6. Drag the Block object under the data check box group control. 7. Drag the List object to the report so that it appears under the block.
Expand the Sales and Marketing (analysis) folder and the Sales namespace. Expand the Order method dimension and then the Order method hierarchy. Drag Order method type to the Data Items area.
3. Click Order method type and in the Properties pane, do the following: Click the Name property, delete the existing name and type New order methods Double-click the Set Definition property. Click the new button and then click Exclude.
Chapter 8: Active Reports In the Available members box, expand Sales and Marketing (analysis), Sales, and Order method. Drag the Fax, Mail, Sales visit, and Special members to the Members box.
The New order methods member set now contains only Telephone, E-mail, and Web. 4. Click OK twice. 5. Pause the pointer over the page explorer button 6. In the Insertable Objects pane, on the Data Items tab to the data check box group control. and click Page1. , drag New order methods from Query1
, do the following:
Expand the Time dimension and then the Time hierarchy. Drag Year to the list, and drop it to the left of New order methods. Expand Sales fact. Drag Revenue and Gross profit to the list, and drop them to the right of New order methods.
Chapter 8: Active Reports 4. Click the Year column title and in the Properties pane, for the Allow Sorting property, click Yes. 5. Repeat step 4 for the New order methods column.
Steps to Specify Default Values for the Data Check Box Group Control
1. From the Tools menu, click Manage Active Report Variables. 2. In the Active Report Variables box, ensure that New order methods Variable 1 is selected. 3. Under the Default Variable Values, click the new button 4. Repeat step 3 to create a second default value, E-mail. 5. Click OK. When users either run the report from IBM Cognos Connection or open the report in MHT format, Telephone and E-mail are selected in the data check box group control and the list shows data for these two order methods. Users can select or clear one or more check boxes and see the revenue data that they want to see in the list. In addition, they can click the Year or New order methods column title to sort the data in the list. , type Telephone, and click OK.
Distribution of Data
You can use the following to explore the distribution, variability, and percentile information of your data. Descriptive statistics Histograms Boxplots Q-Q Plots
To see how you can view data to learn more about your customers, see "Example: Create a Report Showing Descriptive Statistics" (p. 245).
To see how you can test a hypothesis, see "Example: Using a One-Sample t-Test to Compare Household Income Against a Hypothetical Value " (p. 257).
235
To see how you can help ensure the quality of a manufacturing process, see "Example: Create a Report Showing Shampoo Manufacturing Quality Control" (p. 295). The statistical object you need depends on your data and what business question you want to answer.
Standard Deviation
Standard deviation, often denoted as a sigma or small Greek s, is a measure of variability that describes how data points vary from the mean. The portion of a distribution lying between plus and minus one standard deviation from the mean contains approximately 68% of cases, and the portion lying between plus and minus 1.96 standard deviations contains approximately 95% of cases. That is, if a variable is normally distributed, you can expect 95% of the cases to be within 2 standard deviations from the mean.
Standard Error
The standard error is the estimated standard deviation of a sample statistic. For example, the standard error of a sample mean is an estimate of the likely standard deviation that the means from an infinite number of samples would have. The standard error gives an indication of the accuracy of the sample mean as an estimate of the population mean. The smaller the standard error, the less the spread and the more likely it is that any sample mean is close to the population mean, in other words, that there is a 68% chance that the true population mean is within + or - 1 standard error of the sample mean.
Confidence Intervals
Because of random errors in samples, information from a sample contains a level of uncertainty. A confidence interval gives an estimated range of values as a measure of this uncertainty. The upper and lower bounds refer to the end points of the confidence interval. For example, a confidence interval of 95% means that if you repeat a test multiple times, 95% of the time the mean - if that is what you are comparing - will be within the upper and lower bound of the confidence interval.
Levels of Measurement
Data can be nominal, ordinal, interval, or ratio. Nominal data refers to categorically discrete data, such as customer names or product types. Ordinal data refers to quantities that have a natural ordering, such as a rating scale from 1 to 5. Interval data refers to data that you can measure along a scale with equal intervals, such as temperature and dates. The zero is arbitrary because 20F is not twice as hot as 10F. Ratio data is similar to interval data that you can measure along a scale with equal intervals, but ratio data has a natural zero. For example, height, weight, and so on, have a natural zero at no height or no weight.
The power of a test is the probability of correctly rejecting a null hypothesis when the null hypothesis is false. This probability is inversely related to the probability of making a type II error, not rejecting the null hypothesis when it is false. For example, ANOVA has higher statistical power. There is less chance of a type II error, thinking there is no relationship when there is.
Significance in Statistics
IBM Cognos Statistics uses significance levels (or p-values) with many contexts. The statistical significance of a result is the probability that the observed relationship (between variables) or difference (between means) in a sample would occur by pure chance if no such relationship or differences existed in the population from which the sample was drawn. Significance is expressed as a decimal. A significant result is usually considered to exist where the p-value (or probability) is <0.05, meaning that the results obtained would occur by chance alone less than 5% or the time.
Degrees of Freedom
Degrees of freedom refers to the number of independent observations in a set of data that are free to vary if a parameter, such as the mean, is to remain constant. When estimating a mean score from a sample, the number of independent observations is equal to the sample size minus one. You describe a sample size of 50 as having 49 (that is, 50 - 1) degrees of freedom.
Customer ID
1 2 3 4 5 6 7 8 9 10
31 44 42 missing 35 56 36 34 120 50
Listwise deletion removes customers 4, 5, and 8 before performing any further analysis. Pairwise deletion ignores records only as needed. For example, in calculating the means variables in the table above, pairwise deletion removes customer 8 from the calculation for the mean of Age in years, but not from any other calculation. Likewise, customer 5 is removed from the count of Previously defaulted customers, but not from any other calculation. There is another alternative when using linear regression. The Substitute with mean option uses all cases, but substitutes missing observations with the mean of the variable.
Chapter 9: Statistical Analysis For an example of how to insert data from a dimensional data source, see "Example: Create A Profit Analysis Using Boxplots" (p. 251).
Descriptive Statistics
Descriptive statistics quantitatively summarize a data set. For an overall sense of the data being analyzed, you can show descriptive statistics along with more formal analyses. You can use descriptive statistics to look at averages, such as the mean or median to obtain information, such as the mean for groups of interest, that you might need to interpret other statistical tests to provide graphical representations of data, such as histograms and boxplots
You can also place the measures adjacent to each other to create multiple measure statistics. The table below shows the descriptive statistics for three measures.
You can also create a table that displays summarized statistics for cases grouped by categorical data based on a single measure, such as household income in thousands. The table below shows the mean household income for customers grouped by education level.
Statistic
Mean
Description
The arithmetic mean is the sum of samples divided by the number of cases. Note: Outlying values can affect the mean.
Harmonic mean
The total number of measurements divided by the sum or the reciprocals of the measurements. It is useful when averaging measurements that are rates or ratios, such as price/earnings ratios. The nth root of the product of the sample values, where n represents the number of cases. A common use for the geometric mean is in averaging rates of return on investments. For example, averaging the rate of return on an investment that earns 10% the first year, 50% the second year, and 30% the third year.
Geometric mean
Median
Half of the cases fall above the median and half of the cases fall below the median. If there is an even number of cases, the median is the average of the two middle cases when they are sorted in ascending or descending order. The median is less sensitive to outlying values than the mean.
Statistic
Count (N) Sum
Description
The number of cases, observations, or records. The total of the sample values, across all cases with nonmissing values.
Measures of Dispersion
Measures of dispersion describe the degree of spread around the central tendency measure, that is, the extent to which observations cluster within the distribution. Measures of dispersion feature prominently in calculating control charts. Measures of dispersion include simple measures such as maximum, minimum, and range; common statistical measures such as standard deviation and variance; and measures such as the interquartile range (IQR). For information about the interquartile range, see "Boxplots" (p. 248).
Statistic
Standard deviation
Description
A measure of dispersion around the mean. In a normal distribution, 68% of cases fall within one standard deviation of the mean and 95% of cases fall within two standard deviations.
Standard error
A measure of how much the value of the mean may vary from sample to sample taken from the same distribution. The smallest value of a numeric variable. The largest value of a numeric variable. The difference between the largest and smallest values of a numeric variable (the maximum minus the minimum).
Measures of Distribution
Measures of distribution, such as kurtosis and skewness, characterize the shape and symmetry of the distribution. Kurtosis is a measure of the extent to which observations cluster around a central point. For the normal distribution, the value of the kurtosis statistic is zero.
+ kurtosis
- kurtosis
Positive kurtosis indicates that the observations show greater peakedness and longer tails than those in the normal distribution, and negative kurtosis indicates that the observations show less peakedness and have shorter tails. Skewness is a measure of the asymmetry of a distribution. The normal distribution is symmetric and has a skewness value of 0.
A distribution with a significant positive skewness has a long right tail. A distribution with a significant negative skewness has a long left tail.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects. For information about working with dimensional data, see "Building Cases in IBM Cognos Statistics" (p. 240).
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistic dialog box, expand Descriptive Statistics, and click Basic Descriptives Statistics. Click OK.
Chapter 9: Statistical Analysis 4. Select whether to create a table of standard descriptive statistics or descriptive statistics grouped by categorical variables. Click OK. 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag one or more measure items to the Analysis variables drop zone. Click Next. If you chose to summarize statistics grouped by categorical data, drag a non- measure item to the Grouping variables drop zone. Click Next. 6. Drag an item to the Cases variable drop zone to define a set of cases. Click Next. 7. Select the descriptive statistics that you need. Click Finish. 8. Run the report. A table appears showing the selected descriptive statistics. See the following example for a simple demonstration.
Steps
1. Open the BANKLOAN_CS package in IBM Cognos Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Descriptive Statistics, click Basic Descriptives Statistics, and then click OK. 5. Select Summary descriptive statistics. Click OK. 6. In the statistical object wizard, expand BANKLOAN_CS in the metadata tree. Drag the items for age, household income, and credit card debt to the Analysis variables drop zone. Click Next. Drag ID to the Cases variable drop zone to define a set of cases. Click Next.
7. Select the descriptive statistics that you need. Click Finish. 8. Run the report. A table appears showing descriptive statistics for the bank customers.
Histograms
Histograms display the range of variable values in intervals of equal length. You can use a histogram to graphically summarize the frequency of observations using bins.
Chapter 9: Statistical Analysis For information about how you can create a histogram and modify its properties, see "Create a Histogram" (p. 247). For example, a bank examines the credit card debt of its clients. Each bin represents the number of clients that have credit card debt of zero to one thousand dollars, one thousand to two thousand dollars, and so on. Frequency refers to the number of clients in each specific bin. For example, a little over 800 clients have a credit card debt of one thousand dollars or less. You can see by the count (N) that the results represent 1,500 clients. The mean credit card debt is 1,930 dollars. This histogram shows the number of cases per unit interval: the height of each bar is equal to the number of people who fall into that category.
Create a Histogram
You can create a histogram to graphically summarize and display the distribution of a set of data. Histograms use bins to group individual data values into one instance of a graphic element, such as a bar. The bar height indicates the number of cases in the bin. By default, the histogram divides the values of the variable into several evenly spaced intervals to size the bins. You can change the binning method to use a specified number of bins a specified number of units per bin
You can also modify the bar color, style, and chart size from the Properties pane.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects. If you are working with dimensional data, see "Building Cases in IBM Cognos Statistics" (p. 240).
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistic dialog box, expand Descriptive Statistics, click Histogram. Click OK. 4. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a measure item to the Analysis Variable drop zone. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
5. Specify any output options, such as titles or footnotes. Click Finish. You also have the option to change the histogram properties. 6. In the work area, click the histogram to display its properties. 7. On the Properties pane, under General Settings, you can specify whether to display a curve binning method bar style bar color chart size
Boxplots
A boxplot (also known as a box-and-whisker chart) is a convenient way to show groups of numerical data, such as minimum and maximum values upper and lower quartiles median values outlying and extreme values
The spacings between the different parts of the boxplot indicate the degree of dispersion (spread) and skewness in the data and identify outliers.
Chapter 9: Statistical Analysis Here are the different parts of the boxplot:
extreme value
median
The line in the middle of the boxes is the median. Half of the cases have a value greater than the median, and half have a value lower. Like the mean, the median is a measure of central tendency. Unlike the mean, it is less influenced by cases with extreme values. The bottom of the box indicates the 25th percentile. Twenty-five percent of cases have values below the 25th percentile. The top of the box represents the 75th percentile. Twenty-five percent of case have values above the 75th percentile. This means that 50% of the cases lie within the box. The interquartile range (IQR) is the difference between the 75th and 25th percentiles and corresponds to the length of the box.
The T-bars that extend from the boxes are named inner fences or whiskers. These extend to the minimum and maximum value that is equal to or less than 1.5 times the IQR from the end of a box. If the data is distributed normally, approximately 95% of the data is expected to lie between the inner fences.
A boxplot may contain outlying values marked as circles, and extreme values marked as asterisks. Outlying values are values between 1.5 IQRs and 3 IQRs from the end of a box. Extreme values are more than 3 IQRs from the end of a box. Note: Outlying values can cause the mean to be different than the median.
Create a Boxplot
You can create a a boxplot to show the median, quartiles, and outlier and extreme values for a variable. The interquartile range (IQR) is the difference between the 75th and 25th percentiles and corresponds to the length of the box. You can display a boxplot for each category of a categorical variable, or you can leave the Grouping variable drop zone empty to display a single boxplot that summarizes all cases in the data. Tip: The Income Growth report (p. 592) contains a boxplot. For more information about IBM Cognos Statistics samples, see "Sample Reports and Packages" (p. 569).
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects. For information about cases, see "Building Cases in IBM Cognos Statistics" (p. 240).
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistic dialog box, expand Descriptive Statistics and click Boxplot. Click OK. 4. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a measure item to the Analysis variable drop zone. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next. If you want to create boxplots for a grouped categorical variable, drag a non-measure item to the Grouping variable drop zone. Click Next. 5. Specify how to handle missing values and whether to exclude or include data when the group identifier is missing. Click Next. 6. Specify any output options, such as titles or footnotes. Click Finish. You also have the option to change the boxplot properties. 7. In the work area, click the boxplot to display its properties. 8. On the Properties pane, under General Settings, you can specify bar color chart size
Steps
1. Open the Sales and Marketing cube in Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistic dialog box, expand Descriptive Statistics, and click Boxplot. Click OK. 5. In the statistical object wizard, expand Sales and Marketing in the metadata tree and drag items to the following drop zones: Expand the Measures folder and drag the gross profit item to the Analysis variable drop zone. Click Next. Because you are using a dimensional data source, you must insert the children of the members for the next two items by using the Insert children button. These buttons are available when you use a dimensional data source.
Click the Insert children button. Expand the Time dimension. Under the Members folder, click the Time level. Insert the children of the Time member in the Cases variable drop zone to define a set of cases. Click Next.
Click the Insert children button. Expand the Retailer dimension. Under the Members folder, click the Retailer member. Insert the children of the Retailers level in the Grouping variable drop zone. Click Finish.
6. Run the report. This boxplot shows the gross profit statistics for various markets.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics and then click OK. 3. In the Select Statistic dialog box, expand Descriptive Statistics, click Q-Q Plot, and then click OK. 4. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a measure item to the Analysis variable drop zone. Click Next.
Chapter 9: Statistical Analysis Drag an item to the Cases drop zone to define a set of cases. Click Next.
5. Specify any output options. Click Next. 6. Specify any transformation options, proportional estimate options, and rank options. Click Finish. 7. Run the report. By default, the results include a Q-Q plot a detrended Q-Q plot a table of estimated distribution parameters
Q-Q plots produce a scatterplot with the quantiles of the variable on the horizontal axis and the expected normal distribution on the vertical axis. A plot of variables against the expected normal variables reveals a straight line. Curvature of the points indicates departures from normality. Outliers appear as points that appear far from the overall pattern of points.
The detrended Q-Q plot below is another way of looking at the data. This plot, based on the same data as the Q-Q plot above, displays the deviation of each point in the normal probability plot from the straight line corresponding to the normal. The vertical axis represents the difference between each point in the normal probability plot and the straight line representing the perfect normal. The horizontal axis represents the observed value. This visually clarifies the areas where there is greatest deviation from the normal. If the data in the sample were normal, all the data points in the detrended normal plot would appear near the horizontal line centered at 0
Customize Output
You can specify to show the following: a case processing summary table an estimated distribution parameters table a Q-Q plot a detrended Q-Q plot
Means Comparison
You can compare the means of two or more groups to determine if the difference between the groups is statistically significant, that is, if the difference is due to something other than random chance. You use the t-test to test the differences between a group and a hypothetical test value. If the test involves more than one group, you can use analysis of variance (ANOVA). These tests use parametric data, that is, numeric data from a normal distribution. For nonparametric data, such as nominal classifications or data that is not normally distributed, you use nonparametric tests.
t-Tests
The one-sample t-test tests the probability that the difference between the sample mean and a test value is due to chance. Probabilities of .05 or less are typically considered significant.
Grouped or Ungrouped
You can create a t-test to compare means based on all the cases. Shown below is a typical t-test report, showing tables for descriptive statistics and t-test statistics.
test value
You can create t-tests that give results for cases grouped by categorical data for a single measure, such as household income in thousands. The example below shows the t-test results of mean household income for customers grouped by education level.
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistics dialog box, expand Means Comparison and click One-Sample t-Test. Click OK. 4. Select whether to create a summary t-test or a t-test grouped by categorical variables. Click OK. 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a measure item to the Analysis variables drop zone. Click Next. If you chose to summarize statistics for cases grouped by categorical data, drag a single measure to the drop zone.
Chapter 9: Statistical Analysis Drag an item to the Cases variable drop zone. Click Next. If you chose to summarize statistics for cases grouped by categorical data, you must drag one or more categorical items to the Grouping variables drop zone. Click Next. 6. Specify a numeric test value against which to compare. You must enter the test value in the same format that the variable uses. 7. Specify any other output options. You can: change the confidence interval specify how to treat missing values choose whether to show the one-sample statistics table
8. Click Finish. 9. Run the report. You see two tables: A table showing the sample count, mean, standard deviation, and standard error of the mean. A table showing the t-value, degrees of freedom, significance, mean difference between the data value and the test value, and a confidence interval for this difference.
The p-value tells you if there is a significant difference between the test value and the sample mean. The t-statistic represents the number of standard errors that separate the sample mean from your hypothesized test value. See the following example for a demonstration.
Example: Using a One-Sample t-Test to Compare Household Income Against a Hypothetical Value
You are a report author for a bank. Your research tells you that the mean national household income is $50,740. The mean household income of the banks customers is above the national average. You want to know if the difference in mean household incomes is genuinely higher than average, or if this the result of chance. The null hypothesis is that there is no difference between the mean household income of the banks customers and the hypothesized national mean household income. The alternative hypothesis is that there is a significant difference between the two. Note: You must have IBM Cognos Statistics installed and configured to create this example.
Steps
1. Open the BANKLOAN_CS package in IBM Cognos Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK.
Chapter 9: Statistical Analysis 4. In the Select Statistic dialog box, expand Means Comparison, click One-Sample t-Test, and then click OK. 5. Select Summary One-Sample t-Test. Click OK. 6. In the statistical object wizard, expand the BANKLOAN_CS package if necessary and drag items to the following drop zones: Drag the Household income in thousands item to the Analysis variables drop zone. Click Next. Drag the Customer ID item to the Cases variable drop zone to define a set of cases and click Next. 7. Enter 50.74 in Test value. Leave the Confidence interval, Missing values, and Customize output at the default settings. 8. Click Finish. 9. Run the report. You see a statistics table and a t-test table, as shown below.
The statistic of interest is the p-value for significance. This value is .000, rounded to three decimal places. Because this value is <0.05, you reject the null hypothesis. You can state that the mean household income of bank customers is significantly different from the national average of $50,740. The t-statistic, 5.105, is the number of standard errors (1.733) that separate the sample mean ($59,590) from the hypothesized value ($50,740). The Mean Difference is obtained by subtracting the test value (50.74 in this example) from the sample mean. The 95% confidence interval of the difference tells you that, repeated multiple times, there is a 95% chance that the mean difference between household income of your customers and that of the national average will lie between $5,450 and $12,250.
Chapter 9: Statistical Analysis ANOVA assumes that there is homogeneity of variance, that is, that the variance within each of the groups is equal. You can check for homogeneity of variance by using the Levenes test. ANOVA does not tell you which groups are different from the others, only whether a significant difference exists. After finding a significant difference, you can do post hoc tests on the independent variable to examine the differences between groups. Tip: The DVD Score report (p. 592) uses one-way ANOVA. For more information about IBM Cognos Statistics samples, see "Sample Reports and Packages" (p. 569).
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistics dialog box, expand Means Comparison and click One-Way ANOVA. Click OK. 4. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: 5. Drag one or more items to the Dependent variables drop zone. Click Next. Drag a nonmeasure item to the Independent variable drop zone. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
6. Optionally, you can specify contrasts, how to treat missing values, and which output options to display. Click Next. 7. Specify a significance level and any post hoc tests. Click Finish. 8. Run the report. By default, you see: A table of ANOVA statistics The statistic of interest is the significance. A chart of the observed means
You also see any other selected output options. See the following example for a demonstration.
Example: Using a One-Way ANOVA to Compare Mean Household Income Between Groups by Educational Level
You are a report author for a bank. You want to know how the mean household income of your customers varies by education level. What is the probability that the differences occur by random chance? Note: You must have IBM Cognos Statistics installed and configured to create this example.
Steps
1. Open the BANKLOAN_CS package in Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistic dialog box, expand Means Comparison and click One-Way ANOVA. Click OK. 5. In the statistical object wizard, expand the BANKLOAN_CS package and drag items to the following drop zones: Drag the Household income in thousands item to the Dependent variables drop zone. Click Next. Drag the Level of education item to the Independent variable drop zone. Click Next. Drag the Customer ID item to the Cases variable drop zone to define a set of cases and click Next. 6. Leave the default output options. Click Next. 7. Select the post hoc test Tukey. 8. Click Finish. 9. Run the report. You see an ANOVA table as shown below, the results of the Tukey post hoc test, and a chart of means. Look at the ANOVA table below.
Chapter 9: Statistical Analysis The statistic of interest is the significance. The p-value is .000, rounded to three decimal places. Because the significance <.05, you reject the null hypothesis. You conclude that there is a significant difference between the household income of customers with different levels of education. This does not tell you which level of education might account for the difference. Look at the post hoc test results shown below. The asterisk (*) marks which differences are significant. You can see that the college degree and post-undergraduate degree groups are associated with higher household income more significantly than the other levels of education.
You also see a table for homogeneous subsets as shown below. In each subset column, only the means of the variables in that subset are shown. The subsets can overlap, that is, a group can belong to more than one subset.
ANOVA Options
Aside from specifying how to treat missing values and whether to show a table of descriptive statistics for the independent variable, you can specify the following options in your report.
Contrasts
If the groups you compare are defined along a continuum, you can use polynomial contrasts to test for a trend in the means. The first degree of freedom contains the linear effect across the levels of the factor, the second degree of freedom contains the quadratic effect, and so on. For example, as a factor you have three age groups. You can test for a linear and a quadratic trend across the age groups. The linear contrast compares the lowest age with the highest age group, and the quadratic contrast compares the middle group with the lowest and highest age groups together.
Description
The LSD (least significant difference) method applies standard ttests to all possible pairs of group means.
Description
SNK, REGWF, REGWQ, The SNK (Student-Newman-Keuls), REGWF (Ryan-Einot-Gabrieland Duncan Welsh F), REGWQ (Ryan-Einot-Gabriel-Welsh Q), and Duncan methods involve sequential testing. After ordering the group means from lowest to highest, the two most extreme means are tested for a significant difference using a critical value that is adjusted for the fact that these are the extremes from a larger set of means. If these means are found to not be significantly different, the testing stops. If they are different, then the testing continues with the next most extreme set, and so on. Bonferroni, Sidak The Bonferroni test (also called the Dunn procedure) and Sidak test (also called Dunn-Sidak) are performed at a stringent significance level to ensure that the family-wise (that is, applying to the set of tests) false-positive rate does not exceed the specified value. The Tukey (b) test is a compromise test that combines the Tukey test (see next test) and the SNK criterion to produce a test result that falls between the two. Tukeys HSD (Honestly Significant Difference), also called Tukey HSD, WSD, or the Tukey(a) test, controls the false-positive rate family-wise. This means, if you are testing at the .05 level, that when performing all pairwise comparisons the probability of obtaining one or more false positives is .05. Scheffe Scheffes method also controls the family-wise error rate. It adjusts not only for the pairwise comparisons, but also for any possible comparison that you specify.
Tukey (b)
Tukey
Hochbergs GT2, Gabriel Most post hoc procedures mentioned above (excepting LSD, Bonferroni, and Sidak tests) are derived by assuming equal group sample sizes in addition to homogeneity of variance and normality of error. When the subgroup sizes are unequal, Report Studio substitutes a single value (the harmonic mean) for the sample size. Hochbergs GT2 and Gabriels post hoc test explicitly allow for unequal sample sizes.
Description
The Waller-Duncan test takes a Bayesian approach that adjusts the criterion value based on the size of the overall F statistic in order to be sensitive to the types of group differences associated with the F statistic (for example, large or small). A pairwise multiple comparison t -test that compares a set of treatments against a single control mean. You can choose the first category or the last category as the default control category. 2-sided tests that the mean at any level (except the control category) of the factor is not equal to that of the control category. < Control tests if the mean at any level of the factor is smaller than that of the control category. > Control tests if the mean at any level of the factor is greater than that of the control category.
Dunnett
These post hoc tests adjust for unequal variances and sample sizes in the groups.
Description
The Games-Howell test is designed for unequal variances and unequal sample sizes, and is based on the q-statistic distribution. Tamhane's T2 is a conservative test. It is considered more appropriate than Tukey's HSD when cell sizes are unequal, or when homogeneity of variances is violated.
Tamhanes T2
Dunnetts T3, Dunnetts Use these tests instead of Games-Howell when it is essential to C maintain control over the significance level across multiple tests.
Nonparametric Tests
You use nonparametric tests to compare frequencies in categorical data, such as payment methods or gender. You test for significant differences between observed frequencies and expected frequencies in data that does not have a normal distribution. If the observed frequencies and expected frequencies are significantly different, you reject the null hypothesis. To analyze data from a single categorical variable, you can use a one-way chi-square test (p. 266). When analysis of categorical data involves two variables, you can use a two-way chi-square test (p. 270).
ID
1 2 3
Method of Payment
credit card cash credit card
Use the One-Way Chi-Square with counts measure option if the data is organized in unique category & count pairs.
ID
1 2 3
Method of Payment
Credit card Cash Debit
Count
132 267 133
When your analysis involves two categorical variables, you can use a two-way chi-square test(p. 270).
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistics dialog box, expand Nonparametric Tests and click One-Way Chi-Square Test. Click OK. 4. Select the type of test, One-Way Chi-Square or One-Way Chi-Square with counts measure. Click OK.
Chapter 9: Statistical Analysis 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a nonmeasure item to the Analysis variable drop zone. Click Next. If you chose One-Way Chi-Square with counts measure, drag the item that contains the counts measure to the Counts variable drop zone. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
6. Define the output. By default, a frequency table and a statistics table display. You can also display a table of quartiles. Click Finish. 7. Run the report. You see two tables: A table showing the frequency distribution, expected frequencies, and residuals. A residual is the difference between the observed value and the expected value. A table showing the statistics for chi-square, degrees of freedom, and significance. See the following example for a simple demonstration.
Example: Using a One-Way Chi-Square Test to Compare Daily Hospital Discharge Rates
You are a report author in a hospital. To deal with staff shortages, the administration must determine if the number of patients that the hospital discharges varies significantly by the day of the week. You begin with the null hypothesis that there is no difference between the expected frequencies of discharged patients for the different days of the week and the observed frequencies. The alternative hypothesis is that there is a significant difference between the frequency of discharged patients and the day of the week.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. Open the DISCHARGEDATA package in IBM Cognos Report Studio. 2. From the File menu, click New. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistics dialog box, expand Nonparametric Tests, click One-Way Chi-Square Test. Click OK. 5. Select One-way Chi-Square with counts measure. Click OK. 6. From the metadata tree, expand the package if necessary and drag items to the following drop zones: Drag the Day of the week item to the Analysis variable drop zone. Click Next.
Chapter 9: Statistical Analysis Drag the Average daily discharge item to the Counts variable drop zone. Click Next. Drag the ID item to the Cases variable drop zone. Click Next.
7. Leave the output set to the default. Click Finish. 8. Run the report. You see two tables: A table showing the observed frequencies, expected frequencies, and residuals. A table showing the statistics for chi-square, degrees of freedom, and significance.
The statistic of interest is the significance. The p-value is .000, rounded to three decimal places. Because the significance is <.05, you reject the null hypothesis. You conclude that there is a significant difference between the expected and observed frequencies, that is, discharge rates differ significantly according to the day of the week. Asymptotic significance means significance that is most accurate with large samples and less accurate with small samples.
ID
1 2 3 4 5 6 7
If you want to specify 20% for Friday, Saturday, and Sunday, you must add the values in the Add values dialog box in this order: 20, 10,10,10,10,20,20.
Steps
1. Open the DISCHARGEDATA package in Report Studio. 2. From the File menu, click New. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistics dialog box, expand Nonparametric Tests, click One-Way Chi-Square Test. Click OK. 5. Select One-way Chi-Square with counts measure. Click OK. 6. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag the Day of the week item to the Analysis variable drop zone. Click Next. Drag the Average daily discharge item to the Counts variable drop zone. Click Next. Drag the ID item to the Cases variable drop zone. Click Next.
Chapter 9: Statistical Analysis 7. Leave the output set to the default. Click Finish. 8. In the work area, click the chi-square statistical object to display its properties. 9. On the Properties pane, under General Settings, change Expected Values from All categories are equal to values. 10. In the Expected Values dialog box, click the add icon 11. Under Numbers only, type 20. Click OK. 12. Repeat steps 10 and 11 for each of these proportion figures: 10,10,10,10,20, and 20. 13. Run the report. You see two tables, as in the preceding example. The number of expected observations is now calculated using your specified proportions. For example, the number of expected discharged patients for Sunday is now 117.8, that is, 20% of the total count of 589. .
ID
1 2 3
Gender
male male female
Method of Payment
cash cash credit card
Use the Two-Way Chi-Square with counts measure option if your data contains unique pairs, plus a count.
ID
1 2
Gender
Female Male
Method of Payment
cash cash
Count
321 237
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistics dialog box, expand Nonparametric Tests and click Two-Way Chi-Square Test. Click OK. 4. Select the type of test, Two-Way Chi-Square or Two-Way Chi-Square with counts measure. Click OK. 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag an nonmeasure item to the Analysis variable 1 drop zones. Click Next. Drag another nonmeasure item to the Analysis variable 2 drop zones. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
6. Specify the crosstab statistics that you want to show. Click Finish. The default is to show the observed count and the case processing summary. You can also show the expected count and the percentage of row, column, and total for each category, as well as the residual, the standardized residual, and the adjusted residual. 7. Run the report. You see three tables: A case processing summary. A contingency table showing the frequency distribution. A table showing the statistics for chi-square, likelihood ratio, association, and the number of valid cases. The chi-square statistic is determined by both the results of the cells in the contingency table and the degrees of freedom. The likelihood ratio is based on maximum likelihood estimation, and is usually similar to the chi-square results. Valid cases are all cases that are not missing data, as described in the case processing summary. See the following example for a simple demonstration.
Example: Using a Two-way Chi-Square Test to Compare Default Rates and Level of Education
You are a report author at a bank. You use a two-way chi-square test to determine whether level of education is related to the rate of default.
Chapter 9: Statistical Analysis The null hypothesis is that the two variables are independent - in this case, that there is no significant difference in the rate of default for customers with different levels of education. The alternative hypothesis is that the rate of default differs significantly according to the level of education. Note: You must have IBM Cognos Statistics installed and configured to create this example.
Steps
1. Open the BANKLOAN_CS package in Report Studio. 2. From the File menu, click New. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistics dialog box, expand Nonparametric Tests, and click Two-way Chi-Square. Click OK. 5. Select Two-Way Chi-Square. Click OK. 6. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag the Level of education item to the Category 1 drop zone. Click Next. Drag the Previously defaulted item to the Category 2 drop zone. Click Next. Drag the Customer ID item to the Cases variable drop zone. Click Finish.
The statistic of interest is the Pearson Chi-Square significance. The p-value is .000, rounded to three decimal places. Because the significance <.05, you reject the null hypothesis. You conclude that there is a significant difference between the default rates of customers with different levels of education. Asymptotic significance means significance that is most accurate with large samples and less accurate with small samples.
Chapter 9: Statistical Analysis Linear regression, on the other hand, examines the relationship between one dependent variable and one or more independent variables. You can use linear regression to predict the dependent variable when the independent variables are known.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics. Click OK. 3. In the Statistics dialog box, expand Correlation and Regression and click Basic Correlation. Click OK. 4. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag a measure item to the Analysis variable 1 drop zone. Click Next. Drag another measure item to the Analysis variable 2 drop zone. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
5. Specify the correlation options, such as which correlation coefficient to use which statistics to display how to treat missing values
For more information, see "Correlation Options" (p. 277). 6. Click Next. 7. You can specify output options, such as titles or footnotes. Otherwise, click Finish. 8. Run the report. By default, you see a scatterplot, a statistics table, and a correlations table. See the following example for a simple demonstration.
Steps
1. Open the BANKLOAN_CS package in IBM Cognos Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Correlation and Regression, click Basic Correlation, and then click OK. The statistical object wizard opens. 5. In the statistical object wizard, expand the BANKLOAN_CS package in the metadata tree if necessary and drag items to the following drop zones: Drag the Age in years item to the Analysis variable 1 drop zone. Click Next. Drag the Household income in thousands item to the Analysis variable 2 drop zone. Click Next. Drag the customer ID item to the Cases variable drop zone to define a set of cases. Click Next. 6. Leave the default correlation options. Click Finish. 7. Run the report. You see a scatter chart, a descriptive statistics table, and a correlations table. First, look at the correlations table to find the statistic of interest in this case, the correlation coefficient.
The statistic of interest is the Pearson correlation coefficient. This statistic, .494, shows a positive relationship between age in years and household income. The p-value for 2-tailed significance is .000, rounded to three decimal places. Because the significance <.05, you reject the null hypothesis. You conclude that there is a significant relationship between age in years and household income, and that the relationship is positive. To view the relationship graphically, look at the scatterplot.
Note the R square statistic (0.244) listed to the right of the graph. In this case, the Pearson coefficient is .494. If you square the Pearson coefficient (.494 * .494), you get .244 the same as the R square statistic. Multiplied by 100, this statistic tells you the percentage of the variation in the household income variable that is explained by the Age in years variable. You can then conclude that age explains 24.40% of the variation in household income in our sample.
Correlation Options
Aside from specifying how to treat missing values, you can specify the following options in your report.
Correlation Coefficients
Correlations coefficients measure how variables are related. The coefficient that you use depends on the type of data with which you are working.
Coefficient
Pearsons
Description
Measures the strength of the linear relationship between two scale (ratio or interval) variables. This common coefficient is the default.
Coefficient
Kendalls Tau b
Description
Measures the strength of the relationship between ordinal data. This coefficient is most appropriate for square tables, that is, tables that contain the same number of rows and columns. Use this coefficient for nonparametric data.
Spearman
Uses the same calculations as Pearsons, but uses ranks of scores instead of actual values. Use when one or both variables are ordinal and not scalar, or if there are outlying values. Use this coefficient for nonparametric data.
Use Pearsons if there is a linear relationship. Use Kendalls Tau b or Spearman for ranked data. You can also choose whether to show a one-tailed or two-tailed test of significance.
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics. Click OK. 4. In the Select Statistic dialog box, expand Correlation and Regression and click Linear Regression. Click OK. 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones:
Chapter 9: Statistical Analysis Drag an item to the Dependent variable drop zone. Click Next. Drag one or more items to the Independent variables drop zone. Click Next. If you specify more than one variable, you are performing multiple regression. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
6. Select an regression method and how to treat missing values. Click Next. 7. Select your desired output options. For more information, see "Linear Regression Options" (p. 282). 8. Click Finish. 9. The default output includes a variable entry table, a model summary, an ANOVA table, and a coefficients table. The model summary table appears even if you select no other output options. The statistic of interest in the model summary table is the R square value. R square is the percent of the dependent variable that the independent variables can explain. The coefficients table gives you predictive information. It shows you how to predict the dependent variable from the value of the independent variables. See the following example for a simple demonstration.
Example: Use Linear Regression to Analyze the Relation Between Age and Household Income
You are a report author at a bank. You are asked to analyze the relationship between age and household income. The null hypothesis is that there is no relationship between the two variables. Note: You must have IBM Cognos Statistics installed and configured to create this example.
Steps
1. Open the BANKLOAN_CS package in Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Correlation and Regression, click Linear Regression, and then click OK. The statistical object wizard opens. 5. From the metadata tree, expand BANKLOAN_CS and drag items to the following drop zones: Drag the Household income in thousands item to the Dependent variable drop zone. Drag the Age in years item to the Independent variables drop zone. Drag the Customer ID item to the Cases variable drop zone to define a set of cases and click Next.
Chapter 9: Statistical Analysis 6. Leave the default entry method and missing values options, and click Next. 7. Leave the default output options, and click Finish. 8. Run the report. By default, you see a variable entry table, a model summary, an ANOVA table, and a regression coefficients table. In the model summary table, the statistic of interest is the R square statistic, in this case .244. The coefficient of determination (R square) is the square of the correlation coefficient (R). It represents the proportion of variance in the dependent variable that can be accounted for by the regression equation. For example, an R square value of .24 means that the regression equation can explain 24% of the variance in the dependent variable. The other 76% is unexplained. Adjusted R square is a standard downward adjustment to correct for the possibility that, if there are many independent variables, some of the variance might be due to chance. The more independents, the greater the adjustment. The standard error of the estimate is the standard deviation of the data points as they are distributed around the regression line. The R square change refers to the amount R square increases or decreases when a variable is added to or deleted from the equation, as is done in stepwise regression. The F change statistic shows the significance level associated with adding or removing the variable for each step. You can change this in the regression method area of the wizard. Steps that are not significant are not modeled.
The variables table shows the variables that have been included in the analysis and the regression method that is used to enter the variables. The ANOVA table tests the acceptability of the model. The Regression row displays information about the variation accounted for by your model. The Residual row displays information about the variation that is not accounted for by your model. If the significance value of the F statistic is less than 0.05, then the variation that the model explains is not due to chance. Next, look at the coefficients table.
The main statistic of interest in the coefficients table is the unstandardized regression coefficient, Age in years 2.523. User Guide 281
Chapter 9: Statistical Analysis The regression equation is dependent variable = slope * independent variable + constant The slope is how steep the regression line is, based on a scatterplot. The constant is where the regression line strikes the y-axis when the independent variable has a value of 0. In this example, the slope is 2.523, and the constant is -26.636. So the regression equation is predicted value of household income = 2.523 * age in years - 26.636. That is, for the average person, we would estimate that their household income at age 30 would be 2.523 * 30- 26.63 = 49.06 (in thousands) Note: For multiple regression, the regression equation is similar. If you have 3 independent variables (IV1, IV2, and IV3, the regression equation is dependent variable=B(IV1) * IV1 + B(IV2) * IV2 + B(IV3) * IV3 + constant The coefficients table also includes the confidence interval for B and the standardized coefficients.
Regression Methods
You can specify how independent variables are entered into the analysis. Using different methods, you can construct a variety of regression models from the same set of variables. In multiple regression, the variable elimination criteria options apply when you specify the forward, backward, or stepwise variable selection method. You can include or remove variables from the model depending on the significance (probability) of the F value that is shown in the ANOVA table. Therefore, a variable is entered into the model if the significance level of its F value is less than the Entry value and is removed if the significance level is greater than the Removal value. Entry must be less than Removal, and both values must be positive. To enter more variables into the model, increase the Entry value. To remove more variables from the model, lower the Removal value.
Method
Enter
Description
Enters all variables in a single step.
Method
Stepwise
Description
At each step, enters the independent variable that is not in the equation and has the smallest probability of F, if that probability is sufficiently small. Variables already in the regression equation are removed if their probability of F becomes sufficiently large. The method terminates when no more variables are eligible for inclusion or removal.
Forward
A stepwise variable selection procedure in which variables are sequentially entered into the model. The procedure stops when there are no variables that meet the entry criterion.
Backward
All variables are entered into the equation and then sequentially removed. The procedure stops when there are no variables that meet the removal criterion.
Customized Output
You can specify what to show in your output. Show R square change Use this to show the change in the R square statistic that is produced by adding or deleting an independent variable. If the R square value change associated with a variable is large, the variable is a good predictor of the dependent variable. Show ANOVA table Use this to show an ANOVA table that provides information about levels of variability within a regression model and forms a basis for tests of significance. Show coefficients Use this to show the regression coefficient B, as well as its standard error and specified level of confidence. Also shows the t value for B, the significance level of t, and standardized coefficients (beta). In a multiple regression analysis, standardized coefficients help to determine which of the independent variables have a greater effect on the dependent variable when the variables have different units of measurement, such as income measured in dollars and age measured in years. Show variable processing summary Use this to show the variables that are included in the analysis and the entry method used to enter the variables.
Chapter 9: Statistical Analysis Show descriptives Use this to show the number of valid cases, the mean, and the standard deviation for each variable in the analysis. Show correlations Use this to show the Pearson correlation, the 1-tailed significance, and the sample size (N) for each variable. Show part and partial correlation In multiple regression, part correlation displays the correlation between the dependent variable and an independent variable when the linear effects of the other independent variables in the model have been removed from the independent variable. It is related to the change in R square when a variable is added to an equation. Sometimes called the semipartial correlation. Partial correlation shows the correlation that remains between two variables after removing the correlation that is due to their mutual association with the other variables. Show covariance matrix Use this to show a variance-covariance matrix of regression coefficients with covariances off the diagonal and variances on the diagonal. Also shows a correlation matrix. Show confidence interval Use this to show the confidence interval that you specify. Show model selection statistics Use this to show model selection statistics based on the Akaike information criterion, the Amemiya prediction criterion, Mallows' prediction criterion, and the Schwarz Bayesian criterion. Show excluded variable statistics In multiple regression, shows the betas and other coefficients related to variables that are not included in the model for the step listed. Beta in is the beta weight that would result if the variable were put back into the model for the listed step. Likewise, t, significance, tolerance, and VIF (variance inflation factor), are the coefficients that would result from adding that variable back in. A variance inflation factor greater than 2 is usually considered problematic. The excluded variable with the largest partial correlation is usually the best candidate to add back in. Show collinearity diagnostics In multiple regression, displays a table that assesses if there is too much collinearity in the model. Collinearity (or multicollinearity) is the undesirable situation when one independent variable is a linear function of one of the other independent variables. Crossproducts of the independent variables are factored in a matrix. High eigenvalues indicate dimensions that account for a large amount of the variance in the matrix. Eigenvalues close to
Chapter 9: Statistical Analysis 0 indicate that the predictors are highly intercorrelated and that small changes in the data values might lead to large changes in the estimates of the coefficients. The condition indices are computed as the square roots of the ratios of the largest eigenvalue to each successive eigenvalue. A condition index over 15 indicates a possible collinearity problem. A condition index over 30 suggests a serious collinearity problem. If a factor of the crossproduct matrix has a high condition index, look in the variance proportions column to see if it accounts for a large proportion of variance in two or more variables. If so, collinearity is a problem. Show residuals statistics Use this to show summary data regarding the residuals, that is, the difference between each individual value in the sample and the sample mean, and the standardized residuals. A standardized residual is the raw residual value divided by the square root of the residual mean square. Show standardized residuals histogram Use this to show a histogram of the residual to check whether the variance is normally distributed. A symmetric histogram that is evenly distributed around zero indicates that the underlying assumption of normality for a model is likely to be true. Show standardized residuals PP plots The PP plot is another test of normally distributed residual error. Under perfect normality, the plot would be a 45-degree line. Show scatterplot of residuals versus dependent variables Use this to show the difference between the calculated and measured values of the dependent variable as a function of the measured values. If the regression model represents the data correctly, the residuals are randomly distributed around the horizontal line. Show partial regression plot Use this to show the effect of adding an additional variable to a model that already contains one or more independent variables.
Notes
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Correlation and Regression, click Curve Estimation, and then click OK. 5. In the statistical object wizard, expand the package in the metadata tree if necessary and drag items to the following drop zones: Drag an item to the Dependent Variables drop zone. Drag an item to the Independent Variable drop zone. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
6. Select the curve models to use. The default model is linear. Click Next. 7. Select your desired output options. Click Next. 8. Run the report. The default output includes a scatterplot and model summary tables, ANOVA tables, and regression coefficients for each of the curve models selected. See the following example for a simple demonstration.
Steps
1. Open the BANKLOAN_CS package in Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Regression, click Curve Estimation, and then click OK. 5. In the statistical object wizard, expand the BANKLOAN_CS package in the metadata tree if necessary and drag items to the following drop zones: Drag the Household income in thousands item to the Dependent Variables drop zone. Click Next. 286 IBM Cognos Report Studio
Chapter 9: Statistical Analysis Drag the Age in years item to the Independent Variable drop zone. Click Next. Drag the Customer ID item to the Cases drop zone to define a set of cases. Click Next.
6. Leave linear as the default model. Click Next. 7. Leave the default output options. Click Finish. 8. Run the report. The default output includes a scatterplot, model summary table, ANOVA table, and coefficients table.
The scatterplot suggests that the linear model is a good fit for your data. Look at the model summary table. How close is the R square value to 1.00? You can try using different models with your data to help you find the model with the optimum fit.
Curve Models
You can choose one or more curve estimation regression models. First, view a scatterplot of your data. If your variables appear to be related linearly, use a simple linear regression model. If the plot resembles a mathematical function you recognize, fit your data to that type of model. For example, if your data resembles an exponential function, use an exponential model.
Linear
A model whose equation is Y = b0 + (b1 * X), where b0 is the constant, b1 the regression coefficient for x, the independent variable. The series values are modeled as a linear function of X.
Logarithmic
A model whose equation is Y = b0 + (b1 * ln(X)), where ln() is the natural log function.
Inverse
A model whose equation is Y = b0 + (b1 / X).
Quadratic
A model whose equation is Y = b0 + (b1 * X) + (b2 * X**2), where ** is the exponentiation operator. If b2 is positive, the slope is upward; if negative, downward. You can use the quadratic model to model a series that "takes off" or a series that dampens.
Cubic
A model that is defined by the equation Y = b0 + (b1 * x) + (b2 * X**2) + (b3 * X**3). If b3 is positive, the slope is upward; if negative, downward.
Power
A model whose equation is Y = b0 * (X**b1) or ln(Y) = ln(b0) + (b1 * ln(X)). If b0 is positive, the slope is upward; if negative, downward.
Compound
A model whose equation is Y = b0 * (b1**X) or ln(Y) = ln(b0) + (ln(b1) * X). If b0 is positive, the slope is upward; if negative, downward.
S
A model whose equation is Y = e**(b0 + (b1/X)) or ln(Y) = b0 + (b1/X), where e is the base of the natural logarithm. If b1 is positive, the slope is upward; if negative, downward.
Logistic
A model whose equation is Y = 1 / (1/u + (b0 * (b1**X))) or ln(1/y-1/u) = ln (b0) + (ln(b1) * X) where u is the upper boundary value. If b1 is negative, the slope is upward; if positive, downward. After selecting Logistic, specify the upper boundary value to use in the regression equation. The value must be a positive number that is greater than the largest dependent variable value.
Growth
A model whose equation is Y = e**(b0 + (b1 * X)) or ln(Y) = b0 + (b1 * X). If b1 is negative, the slope is downward; if positive, upward.
Exponential
A model whose equation is Y = b0 * (e**(b1 * X)) or ln(Y) = ln(b0) + (b1 * X). If b0 is negative, the slope is downward; if positive, upward.
Customized Output
You can specify what to include in your output.
Statistic
Description
Show case processing summary Shows the number of total cases, as well as any excluded cases, forecasted cases, and newly created cases. Cases are excluded from the analysis when there is a missing value in any variable. Show variable processing sum- Shows the number of positive, negative, and missing values. mary Also shows the number of zeros. Show chart Show model summary Shows a scatterplot. Shows R, the R square value and adjusted R square value, and the standard error of the estimate. Shows an ANOVA table that provides information about levels of variability within a regression model and forms a basis for tests of significance. Shows the regression coefficient B, standard error of B, confidence intervals with the specified level of confidence for B, t value for B, the two-tailed significance level of t, and standardized coefficient beta.
Show coefficients
You can use control charts to monitor the variations in a process. You can use specification limits to determine if your product conforms to specifications. You can specify control rules to highlight when a process is going out of control.
Control Charts
Control charts plot samples of your process output collected over time to show you whether a process is in control or out of control. The type of control chart that you choose depends on the type of output that your process produces and the sampling plan that you use to collect the data.
Chart
X-bar charts
Description
Plot the average of each subgroup. An X-bar chart is often accompanied by either the R chart or S chart. Plot the data range for each subgroup. Plot the data standard deviation for each subgroup.
R charts S charts
In situations where you take a single measurement at each collection period, you should use an individuals or moving range chart.
Chart
Individuals charts
Description
Plot individual observations that cannot be put into subgroups, such as single-measurement samples. Plot the spread of measures in terms of the differences between consecutive samples.
For variable data, your data should be set up as in the table below.
ID
1 2 3 4 5
Time of measurement
1 1 1 1 1
Batch
1 2 3 4 5
Shift
day day day day day
pH level
4.98 4.65 4.91 4.62 4.84
ID
6 7 8 9
Time of measurement
1 2 2 2
Batch
6 1 2 3
Shift
day day day day
pH level
4.69 4.52 4.73 5.05
To see how a control chart plots this data, look at the X-bar chart example (p. 295). You can see that the first data marker in the chart represents the mean pH level (4.78) for the 6 batches that make up a sample for the subgroup variable Time of measurement (1). Likewise, if you look at the R bar chart in the example, you can see that the first data marker represents the range (subtract the smallest value 4.62 from the largest value 4.98) for the 6 batches that make up a sample for the subgroup variable Time of measurement (1).
Chart
p chart
Description
Plots the percentage of defective units, such as the percent of automobiles with defects per shift. Sample sizes do not need to be equal. They can vary between collection periods.
np chart
Plots the number of defective units, such as the number of automobiles with defects per shift. Sample sizes must be equal.
In situations where you are tracking the number of defects per unit, you should use a c chart or u chart.
Chart
u chart
Description
Plots the number of defects per unit, such as the number of defects per automobile per shift. Sample sizes do not need to be equal. They can vary between collection periods.
Chart
c chart
Description
Plots the number of defects, such as the total number of defects per shift. Sample sizes must be equal.
For attribute data, your data should be set up similar to the table below. Because the sample sizes are not equal in this case, you would have to use a p chart or a u chart.
ID
1 2 3 4 5 6 7 8 9
Lot
1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00
Sampled
193.00 198.00 211.00 210.00 204.00 214.00 208.00 210.00 198.00
Defects
6.00 1.00 1.00 .00 2.00 1.00 1.00 3.00 2.00
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics and then click OK. 3. In the Select Statistic dialog box, expand Control Charts, click X-bar, R, or S and then click OK. 4. From the metadata tree, expand the package if necessary and drag items to the following drop zones: Drag an item to the Process measurement variables drop zone to represent your measure of interest. Click Next. Drag an item to the Subgroups variable drop zone to represent the time or sample lot. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
5. Specify the number of standard deviations and the minimum subgroup size. The number of standard deviations determines the control limit bands. The default settings are 3 standard deviations and a minimum subgroup size of 2. Select Display subgroups defined by missing values to display each missing value for the subgroup variable as a separate group in the chart. 6. For X-bar charts, you can specify the following: Specify control rules to identify out-of-control points. Click Next. Specify the specification limits to define the upper and lower specification limits for the process measurement variable. Specify any desired process capability indices. Specify any desired process performance indices. Click Next.
7. For X-bar charts, R charts, and S charts, specify any output options such as titles or footnotes. Click Finish. 8. Run the report. See the following example for a simple demonstration.
Chapter 9: Statistical Analysis During each shift, you record pH levels for separate output batches at regular time intervals. You set the specification limits to allow a fluctuation of 4.8-5.2 in the pH level, with a target value of 5.
Steps
1. Open the SHAMPOO_PH package in IBM Cognos Report Studio. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Statistics and then click OK. 4. In the Select Statistic dialog box, expand Control Charts, click R, and then click OK. 5. From the metadata tree, expand the SHAMPOO_PH package if necessary and drag items to the following drop zones: Drag the pH level item to the Process measurement variables drop zone. Click Next. Drag the Time of measurement item to the Subgroups variable drop zone to represent the sequential parameter. Click Next. Drag the ID item to the Cases variable drop zone to define a set of cases.
6. Leave the number of standard deviations at 3 and the minimum subgroup size as 2. 7. Click Finish. Now you want to add an X-bar chart to the report. 8. In the Insertable objects pane, click on the toolbox tab. Scroll down to Statistics. 9. Drag a statistical object onto the work area. 10. Repeat steps 4 through 6 to create an X-bar chart, with the following specifications: Leave the default control rules and click Next. Specify the process upper specification limit as 5.2, the lower specification limit as 4.8, and the specification target as 5.0. Select CP and CpU as process capability indices. Select PP and PpU as process performance indices. Click Next. Type Shampoo Quality Measurements as a report title. Click Finish.
11. Run the report. The output includes the R chart and X-bar chart, as well as tables containing rule violations and process statistics. Examine the R chart first. The R chart uses sample ranges to monitor changes in the spread of a process. The sample ranges are plotted as points on the chart and connected with lines. The solid centerline is the average of the sample ranges. The two dashed lines are the upper control limit (UCL) and the lower control limit (LCL). Note that the value of the LCL, 0.0, is not visible because it is flush with the horizontal axis. 296 IBM Cognos Report Studio
The control limits are calculated so that if the process is in control, nearly all of the sample points will fall between the limits. Control limits reflect the expected amount of variation in the sample ranges when only common causes of variation are present. All the points in the R chart are within the control limits. The process variability is in control. For a different view - that of the process itself, rather than the variability - you look at the Xbar chart. If an R chart indicates that the process variability is out of control, then you should disregard the X-bar chart. The average of the sample ranges is used in the calculation of the control limits for the X-bar chart. So if the R chart does not display control, the control limits on the X-bar chart are questionable. Because the process variability appears to be in control, you now examine the X-bar chart. The X-bar chart below shows the results for a specified time period.
The X-bar chart uses sample means to monitor changes in a process. The sample means (or averages) are plotted as points and connected with lines. The solid centerline is the average of the sample means. The two inner dashed lines are the upper control limit (UCL) and the lower control limit (LCL). The control limits reflect the expected amount of variation in the sample means when only common causes of variation are present. To see how this data is set up, see the section Control Charts for Variables in "Control Charts" (p. 292). The average is 4.99, which is on target, but this plot shows that certain points in the process are out of control. The Rule Violations table shown below displays points that violate any rule. The table uses the subgroups variable to identify the points. In this case, the subgroups variable is Time of measurement.
In the Process Statistics table, the CP and PP value is less than 1. This indicates that the process shows excess variability. The process variability indices CpU and PpU show that the process behaves in a relatively symmetric way. For more information about these indices, see "Process Capability Indices" (p. 304) and "Process Performance Indices" (p. 305). Using the X-bar, you determine that certain points in the process are out of control. You might want to investigate the differences in the pH of shampoo that different shifts produce.
Note
You must have IBM Cognos Statistics installed and configured to create statistical objects.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package.
Chapter 9: Statistical Analysis 2. In the New dialog box, click Statistics. Click OK. 3. In the Select Statistic dialog box, expand Control Charts and click Moving Range or Individuals. Click OK. 4. From the metadata tree, expand the package if necessary and drag items to the following drop zones: Drag an item to the Process measurement variable drop zone to represent your measure of interest. Click Next. Drag an item to the Subgroups variable drop zone to represent the sequential parameter. Click Next. Drag an item to the Cases variable drop zone to define a set of cases. Click Next.
5. Specify the number of standard deviations and the minimum subgroup size. Select Display subgroups defined by missing values to display each missing value for the subgroup variable as a separate group in the chart. In moving range charts, the subgroup size specifies the span that calculates the moving range. In individuals charts, you can also specify the number of standard deviations, the minimum subgroup size, the control rules, and the specification limits. 6. Specify any output options such as titles or footnotes. Click Finish. 7. Run the report.
Notes:
You must have IBM Cognos Statistics installed and configured to create statistical objects. When there are unequal sample sizes for an np chart, a p chart is recommended.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics and then click OK.
Chapter 9: Statistical Analysis 3. In the Select Statistic dialog box, expand Control Charts, click p, np (Cases are Units) or p, np (Cases are Subgroups) and then click OK. 4. From the metadata tree, expand the package if necessary and drag items to the following drop zones: If using Cases are Units, drag an item to the Characteristic variable drop zone. Click Next. Drag an item to the Subgroups variable drop zone. Click Next. If using Cases are Subgroups, drag an item to the Sample size variable drop zone. Click Next. Drag an item to the Number of nonconforming variable drop zone. Click Next. 5. Drag an item to the Cases variable drop zone to define a set of cases. Click Next. 6. Under Chart, choose either p (Proportion nonconforming) to produce a p chart, or np (Number of nonconforming) to produce an np chart. If using Cases are Units, under Value to count, choose either Conforming or Nonconforming and enter a value. 7. Click Next. 8. Specify the number of standard deviations to show and the control rules. Select Display subgroups defined by missing values to display each missing value for the subgroup variable as a separate group in the chart. 9. Click Next. 10. Specify any output options such as titles or footnotes. Click Finish. 11. Run the report.
Notes:
You must have IBM Cognos Statistics installed and configured to create statistical objects. When there are unequal sample sizes, a u chart is recommended.
Steps
1. From the File menu, click New. If you want to change the package, click the ellipsis (...) and click a different package. 2. In the New dialog box, click Statistics and then click OK.
Chapter 9: Statistical Analysis 3. In the Select Statistic dialog box, expand Control Charts, click c, u (Cases are Units) or c, u (Cases are Subgroups) and then click OK. 4. From the metadata tree, expand the package if necessary and drag items to the following drop zones: If using Cases are Units, drag an item to the Characteristic variable drop zone. Click Next. Drag an item to Subgroups variable. Click Next. If using Cases are Subgroups, drag an item to the Sample size variable drop zone. Click Next. Drag an item to the Number of nonconforming variable drop zone. Click Next. 5. Drag an item to the Cases variable drop zone to define a set of cases. Click Next. 6. Under Chart, choose either u (Nonconformities per unit) to produce a u chart, or c (Number of nonconformities) to produce a c chart. Click Next. 7. Specify the number of standard deviations to show and the control rules. Select Display subgroups defined by missing values to display each missing value for the subgroup variable as a separate group in the chart. Click Next. 8. Specify any output options, such as titles or footnotes, and click Finish. 9. Run the report.
Time of measurement
8:50 8:50 8:50 8:50 11:30 11:30
Value
6.35 6.40 6.32 6.39 6.39 6.46
Time of measurement
11:30 11:30
Value
6.37 6.36
Time of measurement
8:50 11:30
N1
6.35 6.39
N2
6.40 6.46
N3
6.32 6.37
N4
6.39 6.36
Specification Limits
In X-bar charts and individuals charts, you can specify the limits that determine if your measure of interest meets the intended specifications. These specification limits are shown on the chart along with the calculated limits that the control rules determine. To show a fixed upper limit, enter the value in Upper specification limit. To show a fixed lower limit, enter the value in Lower specification limit. To show a target value for the process, enter the target value in Specification target.
You can also specify how to estimate the capability sigma, which is a measure of variation used in the computation of capability indices. You can estimate the capability sigma based on the R-bar values (the mean range), on the S-bar values (the mean standard deviation), or on the variation within a subgroup. For an example of setting specification limits, see "Example: Create a Report Showing Shampoo Manufacturing Quality Control" (p. 295). You can also specify whether to show the percentage of individual observations in the process that lie outside the specification limits by clicking Actual % outside specification limits.
Control Rules
Control rules are decision rules for detecting out-of-control conditions in control charts. The location of data points relative to the control limits and the central line indicate whether the process performs as expected. The number of specified standard deviations determine the control limits. The default is 3 standard deviations. Note: Keep in mind the difference between control limits and specification limits. Control limits are calculated automatically by the number of standard deviations, and determine if the process is
Chapter 9: Statistical Analysis in control. Specification limits are specified manually, and determine if your measure of interest meets the intended specifications. In X-bar charts, individuals charts, p,np charts, and c,u charts, you can use control rules to supplement the default rule of displaying points only when they exceed the specified control limits. Random variation within those limits indicates the process is in control. Nonrandom variation might indicate that something is wrong. For example, you can choose to display when two of three consecutive points fall outside the 2sigma warning limits, but are still within the 3-sigma control limits. This might signify issues in the future that have not yet actually gone out of control. If a point violates any rule, it appears in the chart with a different shape and color compared to incontrol points. The output includes a table of rule violations. If a point violates more than one rule, it is listed multiple times for each rule violation. By default, the subgroup variable is used to identify points in the table.
LSL
USL
Each statistic measures a different aspect of the process. Most of these indices are based on the capability sigma (which is computed using the sample mean moving range), the specification limits, or both. For an example of setting capability indices, see "Example: Create a Report Showing Shampoo Manufacturing Quality Control" (p. 295).
Statistic
CP
Description
Measures the overall capability of the process, using the ratio of the difference between the specification limits to the observed process variation. CP values greater than or equal to 1 indicate a capable process. Values less than 1 indicate that the process is too variable.
CpU CpL
Determines whether or not the process variability is symmetric, using the distance between the process mean and the upper specification limit (CpU) or the lower specification limit (CpL) scaled by capability sigma. If this value is close to CP, then the process variability is relatively symmetric.
Measures the deviation of the process mean from the midpoint of the specification limits. This measurement is computed independently of the estimated capability sigma.
CpK
Capability of the process related to both dispersion and centeredness. It is the minimum of CpU and CpL. If only one specification limit is provided, we compute and report a unilateral CpK instead of taking the minimum.
CR CpM
The reciprocal of CP. An index relating capability sigma and the difference between the process mean and the target value. The number of capability sigma between the process mean and the upper specification limit (Z-upper) or lower specification limit (Z-lower). The minimum number (Z-min) or maximum number (Z-max) of capability sigma between the process mean and the specification limits. The estimated percentage outside the specification limits. The standard normal approximation is based on the Z-upper and Z-lower indices.
Chapter 9: Statistical Analysis These measures are similar to process capability indices, but are based on the overall process variability rather than the sample variability. For an example of setting performance indices, see "Example: Create a Report Showing Shampoo Manufacturing Quality Control" (p. 295).
Statistic
PP PpU
Description
Measures the overall performance of the process. The distance between the process mean and the upper specification limit scaled by process standard deviation. The distance between the process mean and the lower specification limit scaled by process standard deviation. Measures the performance of the process related to both dispersion and centeredness. It is the minimum of PpU and PpL. If only one specification limit is provided, we compute and report a unilateral PpK instead of taking the minimum.
PpL
PpK
PR PpM
The reciprocal of PP. An index relating process variance and the difference between the process mean and the target value. The number of standard deviations between the process mean and the upper specification limit (Z-upper) or the lower specification limit (Zlower). The minimum number (Z-min) or maximum number (Z-max) of standard deviations between the process mean and the specification limits The estimated percentage outside the specification limits. The standard normal approximation is based on the Z-upper and Z-lower.
Z-upper Z-lower
Step
In the Insertable Objects pane, on the Source tab , drag each query item to the report.
A flashing black bar indicates where you can drop an item. Items inserted in the report appear on the Data Items tab .
Tips
For more information about a query item, right-click the item in the Source tab and click Properties. For example, when working with relational data sources, the Usage property iden-
307
Chapter 10: Relational Reporting Style tifies the intended use for the data represented by the data item. You can also obtain more information by clicking Lineage (p. 101). Other ways to select data items are to double-click each item or to right-click each item and click Insert. If you want to remove a data item from the report, select it and click the delete button . To
remove the data item from the report but keep it on the Data Items tab, click the cut button instead.
Product Line and Product Type are from one dimension and Region and Country are from another dimension. You group by the first three columns. You may encounter the following errors. 308 IBM Cognos Report Studio
Chapter 10: Relational Reporting Style OP-ERR-0199: The query is not supported. The dimensions on the edge are inconsistent. OP-ERR-0049. Unable to support a grouping that breaks the hierarchical order of the query items within it. When working with dimensional data sources, you can group or sort only in the order of the existing hierarchy. If you change the order, the above error also occurs. You can omit columns from the grouping. For example, if a level hierarchy contains the levels Country, State, and City, and another level hierarchy contains the level Product: Country, State, City is valid. Country, Product, and State is not valid because a level from another level hierarchy was inserted between two levels from another level hierarchy. Country, City, and Product is valid even though State is omitted. Country, Country code is valid where Country code is a member property of Country.
To override the hierarchical order that the data source specifies, you can override the dimension information of the query. For more information, see "Add Dimension Information to a Query" (p. 384). We recommend that you do not use member properties of a dimension to group data. Grouping by using member properties may give unexpected results, such as duplicates.
Steps
1. Click the column on which to group. You can click either the column title or one of the column cells. Tip: To perform multiple groupings at once, use Ctrl+click or Shift+click. 2. From the Structure menu, click Group/Ungroup .
A symbol appears indicating that the column is grouped. You can control when its values appear by setting the group span, and the column appears in the list of headers and footers that you can add to the report (p. 439). Note: Grouping all columns in a list is equivalent to creating a single-edge crosstab (p. 120).
Chapter 10: Relational Reporting Style You can also perform advanced sorting (p. 329).
Steps
1. Click a column in the list. 2. Click the select ancestor button in the title bar of the Properties pane and click List.
3. In the Properties pane, double-click the Grouping & Sorting property. 4. To change the grouping order, in the Groups pane, click the grouped item in the Groups folder and drag it to the grouping hierarchy. 5. To create a new grouping, in the Data Items pane, click the data item and drag it to the Groups folder in the Groups pane. 6. To specify a list of data items (p. 378) for a group, do the following: Click the group. Tip: Click Overall to specify a list of data items for the overall group. The overall group is the grouping of all data into one group. You can specify a list of data items for the overall group to add overall totals to the list. Click the properties button .
Spanning one grouped column by another column is helpful if the second column contains many items.
Steps
1. Click the column that will span the other column(s). 2. In the Properties pane, set the Group Span property to the column to span.
Chapter 10: Relational Reporting Style date appears for each product. You decide to show the order date only when the order number changes.
Steps
1. Open Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab Sales (query). 5. Expand Sales order and add Order number by double-clicking it. 6. Expand Time dimension and add Date by double-clicking it. 7. Expand Product and add Product name by double-clicking it. 8. Expand Sales fact and add Quantity and Revenue by double-clicking them. 9. Group the Order number column. 10. Click the Date column. 11. In the Properties pane, set the Group Span property to Order number. When you run the report, the first row of the Order date column appears for each Order number row. , expand Sales and Marketing (query) and
Steps
1. Open Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab , expand Sales and Marketing (query).
5. Expand Sales (query) and Product and add the following data items by double-clicking them: Product line Product type Product name
6. Expand Sales fact and add Product cost by double-clicking it. 7. Group the Product line and Product type columns. 8. Click the Product line column. 9. In the Properties pane, set the Group Span property to Product type. 10. Click any part of the list and then click the select ancestor button Properties pane. 11. Click List. 12. In the Properties pane, double-click the Font property. 13. In the Size box, click 8pt. When you run the report, the product line appears whenever the product type changes. in the title bar of the
Steps
1. Click the column to make a section heading. 2. Do one of the following: From the Structure menu, click Section .
If the column is in a list or repeater, this menu option will create sections without creating a master detail relationship. This can improve performance when running the report. If the column is in a crosstab or chart, this menu option will create sections using a master detail relationship. From the Structure menu, click Section Using Master/Detail. This menu option creates sections using a master detail relationship (p. 337). Sections are created, and a section header appears. The data container that contains the column used to create sections is embedded in a list.
Chapter 10: Relational Reporting Style 3. To add or remove section headers and footers, from the Structure menu, click Headers & Footers, click List Headers & Footers, and select or clear the appropriate check boxes. The section header and footer check boxes appear under Overall header.
Remove Sections
You can remove sections and reinsert the data item that was used to create the sections in the data container.
Steps
1. From the View menu, click Page Structure. 2. Expand the page containing the data container with the section. 3. Expand Page Body until you see the data container in which you added the section. The data container is nested in the List Column Body object of the List object that is created when you add a section. 4. Drag the data container to Page Body. The data container appears as a node of Page Body. 5. Delete the List object. 6. From the View menu, click Page Design. 7. In the Insertable Objects pane, click the Data Items tab .
8. Drag the data item that was used as a section header back into the data container. 9. If you created sections in a list without creating a master detail relationship, click the data item, and then click the group/ungroup button to ungroup the item.
For information about the page structure view, see "The Page Structure View" (p. 438).
Summaries, which are supported for all data sources, specify how data items are totaled in the headers and footers of a list and in the total rows and columns of a crosstab. For list reports, these summaries only summarize the data that is visible on that page of the report. You can specify detail and summary aggregation in different ways by using any of the following: aggregation properties that are specified in the model (p. 317) the Auto Group & Summarize property (p. 316) the summarize button in the toolbar (p. 315) aggregation properties for a data item (p. 317) summary functions in data item expressions (p. 317) the solve order of calculations (p. 406)
Limitation
If a summary is applied to a report that contains binary large object (BLOB) data, such as images or multimedia objects, you cannot also perform grouping or sorting.
Chapter 10: Relational Reporting Style For information about adding a rolling or moving average, see "Rolling and Moving Averages" (p. 364).
Steps
1. Click the column to which to add a summary. 2. Click the summarize button and click a summary type (p. 320).
3. To change the summary label, do the following: Click the label. In the Properties pane, under Text Source, set the Source Type property to the source type to define the label. For example, set it as Data Item Value to produce a dynamic label for the summary based on data item values. Set the property below Source Type to specify the label. This property depends on the source type you chose. For example, if you chose Data Item Value as the source type, set the Data Item Value property to the data item to use to define the label. In lists, the summary appears as a footer (p. 439). If the column to which you added a summary is grouped, group and overall summaries appear. In crosstabs and charts, the summary appears as a node (p. 117).
Tips
To change a summary, select it and, in the Properties pane, under Data Item, click Rollup Aggregate Function (p. 317) and choose a different function. In crosstabs, you can add multiple summaries at the same level. For example, you have a crosstab with Product line as rows, Order year as columns, and Revenue as the measure. For Product line, you can add the Total summary as a header, which will total all revenue for each order year. You can then add the Average summary as a footer, which will give the average revenue of all product lines for each order year.
Steps
1. Pause the pointer over the query explorer button and click a query.
2. In the Properties pane, set the Auto Group & Summarize property: 316 IBM Cognos Report Studio
Chapter 10: Relational Reporting Style To group non-aggregate fact data items and apply aggregate functions to aggregate fact data items in lists, set this property to Yes. To render detail rows, set this property to No.
Steps
1. Click the data item for which to set detail or summary aggregation. 2. In the Properties pane, set the Aggregate Function or the Rollup Aggregate Function property to a function (p. 320).
For example, your report uses Product line, Product type, and Quantity. You want to calculate the percentage of the parent quantity that is represented by each product type. This requires you to User Guide 317
Chapter 10: Relational Reporting Style compare the total quantity for each product type to the total quantity for the parent product line. In other words, your expression requires summaries at different group levels. You use summary functions, such as aggregate, in the data item expression with a for clause to specify the group level as follows: [Quantity] / aggregate ([Quantity] for [Product line])
In some cases, you may need a summary that is different from the default. For example, if the default summary for Quantity is total, you can calculate the average as follows: [Quantity] / average ( aggregate ([Quantity]) for [Product line])
The inner summary gives you the expected Quantity values at the Product Type level, which are then averaged to the Product Line level. This two-stage aggregation is required for OLAP data sources and recommended for relational data sources also. Why is this necessary? Here's what would happen if you simply averaged Quantity, as follows: [Quantity] / average([Quantity] for [Product line])
The denominator is now computed as the average of the detail Quantity rows in the underlying fact table. Since these values are much smaller than the pre-summarized Quantity values you see in the report, the resulting percentage is far too big, and not what we wanted. Tip: The Total Revenue by Country sample report (p. 588) in the GO Data Warehouse (query) package includes a total summary function. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. Click a data item. 2. In the Properties pane, double-click the Expression property and add summary functions to the expression for the data item.
Chapter 10: Relational Reporting Style If following these constraints does not resolve the problems and your report uses dimensional data with no detail or summary filters, consider using the within set clause instead of the for clause.
Summary Functions
This section describes the summary functions that are available in Report Studio. Some functions, such as Custom, are available only when you click the summarize button on the toolbar. Additional summary functions are available in the expression editor (p. 773).
Automatic Summary
Depending on the type of data item, applies the function None, Summarize, or Calculated based on the context in which the data item appears. Calculated is applied if the data item expression contains a summary function is an ifthenelse or case expression that contains a reference to at least a modeled measure in its condition contains a reference to a model calculation or to a measure that has the Regular Aggregate property set to a value other than Unsupported contains a reference to at least one data item that has the Rollup Aggregate Function property set to a value other than None If the underlying data source is relational and if the data item expression contains no summary functions and a reference to at least one fact that has the Regular Aggregate property set to a value other than Unsupported, Summarize is applied. In all other contexts, None is applied. For relational and dimensionally modeled relational (DMR) data sources, if this function is applied to a data item expression that has the average function, weighted averages are computed based on the lowest level detail values in the data source. This is the default function.
Average
Adds all existing values and then divides by the count of existing values.
Calculated
Specifies that all the terms within the expression for a data item are aggregated according to their own rollup rules, and then the results of those aggregations are computed within the overall expression. For example, a list contains the data item Quantity with the Aggregation property set to Total. You add a query calculation named Quantity Calculated. You define its expression as Quantity + 100 and you set its Aggregation property to Calculated. When you run the report, the values for Quantity Calculated are computed by first adding all values for Quantity and then adding 100 to each value.
Chapter 10: Relational Reporting Style In crosstabs, this function overrides any solve orders that are specified (p. 405).
Count
Counts all existing values. If the underlying data source is dimensionally modeled relational (DMR), Count behaves as follows if it is specified in the Aggregate Function or Rollup Aggregate Function property for a data item.
Object
Level Member set Attribute Measure
Behavior
Count distinct is used. A warning appears when you validate the report. Count distinct is used. A warning appears when you validate the report.
Supported. Supported.
If you add the count summary to a non-fact column in a list and then group the column, the column will not be grouped when you run the report. To resolve this issue, group the column first before adding the count summary.
Count Distinct
Returns the total number of unique non-null records. If the underlying data source is dimensionally modeled relational (DMR), count distinct is supported for levels, member sets, attributes, and measures when it is specified in the Aggregate Function or Rollup Aggregate Function property for a data item.
Custom
Summarizes data based on an expression that you define.
Maximum
Selects the largest existing value.
Median
Returns the median value of the selected data item.
Minimum
Selects the smallest existing value.
None
Does not aggregate values. If the underlying data source is relational, the data item is grouped when the query property Auto Group & Summarize (p. 316) is set to Yes.
Not Applicable
This function is available only for the Aggregate Function property. It specifies that the aggregate attribute is ignored. For example, the calculation will be applied after the data is aggregated. This function differs from the Calculated function, which applies aggregation to the rows and then performs the calculation. For example, for the average ( [Quantity] ) + 5 expression, when the Aggregate Function property is set to Not Applicable, five is added to the average of the single Quantity value. When the function is set to Calculated, five is added to the average of a set of numbers. This setting should not be applied to a simple model reference. This setting is relevant only for reports that are upgraded from IBM Cognos ReportNet 1.x.
Standard Deviation
Returns the standard deviation of the selected data item. From a mathematical perspective, this function is not useful for small numbers of items and is not supported if the query property Auto Group & Summarize (p. 316) is set to Yes.
Summarize
Aggregates data based on model or data type information. This function can be thought of as a calculate and then aggregate rule. Data is aggregated using the following rules: If the underlying data source type is relational and the data item or calculation is a reference to a single fact query item in the model that has the Regular Aggregate property set to Sum, Maximum, Minimum, Average, or Count, aggregate data using this function. Otherwise, data is aggregated according to the data type of the data item as follows: Total is applied for numeric and interval values. Maximum is applied for date, time, and date-time values. Count is applied for everything else.
The underlying data source type can be dimensional and the data item or calculation a reference to a single item in the model. In this case, if the Regular Aggregate property of the model item is not unknown, the summary function that corresponds to the Regular Aggregate property is applied. If the Regular Aggregate property is unknown, set the function to Calculated. For example, a list contains the data item Quantity with the Aggregation property set to Average. You add a query calculation named Quantity Summarize. You define its expression as Quantity + 100 and you set its Aggregation property to Summarize. When you run the report, the values for Quantity Summarize are computed by first adding 100 to each value for Quantity and then calculating the total. The total is calculated because Quantity contains numeric values and the expression for Quantity Summarize is not a simple data item reference. If Quantity Summarize is defined as Quantity, the function Average is applied to each value.
Total
Adds all existing values.
Variance
Returns the variance of the selected data item. Note: From a mathematical perspective, this function is not useful for small numbers of items and is not supported if the query property Auto Group & Summarize is set to Yes.
Mapping Aggregation Functions From Data Sources to Framework Manager and Report Studio
The summary functions available in Framework Manager and Report Studio reflect summary functions supported by relational and dimensional data sources. The following table shows how summary functions in data sources are mapped to Framework Manager and Report Studio.
Data source
None specified, or none average (avg)
count count distinct
Framework Manager
Unsupported Average Count Count Distinct Maximum Minimum Median
Report Studio
None Average Count Count distinct Maximum Minimum Median Standard Deviation Total Variance Automatic Automatic Automatic Automatic Automatic Automatic Automatic
Sum Variance Count Non-Zero unknown unknown unknown unknown unknown unknown
variance (var)
count non zero average non zero external any calculated unknown first_period
Data source
last_period
Framework Manager
unknown
Report Studio
Automatic
The following summary functions exist only in either Framework Manager or Report Studio. There is no corresponding summary function in data sources.
Framework Manager
Automatic Calculated No corresponding summary function No corresponding summary function
Report Studio
Automatic Calculated Summarize Not Applicable
Chapter 10: Relational Reporting Style Summary filters are applied to summary data items in a report. They are also Boolean expressions, however they are used to exclude specific groups of data items based on the group summaries. They are based on summary calculations. For relational data sources, if an expression is used in multiple reports or by different report authors, ask your modeler to create the expression as a standalone object in the model and include it in the relevant package. For information about creating filters in the package, see the IBM Cognos Framework Manager User Guide. If you are filtering a multiple-fact query, you should understand the differences between using a detail filter and summary filter (p. 380). If you filter values that are floating-point numbers, you may encounter imprecise filtering results due to rounding or data truncation. Floating-point numbers may appear differently in the report than how than how they are stored in the data source. To ensure accurate results, your filter criteria should account for any rounding issues. If you are working with a Microsoft SQL Server 2005 Analysis Services (SSAS) data source, we recommend that you not use OR filters in summaries. Doing so causes error characters (--) to appear in summaries instead of values.
You must drag the filter to an object that is linked to a query. If there is more than one query defined in the report, drag the filter to an object that is linked to the query. 2. From the Data menu, click Filters , and click Edit Filters.
If you have more than one query defined in the report, you must first click an object that is linked to a query. Tip: You can also define filters in Query Explorer (p. 329). 3. In the Filters dialog box, decide what type of filter to create: To add a filter that will apply to detail values, click the Detail Filters tab. To add a filter that will apply to summary values, click the Summary Filters tab. .
5. In the Available Components box, define the filter expression: To add data items that are not shown in the report, on the Source tab, double-click data items. To add data items that are in the report but not necessarily in the model (such as calculations), on the Data Items tab , double-click data items. ,
To add data items from a specific query in the report (p. 329), on the Queries tab double-click data items.
Chapter 10: Relational Reporting Style To add functions, summaries, and operators, on the Functions tab , double-click elements.
Note: You can insert only functions that return a Boolean value (true or false). For example, you cannot insert the function topCount because it returns a set of data. Filter expressions must resolve to a Boolean in order to be valid. To add a value that is derived from a parameter, on the Parameters tab the parameter. , double-click
Parameters define prompts (p. 421), drill-through reports (p. 525), and master detail relationships (p. 386). Tip: You can also type the filter expression directly in the Expression Definition box. When typing date values, use the YYYY-MM-DD format. For more information about creating expressions, see "Using Relational Calculations" (p. 342). 6. Click the validate button and click OK.
7. In the Usage box, specify whether the filter is required, optional, or not to be used. 8. If you created a detail filter, in the Application box, click one of the following options: To apply the filter to individual records in the data source, click Before auto aggregation. For example, for a specific product type within a product line, you want to filter out individual orders that generated less than one thousand dollars in revenue. To apply the filter to data after the query has grouped and summarized at the lowest level of detail, click After auto aggregation. For example, you want to filter out the product types that generated less than ten thousand dollars in revenue within a product line. For example, you have a list that contains the data items Product line, Product type, and Revenue. The revenue values you see are aggregated to the product type level. If you create a detail filter on Revenue and you choose to filter values before auto aggregation, you are filtering nonaggregated revenue values. If you choose to filter values after auto aggregation, you are filtering revenue values aggregated to the product type level. 9. If you created a summary filter, click the ellipsis (...) button under Scope and select the grouping level at which to apply the filter. For example, a revenue report is grouped on product line and product type. You can choose to filter total revenue for either the product line or product type level. If the query in which you are creating the summary filter is linked to more than one data container, the data item that you select as the grouping level must be grouped in all data containers linked to the query. Otherwise, the report will not run successfully. Tip: To filter at the overall level, do not click a level. For example, if a report has an overall footer that shows the total revenue for all products, by not choosing a level you will apply the
Chapter 10: Relational Reporting Style filter to the footer. In addition, if you are using a dimensional data source, excluding a parent level excludes its children, and excluding all children excludes the parent.
Tip: You can also edit filters from Query Explorer. Pause the pointer over the query explorer button and click the query that contains your filter.
Tip: You can change the data format of the column to show only the date value by setting the Date Style property to Short. You can then apply filters to the DATEONLY column that would return the correct results. If you create a parameter in Report Studio that filters on this column, the default prompt will present a date and time control because the data type is still a timestamp. User Guide 327
If you create a parameter in Report Studio that filters on this calculation, the default prompt presents a date control.
Steps
1. Click the column or row on which to sort. 2. Click the sort button and click Ascending or Descending.
An arrow appears beside the data item to indicate that a sort order was set. When you specify a sort order for more than one column, the columns are sorted in the order in which they were inserted in the report. For example, you add columns A, B, and C to a report and specify a sort order for each. When you run the report, column A is sorted first, then column B, and then column C. You can change the order in which the columns are sorted in the Edit Layout Sorting options (p. 329). Tip: To remove a sort order, click Don't Sort.
Steps
1. Click a column. In a crosstab, click the sorted row or column on which to perform advanced sorting. 2. Click the sort button and click Edit Layout Sorting.
3. To sort a list column within a group, do the following: In the Groups pane, under the Groups folder, expand the folder of the grouped column (p. 308). In the Data Items pane, drag the data items to sort to the Sort List folder. Tip: You can also drag data items from the Detail Sort List folder. Click the sort order button to specify ascending or descending order.
4. To change the sort order of columns, in the Groups pane, change the order of columns in the Sort List folder of a group or in the Detail Sort List folder. Tip: Add items to the Detail Sort List folder to sort items that are not groups. 5. If you are sorting a crosstab, do the following: From the Data Items pane, drag the item on which to sort to the Sort List pane. For example, you have a crosstab with Product line as rows, Order year as columns, and Revenue as the measure. To sort Order year by Revenue, drag Revenue to the Sort List pane. Click the sort order button to specify ascending or descending order.
Chapter 10: Relational Reporting Style Note: By default, queries run sequentially. Your administrator must enable the concurrent query execution feature. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide. view or add filters and parameters and modify their properties view or add dimensions, levels, and facts incorporate SQL statements that come from other reports or reports that you write create complex queries using set operations and joins
Steps
1. Click a layout object. Tip: For a list of layout objects for which you can specify a list of properties, see the Properties property in "Report Studio Object and Property Reference" (p. 605). 2. In the Properties pane, double-click the Properties property and select data items.
Chapter 10: Relational Reporting Style RDBMS to RDBMS joins set operations of any two queries master detail relationships between any two queries drill from any query to any other query
You cannot create the following types of joins: cube-to-cube (homogeneous) cube-to-cube (heterogeneous) cube-to-RDBMS cube-to-SAP BW SAP-BW-to-RDBMS
Steps
1. Pause the pointer over the query explorer button and click Queries.
2. In the Insertable Objects pane, drag one of the following objects to the work area.
Object
Query Join Union Intersect Except SQL
Description
Adds a query. Adds a join relationship. Adds a union operator. Adds an intersect operator. Adds an except (minus) operator. Adds SQL commands.
Chapter 10: Relational Reporting Style For example, if you added a join, set the Join Relationships property to define the join. 4. Double-click a query. 5. In the Insertable Objects pane, on the Source tab , drag data items to the Data Items pane.
Tip: You can add data items to the query that you do not want to appear in the layout. For example, to filter on Product line code and show Product line in the layout, you must add both data items to the query. 6. To create a new data item, in the Insertable Objects pane, on the Toolbox tab Item to the Data Item pane. 7. To add a filter, in the Insertable Objects pane, on the Toolbox tab, drag Filter to the Detail Filters or Summary Filters pane and define the filter expression (p. 324). Tip: You can also create a filter by dragging a data item from the Source tab to one of the filters panes and completing the filter expression. If you are working with a dimensional data source, you can quickly filter data by dragging a member to a filter pane instead of dragging the level to which the member belongs. For example, dragging the member 2006 from the Years level will filter data for the year 2006. This method is quicker than dragging the Years level and specifying data only for the year 2006 in the filter expression. When adding queries to the report right-click the work area and click Show Package Sources to see the queries that use data items from a package right-click the work area and click Expand References to see the relationships that exist between queries in the report, which is useful when you are creating complex queries , drag Data
Steps
1. Pause the pointer over the query explorer button 332 IBM Cognos Report Studio and click Queries.
Chapter 10: Relational Reporting Style 2. In the Insertable Objects pane, do the following: Drag Query to the work area. Drag Union, Intersect, or Except to the right of the query. Two drop zones appear to the right of the operator. Drag a Query object to each drop zone.
Two queries are created in the work area, and a shortcut to each query appears in the drop zones. 3. Double-click each query that makes up the union query and add data items to the query. 4. Return to the Queries work area. 5. Click the set operator that you added in step 2. 6. In the Properties pane, set the Duplicates property to remove or preserve duplicate rows. 7. Double-click the Projection List property. The projection list shows the list of projected data items for the set operation. 8. To automatically produce the list of projected data items, click Automatically generated. Report Studio generates the projection list using only one of the two queries in the union. 9. To add, delete, move, or rename data items in the projection list, click Manual and make the changes. 10. Double-click the union query. 11. In the Insertable Objects pane, on the Source tab , drag data items to the Data Items pane.
The union query is complete. You can now link the union query to a data container in the layout.
Chapter 10: Relational Reporting Style Drag Union to the right of the query. Two drop zones appear to the right of the operator. Drag a Query object to each drop zone. Query2 and Query3 are created in the work area, and a shortcut to each query appears in the drop zones.
The data item will be used to sort product lines and order methods in the report. 4. In the Expression Definition box, type 'A' and click OK. 5. In the Properties pane, set the Name property to Sort key 6. On the toolbar, press the back button 7. Double-click Query3. 8. In the Insertable Objects pane, on the Source tab, drag the following data items to the Data Items pane: from the Order method folder, drag Order method from the Sales fact folder, drag Revenue to return to the Queries work area.
9. Repeat steps 3 to 5 to create a Sort key data item in Query3 with 'B' as its definition.
Chapter 10: Relational Reporting Style 6. In the Edit box, type the following after Product line: & Order method 7. Click OK twice.
3. Select the Sort key data item and, in the Properties pane, set the Pre-Sort property to Sort ascending. When you run the report, all product lines will appear first followed by all order methods. 4. Pause the pointer over the page explorer button and click Page1.
5. In the Insertable Objects pane, on the Toolbox tab, drag List to the work area. 6. Click the list. 7. Click the select ancestor button in the title bar of the Properties pane and click List.
8. In the Properties pane, set the Query property to Query1. The list is linked to the union query. 9. Double-click the Properties property. 10. Select the Sort key check box and click OK. Since the Sort key data item does not appear in the list, you must make it a property of the list before it can sort product lines and order methods. 11. In the Insertable Objects pane, on the Data Items tab to the list: Product line & Order method Revenue , drag the following items from Query1
12. Run the report. A list report with two columns is produced. All product lines and order methods appear in the first column.
Steps
1. Pause the pointer over the query explorer button 2. In the Insertable Objects pane, do the following: Drag Query to the work area. Drag Join to the right of the query. Two drop zones appear to the right of the operator. Drag a Query object to each drop zone. Two queries are created in the work area, and a shortcut to each query appears in the drop zones. 3. Double-click each query that makes up the join query and add data items to the query. 4. On the toolbar, press the back button 5. Click Join. 6. In the Properties pane, double-click the Join Relationships property. 7. Click New Link. 8. To create the link, click a data item in the left query, and then click a data item in the right query. 9. For each query, click Cardinality and click a cardinality option. 10. Click Operator and click an operator. 11. To convert the join relationship to an expression, click Convert to expression. 336 IBM Cognos Report Studio to return to the Queries work area. and click Queries.
Chapter 10: Relational Reporting Style Convert the join relationship to an expression to make changes to the join definition. Note: After you convert the relationship to an expression, you cannot change it back to a relationship. 12. Double-click the join query. 13. In the Insertable Objects pane, on the Source tab , drag data items to the Data Items pane.
The join query is complete. You can now link the join query to a data container in the layout.
Steps
1. Pause the pointer over the query explorer button and click Queries.
2. Unlink the child query from its parent by selecting the parent query shortcut to the right of the child query and clicking the delete button 3. Double-click the child query. Package items are now available on the Source tab 4. Add package items. For example, to create a detail filter that references a package item, drag the filter object from the Toolbox tab to the Detail Filters pane, and then add the items in the Expression Definition box. 5. Click the up arrow button in the toolbar to return to the queries work area. 6. Recreate the link between the child query and the parent query by dragging the parent query to the right of the child query. 7. If necessary, double-click the child query to complete it. For example, if you created a filter, you may need to complete the filter expression. of the Insertable Objects pane. .
Chapter 10: Relational Reporting Style Associate a report page with the master query and use a data container, such as a list or crosstab, for the detail query.
You cannot display parent data in the child frame or child data in the parent frame. Also, you cannot perform calculations across master detail queries. You can use a master detail relationship to show data from separate data sources in a single report. However, the data sources must be contained in the same package. If you are working with an SAP BW data source, you cannot use a data item from the master query that contains non-ASCII values. To create a master detail relationship using queries that reference two different dimensional data sources, you must first link the members by aliasing the levels that contain the members.
Steps
1. To use a parent frame for the master query and a nested frame for the detail query: In the Insertable Objects pane, on the Toolbox tab Repeater to the report. Add a second data container to the object you inserted. You can insert a list, crosstab, chart, repeater table, or repeater into a list. You can add a list to a repeater table or repeater. Add data items to both data containers. , drag a List, Repeater Table, or
2. To associate a report page with the master query and use a data container for the detail query: Click anywhere in the report page. In the Properties pane, click the select ancestor button Set the Query property. In the Insertable Objects pane, on the Toolbox tab, drag a data container to the report. and click Page.
3. To link a data item in the master query to a parameter in the detail query instead of to another data item, create the parameter in the detail query. Use parameters to filter values at a lower level in the detail query. Pause the pointer over the query explorer button and click the detail query.
In the Insertable Objects pane, on the Toolbox tab, drag the Filter object to the Detail Filters box. In the Expression Definition box, create the parameter (p. 428). and click the report page.
4. Pause the pointer over the page explorer button 5. Click anywhere in the report page.
6. In the Properties pane, click the select ancestor button and click Page.
Chapter 10: Relational Reporting Style 7. Click the data container containing the details. 8. From the Data menu, click Master Detail Relationships. 9. Click New Link. 10. In the Master box, click the data item that will provide the primary information. 11. To link the master query to a data item, in the Detail box, click the data item that will provide the detailed information. 12. To link the master query to a parameter, in the Parameters box, click the parameter that will provide the detailed information. Tip: To delete a link, select the link and press the Delete key. 13. If your detail query object is a chart, you can disconnect a chart title from the master query. Click the chart title, and then, from the Data menu, click Master Detail Relationships. Clear the Use the master detail relationships from the chart check box.
14. If your master detail relationship includes a chart as the detail and you are using automatic axis ranges, you can set the same axis range for all the detail charts: Select the axis. In the Properties pane, under General, double-click the Axis Range property. Under Maximum and Minimum, click Automatic. The master detail report option is only available with automatic axis ranges. Under Master detail reports, select the Same range for all instances of chart check box.
For more information about axis ranges, see "Change the Axis Scale of a Current Default Chart" (p. 163). Tip: To avoid seeing the same data item twice in the report, click the data item in the data container driven by the detail query and click the cut button. This removes the item from the report display but keeps it in the query.
Master Detail or Burst Reports with Charts or Crosstabs May Result in Denial of Service
When running a master detail or burst report that includes a chart or crosstab, disk space exhaustion may cause the report or other requests to fail. A large set of burst keys or master rows may produce one or more charts per detail, resulting in many master detail executions. This may cause the temp folder to accumulate many gigabytes of temporary files containing data required for successful chart rendering. To avoid this issue, we recommend that you test large master detail or burst reports that include charts or crosstabs to determine the potential peak disk requirements for the report.
When working with a relational data source, the SQL that is produced by Report Studio depends on the report output selected. Note: MDX is not available with relational or DMR data sources.
Steps
1. To view the SQL for the entire report, from the Tools menu, click Show Generated SQL/MDX. This option shows the SQL that will be executed in the data source. The SQL is organized by query and by query result. If a query is used in more than one data container, a query result is generated for each data container. 2. To view the SQL for a specific query, do the following: Pause the pointer over the query explorer button and click the query.
The Generated SQL/MDX property shows the SQL that is executed when you view tabular data (from the Run menu, click View Tabular Data). Tabular data shows the data that is produced by the query in the form of a list. You can use this property to help you build advanced queries. The SQL for the query appears in the Generated SQL/MDX dialog box. You can choose to view native SQL, which is the SQL that is passed to the database when you execute the query, or Cognos SQL, which is a generic form of SQL that Report Studio uses. Cognos SQL is converted to native SQL before the query is executed.
Steps
1. From the File menu, click New.
Chapter 10: Relational Reporting Style 2. Click Blank. 3. Pause the pointer over the query explorer button and click Queries.
4. In the Insertable Objects pane, drag Query to the work area. 5. In the Insertable Objects pane, to build an SQL query, drag SQL to the right of the query Tip: You can drag SQL anywhere in the work area, and Report Studio will automatically create a query. 6. In the Properties pane, double-click the Data Source property and click a data source. 7. If required, set the Catalog property to the name of the catalog. 8. Double-click the SQL property and type the SQL. 9. Click Validate to check for errors. 10. In the Properties pane, set the Processing property to Limited Local. 11. Double-click the query. If the SQL is valid, the data items defined in the SQL appear in the Data Items pane. 12. Pause the pointer over the page explorer button and click a report page.
13. In the Insertable Objects pane, on the Toolbox tab, drag an object to the work area. For example, drag a list, crosstab, chart, or repeater. 14. Click the data container. 15. In the Properties pane, click the select ancestor button For example, if you created a list, click List. 16. Set the Query property to the query for the report type. 17. In the Insertable Objects pane, on the Data Items tab chose in the previous step to the data container. , drag the items from the query you and click the container you just created.
Steps
1. Pause the pointer over the query explorer button and click the query.
2. In the Properties pane, double-click the Generated SQL property. 3. Click Convert. 4. Click Validate to check for errors. User Guide 341
Chapter 10: Relational Reporting Style 5. In the Properties pane, set the Processing property to Limited Local.
Steps
1. Pause the pointer over the query explorer button 2. Double-click the SQL item. 3. Make changes in the text box. 4. Click Validate to check for errors. and click the SQL item under the query.
First-Rows Optimization
The SQL produced by Report Studio depends on the report format you choose. For example, if you specify HTML format, first-rows optimization is requested. All-rows is requested if you specify PDF. It is important for database administrators and programmers to remember that Report Studio does not always use first-rows optimization. If you assume first-rows optimization is always requested, this can cause the RDBMS optimizer to process the query differently than you expect.
Units of Measure
When creating calculations in IBM Cognos Report Studio and IBM Cognos Query Studio, you may encounter problems with the units of measure. For example, the calculation Cost*Cost returns the unit of measure * instead of a currency unit of measure. To avoid this problem, change the format of the corresponding column to obtain the desired unit of measure.
If both calculations have the same precedence, for example, if they are both business functions, then the row calculation takes precedence.
Limitations of Calculations
You should use only the expressions and functions available in Report Studio, and follow their syntax. Minimal checking exists for calculations. If your calculation uses an invalid expression, your report results may contain unexpected values. In addition, you should define member summaries as follows: summary_function (currentMeasurewithin setset_reference) where set_reference is a level or set inserted from the Source or Query tabs of the Insertable Objects pane. Unless otherwise required, summary_function should be the aggregate function. If you use an explicit summary function, you may encounter problems with measures and scenario or account dimension members (such as profit margin, distinct count, and so on) that have complex rollup rules, or members that do not roll up. Know your data, and confirm with the owner of the cube where overriding the automatic aggregation is safe. Because of the above limitations, summaries of calculations may not provide reliable values. For convenience, you may have to build reports where row summaries and calculated member columns intersect. In such reports, these intersections may contain unexpected values. In contrast, row calculations intersecting with column aggregates using the aggregate function are safe because the calculation is performed on the reliably summarized values.
Calculation
Rollup %
Description
Summarizes, or rolls up, all the values in a hierarchy. Calculates the value of a selected item as a percentage of another item. Calculates the difference between two items as a percentage. This calculation is only available if you select two members from different hierarchies, each from a different edge. This calculation takes the first selected member from edge A and the second selected member from edge B. The calculation result of a percent of base should be such that all the values for member A will compare itself to the intersect value of member A and B.
% Growth % Of Base
Custom
Allows you to specify your own value when performing a simple arithmetic calculation. Also allows you to change the order of operands or type a custom name for the new calculated row or column.
Steps
1. Select the items in your report to calculate. 2. Click the insert calculation button and select the calculation to perform.
Tip: Calculations that are not applicable to the items you selected are greyed out. 3. To change the order of the operands or the name of the calculated item added to the report, click Custom. The calculation appears as a new row or column in your report.
Chapter 10: Relational Reporting Style use the quality of service indicators to determine which functions to use in a report. The quality of service indicators are: not available (X) The function is not available for any data source in the package. limited availability (!!) The function is not available for some data sources in the package. limited support (!) The function is available for all data sources in the package but is not naturally supported for that data source. IBM Cognos BI uses a local approximation for that function. Because an approximation is used, performance can be poor and the results may not be what you expect. unconstrained (check mark) The function is available for all data sources.
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag Query Calculation to the report. 3. Type a meaningful name for your expression in the Name box. For example, if you are calculating the difference between 2007 revenue and 2006 revenue, you could name your expression 2007 - 2006 Revenue. 4. In the Available Components pane, define the calculation: To add data items that are not shown in the report, on the source tab data items. , double-click the .
To add data items that are in the report but not necessarily in the model, such as calculations, on the data items tab , double-click the data items. , double-click elements.
Tip: To filter the visible functions, summaries, and operators in the Available Components pane, click the filter button or what the function acts on. and filter by the function type, what the function returns,
Tip: You can also type the calculation directly in the Expression Definition box. When typing date values, ensure that the date format is correct for your database type. For information about specific functions, see "Calculation Components" (p. 773).
Any validation errors appear on the Errors tab of the Information pane. Tips: To show or hide the Available Components pane, click the available components button To show or hide the Information pane, click the information button . .
To copy and paste expression components in the Expression Definition pane, you can use the copy button and the paste button .
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag Layout Calculation to the report. 3. In the Available Components box, define the calculation: To add data items that are not shown in the report, on the source tab data items. , double-click .
To add data items that are in the report but not necessarily in the model, such as calculations, on the data items tab , double-click data items. , double-click data
To add data items from a specific query (p. 329), on the queries tab items. To add functions, summaries, and operators, on the functions tab
To add a value that is derived from a parameter, on the parameters tab a parameter.
Parameters define prompts (p. 421), drill-through reports (p. 525), and master detail relationships (p. 386). Tip: You can also type the expression directly in the Expression Definition box. For more information about creating expressions, see "Calculation Components" (p. 773). 4. Click the validate button .
If you are working with a dimensional data source, data items are organized hierarchically. Dimensional data sources include OLAP and dimensionally-modeled relational (DMR) data sources. The Source tab in the Insertable Objects pane shows a metadata-based view of the data.
347
(3)
(4)
(5) (6)
Note: The names of levels and members in a dimension come from the model. It is the responsibility of the modeler to provide meaningful names. 1. Package Packages are subsets of a model containing items that you can insert in a report. 2. Dimension Dimensions are broad groupings of descriptive data about a major aspect of a business, such as products, dates, or markets. 3. Level hierarchy Level hierarchies are more specific groupings within a dimension. For example, for the Years dimension, data can be organized into smaller groups, such as Years, Current Month, and Last Month. 4. Members folder Members folders contain the available members for a hierarchy or level. For example, the Members folder for the Years level hierarchy contains everything found in the Year, Quarter, and Month levels. 5. Level Levels are positions within the dimensional hierarchy that contain information at the same order of detail and have attributes in common. Multiple levels can exist within a level hierarchy, beginning with a root level. For example, the Years level hierarchy has the following related levels.
Level
Root
Level name
Years
Description
The root level.
Level
First
Level name
Year
Description
Years in the Years root level. For example, 2004, 2003, and 2002. Quarters for each year in the Year level. For example, 2004 Q1, 2004 Q2, and 2004 Q3. Months for each quarter in the Quarter level. For example, Jan., Feb., and Mar.
Second
Quarter
Third
Month
Tip: The Measures dimension contains the measures available in the data source. 6. Member property Member properties are attributes that each member possesses. For example, gender could be a property for all employee members. For more information about member properties, see "Insert a Member Property" (p. 352).
Steps
1. In the Insertable Objects pane, click the Source tab . .
2. To view the members-only tree view, click the view members tree button 3. To view the full package tree, click the view package tree button .
4. To change what is included in the tree, right-click and click Package Tree Settings. Use the Preview pane to choose the appropriate settings.
Insert a Member
By default, when you insert members from the source tree into your report with IBM Cognos Report Studio, single members are inserted without any details or children. You can change how members are inserted. For example, you may want to insert a member along with all its children or insert only the member's children. Or you may want to insert members as a set (p. 352). When you double-click a member that you have already inserted in your report, by default, its children are inserted after the parent member. You can control whether the children are inserted
Chapter 11: Dimensional Reporting Style before or after, nested, or not inserted at all: from the Tools menu, click Options, and then choose a setting on the Edit tab. When inserting members into a crosstab, ensure that you insert members from the same hierarchy on only one of the crosstab edges. If you insert members from the same hierarchy on both edges of the crosstab, you may encounter unexpected results. For example, a report that uses members from years in the rows and Quarters in the columns is very difficult to read because the useful numbers are distributed over a large area of mostly blank cells. Calculated members from the data source also appear in the source tree. However, calculated members in Microsoft SQL Server Analysis Services (SSAS) cubes do not appear in the list of descendants in the query. If you want these calculated members to appear in a report or a prompt, you must insert them explicitly.
Steps
1. In the Insertable Objects pane, from the Source tab and select how to insert members. 2. If you want to insert members within a set (p. 352) instead of inserting individual members, click the create sets for members button 3. Do one of the following: To insert a member above or below another member, drag the new member above or below a cell. A flashing black bar appears where you can drop the new member. To replace a member, drag the new member to the cell with the member to replace. A flashing black box appears where you can drop the new member. . , click the insert single member button
Steps
1. In the Insertable Objects pane, on the Source tab or level and click Search. , select and then right-click a hierarchy
2. In the Words box, type the words or characters for which to search. 3. Click the search parameter to use. 4. To search all descendants instead of just the immediate children, select the Search all descendants check box. For example, when performing a search in a hierarchy, selecting this check box returns members found in all the levels of the hierarchy. 350 IBM Cognos Report Studio
Chapter 11: Dimensional Reporting Style 5. Click Search. The search results appear in a hierarchical structure on the Search tab in the Insertable Objects pane. You can browse the hierarchy to explore members at lower levels. Tip: You can insert members directly from the Search tab into a report. This can save you time, because you do not have to define a filter. For example, instead of inserting Product line from the Source tab and adding a filter for Camping Equipment, you can insert Camping Equipment from the Search tab.
Nest Members
When you insert members in your report, you may want to nest them in another row or column to make your report easier to use. You can nest members from different dimensions. You can also nest sets. For example, in the following report, the quarters (Q1 to Q4) were selected from the Time dimension and nested only for the GO Americas member, which is from a different dimension.
When you filter out children from nested sets, the parent set still appears in your report. To avoid this, filter only the top level set and nest only the complete set of descendants at the desired levels.
Step
In the Insertable Objects pane, on the Source tab , drag the members to the work area.
Insert a Hierarchy
You can quickly insert entire hierarchies in a report. When using an IBM Cognos PowerCube, a SSAS cube, or a dimensionally-modeled relational data source, you can insert multiple hierarchies from the same dimension in a crosstab. For example, you can place one hierarchy from a dimension on an edge of the crosstab and nest another hierarchy from the same dimension on the same edge, on another edge, or in the Context filter area. You can also perform arithmetic, percentage, and ranking calculations using multiple hierarchies.
Steps
1. In the Insertable Objects pane, on the Source tab , drag the hierarchy to the report.
2. In the Insert Hierarchy dialog box, choose which members to insert: To insert only the root members of the hierarchy, click Root members. To insert all members of the hierarchy, click All members. Tip: The default Level Indentation property for all members is to show the hierarchical structure when the report is run.
Step
In the Insertable Objects pane, on the Source tab report. , drag the member property to the
Steps
1. In the Insertable Objects pane, click the create sets for members button adding individual members and creating sets for members. to toggle between
2. In the Insertable Objects pane, select the items to include in the set and drag them to the work area. 3. to add or remove members from the set, right-click the set and click Edit Members. 352 IBM Cognos Report Studio
Chapter 11: Dimensional Reporting Style Tip: you can also select the set and, in the Properties pane, double-click the Members property.
Edit a Set
After you create a set, you can view its definition to see, change, add, or delete operations, such as the following, that are performed on the set: excluding a member (p. 353) moving members to the top or bottom of a set (p. 354) applying a top or bottom filter (p. 354) filtering the set (p. 355) expanding or collapsing members in a set (p. 356)
The definition of a set shows you, in the graphical tree, the history of all the operations that are performed on the set. You can see and change the order in which the operations are performed. For example, you apply a top three filter and then exclude one member. Your set now contains only two members. You can choose to exclude the member before the top three filter so that your set still contains three members.
Steps
1. Right-click a set and click Edit Set. A graphical tree shows all the operations that are performed on the set of members. 2. To see the details of an operation, hover your mouse over an operation node. 3. To change the order of an operation, click the operation node, and click the right or left arrow. 4. To edit an operation, click the operation node and click the edit button 5. To add a new operation, click the new button . .
Steps
1. Right-click the set and click Edit Set. 2. Click the new button and click Exclude.
3. In the Exclude box, choose the members to exclude and use the right arrow to move them to the Members pane.
Steps
1. Right-click the set and click Edit Set. 2. Click the new button and click Move to Top or Move to Bottom.
3. In the Available members list, select the member to move to the top or bottom and click the right arrow. The members appear in the order shown in the Members list.
If the selected set contains a user-defined filter, the top or bottom rule applies only to the included values. For example, if you apply a filter to show only retailers with revenue greater than one million dollars, the bottom rule applies to the lowest values within those results. You can filter a set of members to show only those at the top or bottom and base the filter on the measure you are using and the set of members on the opposite edge. You can also specify a custom filter.
Steps
1. Right-click the set and click Edit Set. 2. Click the new button and click Top or Bottom.
3. Under Type, select whether to filter the Top or Bottom values. 4. To choose how and how much you want to filter, under Number of items, click Count, Percent, or Sum and type the number of data items to show, the percent of data items to show, or the value to sum. 5. Choose the intersection on which to base your filter by clicking the ellipsis (...) button and selecting the members and measure for the intersection from either the Source tab or the Calculated Members and Measures tab. For more information, see "Create an Intersection (Tuple)" (p. 400). 354 IBM Cognos Report Studio
Steps
1. Right-click the set and click Edit Set. 2. Click the new button and click Set Filter.
3. Select how you want to filter. If you want to filter the set using a caption, click Caption. If you want to filter the set using a member property, click Property and select from the drop-down list. If you want to filter the set using an intersection of members, or tuple, click Intersection (tuple) and click the ellipsis (...) button. Then, from Available members and measures, select the desired items and click the right arrow to move them to the Intersection members and measures list. 4. Specify the Operator and Value to complete your condition and click OK. 5. To add additional conditions, click the new button .
6. If you include multiple conditions in your filter, use the AND, OR, and NOT operators to combine them. To add an operator, select the conditions that you want to combine, and click an operator. To change an operator, double-click the operator to toggle among available ones or select the operator and then select a different one from the list.
Chapter 11: Dimensional Reporting Style To remove an operator, select it in the condition string, and then click the delete button . 7. To change a condition, click the edit button .
Steps
1. Right-click the set and click Edit Set. 2. Click the new button and click Expand or Collapse.
3. In the Available members list, select the member to expand or collapse and click the right arrow to move it to the Members list.
Chapter 11: Dimensional Reporting Style Extended data items are optional. If you use extended data items in a report, we recommend that you use them for the entire report instead of mixing them with expression-based data items. For information about turning on extended data items, see "Specify Report Properties" (p. 459). Note: In IBM Cognos Business Insight Advanced, extended data items are always used. Therefore, if you are authoring a report in IBM Cognos Report Studio for report consumers who are working in Business Insight Advanced, you should use extended data items.
Some of these behaviors may be corrected in a future release, while others may be codified as supported behavior. To avoid these behaviors, do not use levels from ragged or unbalanced hierarchies. Instead of using levels, use the descendants, children, or ancestors. We consider the following scenarios to be safe: One or more nested level references on an edge with no modifying expression. A hierarchy reference on only one level of one edge. One or more explicit members or sets of explicit members as siblings on only one level of one edge. Summaries of the previous three scenarios.
In all cases, you should test reports based on ragged and unbalanced hierarchies to confirm that hierarchy gaps are handled correctly. For more information about ragged or unbalanced hierarchies, see the IBM Cognos Framework Manager User Guide.
Limited Support for Relational Functions When Used with OLAP Data Sources
When working with an OLAP data source, we recommend that you not use relational functions, such as substring and concatenation functions, in a report that also contains a measure with the
Chapter 11: Dimensional Reporting Style Aggregate Function property set to Calculated or Automatic in the model. If you do so, you may encounter unexpected results. For example, some summaries are calculated using the Minimum function instead of the aggregate function derived from the individual query items. In the expression editor, an exclamation mark (!) that precedes a function indicates that the function is not naturally supported for that data source. IBM Cognos BI uses a local approximation for that function. Because an approximation is used, performance can be degraded and the results may not be what you expect. For example, you create an IBM Cognos Query Studio report that contains the data items Product line and Retailer site count. The footer summary is set to Calculated. You then insert a calculated column that returns the first three characters of the Product line item, which uses the relational concatenation function. The footer summary now shows the lowest gross margin value.
For more information about aggregation functions, see the Query Studio User Guide or the IBM Cognos Report Studio User Guide.
You can specify summary aggregation in different ways by using any of the following: aggregation properties that are specified in the model (p. 317) the Auto Group & Summarize property (p. 316) the summarize button in the toolbar (p. 360) aggregation properties for a data item (p. 317) the solve order of calculations (p. 405)
Limitation
If a summary is applied to a report that contains binary large object (BLOB) data, such as images or multimedia objects, you cannot also perform grouping or sorting.
Summarizing Sets
When working with Microsoft SQL Server Analysis Services (SSAS) data sources, We recommend that you not summarize values for sets which contain members that are descendants of other members in the same set. If you do so, SSAS double-counts values for automatic summaries and all data sources double-counts values for explicit summaries.
Steps
1. Click the item to which to add a summary. 2. Click the summarize button and click a summary type (p. 365).
3. To change the summary label, do the following: Click the label. In the Properties pane, under Text Source, set the Source Type property to the source type to define the label. For example, set it as Data Item Value to produce a dynamic label for the summary based on data item values. Set the property below Source Type to specify the label. This property depends on the source type you chose. For example, if you chose Data Item Value as the source type, set the Data Item Value property to the data item to use to define the label. In crosstabs and charts, the summary appears as a node (p. 117).
Tips
To change a summary, select it and, in the Properties pane, under Data Item, click Aggregation Method (p. 317) and choose a different function. In crosstabs, you can add multiple summaries at the same level. For example, you have a crosstab with Product line as rows, Order year as columns, and Revenue as the measure. For Product line, you can add the Total summary as a header, which will total all revenue for each order year. You can then add the Average summary as a footer, which will give the average revenue of all product lines for each order year.
the report.
aggregate ([measure within aggregate [data item]) summarizes each level of details in
the report. For example, in the following crosstab, if you specified Total as the summary, these aggregate expressions are produced for each aggregation mode:
This expression totals the quarter values from the data source at the intersecting product line. At the bottom right corner, it totals the aggregate over all product lines for each quarter.
Total ([Revenue] within detail [Quarter])
This expression totals the month values visible in the report at the intersecting product line. At the bottom right corner, it totals all of the intersecting month - product line values visible in the report.
Total ([Revenue] within aggregate [Quarter])
This expression totals the month values visible in the report at the intersecting product line into quarters. At the bottom right corner, it does the same, but starting with the aggregate over all product lines for each month. In simple cases, the members and values visible in the report and the aggregate rules in the report are the same as those in the data source and all of these expressions produce the same results. For example, for the quarter and month values, if you are totaling the values for all months in all quarters, it makes no difference whether the visible values, the values in the cube, or the month and quarter values are used. The result is the same.
Tip: The Total Revenue by Country sample report (p. 588) in the GO Data Warehouse (query) package includes a total summary function. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). Different results appear when you start filtering, changing aggregation types, or using set expressions or unions. For example, the following crosstab shows the quantity of products sold across all product types for each product line. The bottom of the crosstab has three summary values that show the average quantity of products sold by product line.
Chapter 11: Dimensional Reporting Style Each summary value uses a different aggregation mode that is indicated in the summary name.
Average (Product line) - within detail
For each product line, the average of the detail values is calculated. This is equivalent to applying the average aggregation function to the Product type column. This summary is the average of the product type averages.
Average (Product line) - within set
This summary is the average of the product type values rolled up into sets at the Product line level. The values are obtained from the data source. If filters or slicers exist, the values are recomputed using the aggregation rules defined in the data source. In most cases, you should use the within detail aggregation mode because the results are easiest to understand and the same as the results for footers in a grouped list report. In more complex cases, you may consider the within aggregate aggregation mode. The within set aggregation mode should be reserved for reports with a purely dimensional focus such as when there are no detail or summary filters defined in the report.
For PowerCubes, Aggregate (Product line) is the sum of the product lines excluding duplicates. For more information about how the aggregate function is processed, see "Summary Functions" (p. 365).
when the report is run: The aggregation function must apply to all members of a level or all children of a member. To use OLAP functions in detail filters that are applied to a dimension that is not in the report, or is at a level below what is being reported, only the functions children, level, members,
roleValue, and rootMembers will work.
You cannot define detail filters that reference one or more measures and are set to After auto aggregation.
You cannot define context filters that have more than one member from a dimension that does not appear in the report. Context filters that have more than one member from a dimension that appears in the report produce errors in all cells that are ancestors of the slicer members. If a crosstab has a row that is a set of members from one dimension (dimension A) and another row that is a set of members from another dimension (dimension B), and a context filter containing members from dimension A is defined, error cells are produced in the row that contains members from dimension B. If a context filter contains members from a dimension, and a crosstab has a row that is a set of members from a higher level than the slicer members, error cells are produced for that row. Error cells are produced when drilling down on a crosstab that has two nested levels.
If you do not consider these limitations in a calculation, the report may return inaccurate results. If there is a non-measure calculation that returns a constant or contains a summary function, and the calculation has a lower solve order than the measure being aggregated, error cells are returned for the aggregated measure. In list reports, error cells are produced as a result of these limitations if the list uses an OLAP function other than children, filter, level, members, roleValue, and rootMembers.
Rolling Average
A rolling average continuously updates the average of a data set to include all the data in the set until that point. For example, the rolling average of return quantities at March 2004 would be 364 IBM Cognos Report Studio
Chapter 11: Dimensional Reporting Style calculated by adding the return quantities in January, February, and March, and then dividing that sum by three. Tip: The Historical Revenue sample report (p. 576) in the Sales and Marketing (Cube) package also includes a rolling average. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Moving Average
A moving average calculates the average of a data set for a specified period. For example, the moving average of return quantities at March 2004 with a specified period of two would be calculated by adding the return quantities in February and March and then dividing that sum by two. In Report Studio, you can use a prompt to specify the period.
Steps
1. In the Insertable Objects pane, on the Toolbox tab report. 2. Double-click As of Time Expression. 3. In the Expression Definition box, type the expression. The expression must return a date-time value. Tip: You can drag a function that returns a constant from the Constants folder in the Functions tab. You can then change the constant to the value to use. If you do not specify a time, the default time 12:00:00.000 AM is used. , drag As of Time Expression to the
Summary Functions
This section describes the summary functions that are available in Report Studio. Some functions, on the toolbar. such as Custom, are available only when you click the summarize button Additional summary functions are available in the expression editor (p. 773).
Automatic Summary
Depending on the type of data item, applies the function None, Summarize, or Calculated based on the context in which the data item appears. Calculated is applied if the underlying data source is OLAP. It is also applied if the data item expression contains a summary function is an ifthenelse or case expression that contains a reference to at least a modeled measure in its condition contains a reference to a model calculation or to a measure that has the Regular Aggregate property set to a value other than Unsupported contains a reference to at least one data item that has the Rollup Aggregate Function property set to a value other than None If the underlying data source is relational and if the data item expression contains no summary functions and a reference to at least one fact that has the Regular Aggregate property set to a value other than Unsupported, Summarize is applied. If the underlying data source is OLAP and if the data item expression contains no summary functions and a reference to at least one fact that has the Regular Aggregate property set to a value other than Unsupported, Calculated is applied. If the underlying data source is SAP BW, reports containing aggregations and summaries run more efficiently if the aggregation applied to a query item matches the aggregation rule for the underlying key figure on the SAP BW server. In Report Studio, the easiest way to accomplish this is to change the value of the Aggregate Function property to Automatic. In all other contexts, None is applied. For relational and dimensionally modeled relational (DMR) data sources, if this function is applied to a data item expression that has the average function, weighted averages are computed based on the lowest level detail values in the data source. This is the default function.
Average
Adds all existing values and then divides by the count of existing values.
Calculated
Specifies that all the terms within the expression for a data item are aggregated according to their own rollup rules, and then the results of those aggregations are computed within the overall expression. For example, a list contains the data item Quantity with the Aggregation property set to Total. You add a query calculation named Quantity Calculated. You define its expression as Quantity + 100 and you set its Aggregation property to Calculated. When you run the report, the values for Quantity Calculated are computed by first adding all values for Quantity and then adding 100 to each value.
Chapter 11: Dimensional Reporting Style In crosstabs, this function overrides any solve orders that are specified (p. 405).
Count
Counts all existing values. If the underlying data source is OLAP, Count behaves as follows if it is specified in the Rollup Aggregate Function property for a data item.
Object
Level Member set Attribute Measure
Behavior
Count distinct is used. A warning appears when you validate the report. Count distinct is used. A warning appears when you validate the report.
Not supported. An error is returned when you run the report. Supported.
If the underlying data source is dimensionally modeled relational (DMR), Count behaves as follows if it is specified in the Aggregate Function or Rollup Aggregate Function property for a data item.
Object
Level Member set Attribute Measure
Behavior
Count distinct is used. A warning appears when you validate the report. Count distinct is used. A warning appears when you validate the report.
Supported. Supported.
If you add the count summary to a non-fact column in a list and then group the column, the column will not be grouped when you run the report. To resolve this issue, group the column first before adding the count summary.
Count Distinct
Returns the total number of unique non-null records. If the underlying data source is OLAP, count distinct behaves as follows if it is specified in the Rollup Aggregate Function property for a data item.
Object
Level Member set
Behavior
Supported. Supported.
Object
Attribute Measure
Behavior
Not supported. An error is returned when you run the report. Not supported. An error is returned when you run the report.
If the underlying data source is dimensionally modeled relational (DMR), count distinct is supported for levels, member sets, attributes, and measures when it is specified in the Aggregate Function or Rollup Aggregate Function property for a data item.
Custom
Summarizes data based on an expression that you define.
Maximum
Selects the largest existing value.
Median
Returns the median value of the selected data item.
Minimum
Selects the smallest existing value.
None
Does not aggregate values. If the underlying data source is relational, the data item is grouped when the query property Auto Group & Summarize (p. 316) is set to Yes.
Not Applicable
This function is available only for the Aggregate Function property. It specifies that the aggregate attribute is ignored. For example, the calculation will be applied after the data is aggregated. This function differs from the Calculated function, which applies aggregation to the rows and then performs the calculation. For example, for the average ( [Quantity] ) + 5 expression, when the Aggregate Function property is set to Not Applicable, five is added to the average of the single Quantity value. When the function is set to Calculated, five is added to the average of a set of numbers. This setting should not be applied to a simple model reference. This setting is relevant only for reports that are upgraded from IBM Cognos ReportNet 1.x.
Standard Deviation
Returns the standard deviation of the selected data item. From a mathematical perspective, this function is not useful for small numbers of items and is not supported if the query property Auto Group & Summarize (p. 316) is set to Yes.
Summarize
Aggregates data based on model or data type information. This function can be thought of as a calculate and then aggregate rule. Data is aggregated using the following rules: If the underlying data source type is relational and the data item or calculation is a reference to a single fact query item in the model that has the Regular Aggregate property set to Sum, Maximum, Minimum, Average, or Count, aggregate data using this function. Otherwise, data is aggregated according to the data type of the data item as follows: Total is applied for numeric and interval values. Maximum is applied for date, time, and date-time values. Count is applied for everything else.
The underlying data source type can be dimensional and the data item or calculation a reference to a single item in the model. In this case, if the Regular Aggregate property of the model item is not unknown, the summary function that corresponds to the Regular Aggregate property is applied. If the Regular Aggregate property is unknown, set the function to Calculated. For example, a list contains the data item Quantity with the Aggregation property set to Average. You add a query calculation named Quantity Summarize. You define its expression as Quantity + 100 and you set its Aggregation property to Summarize. When you run the report, the values for Quantity Summarize are computed by first adding 100 to each value for Quantity and then calculating the total. The total is calculated because Quantity contains numeric values and the expression for Quantity Summarize is not a simple data item reference. If Quantity Summarize is defined as Quantity, the function Average is applied to each value.
Total
Adds all existing values.
Variance
Returns the variance of the selected data item. Note: From a mathematical perspective, this function is not useful for small numbers of items and is not supported if the query property Auto Group & Summarize is set to Yes.
Mapping Summary Functions From Data Sources to Framework Manager and Report Studio
The summary functions available in IBM Cognos Framework Manager and Report Studio reflect summary functions supported by relational and dimensional data sources. The following table shows how summary functions in data sources are mapped to Framework Manager and Report Studio.
Data source
None specified, or none average (avg)
Framework Manager
Unsupported Average
Report Studio
None Average
Data source
count count distinct
Framework Manager
Count Count Distinct Maximum Minimum Median
Report Studio
Count Count distinct Maximum Minimum Median Standard Deviation Total Variance Automatic Automatic Automatic Automatic Automatic Automatic Automatic Automatic
Sum Variance Count Non-Zero unknown unknown unknown unknown unknown unknown unknown
variance (var)
count non zero average non zero external any calculated unknown first_period last_period
The following summary functions exist only in either Framework Manager or Report Studio. There is no corresponding summary function in data sources.
Framework Manager
Automatic Calculated No corresponding summary function No corresponding summary function 370 IBM Cognos Report Studio
Report Studio
Automatic Calculated Summarize Not Applicable
Note: Summary and detail filters (p. 324) are recommended only for focusing data in relational reporting (p. 324). The approach you choose should depend on the capabilities of the data source, the performance requirements, the persistence of the dataset, and how complex you want the report to be. If you filter values that are floating-point numbers, you may encounter imprecise filtering results due to rounding or data truncation. Floating-point numbers may appear differently in the report than how than how they are stored in the data source. To ensure accurate results, your filter criteria should account for any rounding issues. Consider the limitations when filtering dimensional data (p. 373) and when filtering data from SAP BW data sources filtering. You can also use prompts, or prompt controls, to allow users to provide input for the filter (p. 421).
The members that are used as the context filter appear in the report header when you run the report. Any summary values in the report are recomputed to reflect the results returned by the context filter. You can create multiple context filters to filter across two or more different hierarchies.
Chapter 11: Dimensional Reporting Style Tip: The Budget vs. Actual sample report (p. 579) in the Sales and Marketing (cube) package includes a context filter. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). Note: There are limitations when using context filters: Calculated measures do not get suppressed by the filter. To avoid this, drag the desired members from the Insertable Objects pane directly onto the row or column edge instead of using the members in the context filter. Suppression can be slow on large cubes, because all of the data is retrieved and then filtered. If the desired data in the context filter is from a hierarchy that appears on the crosstab edge, drag the desired members from the Insertable Objects pane directly onto the crosstab edge. If the desired data is from a hierarchy that does not appear on the crosstab edge, use a context filter in conjunction with other means to limit the data, such as a top or bottom filter. To use a calculation or expression to define a context filter, create a slicer member set using the query explorer. A slicer member set is an expression that returns a set of members from the same dimension. For example, you can define a slicer member set that filters for the top five products with the greatest revenue. Context filters are different from other filters. When you filter data, members that do not meet the filter criteria are removed from the report. A context filter does not remove members from a report. Instead, their values are filtered or and you see blank cells. You can also use context filters as prompts when the report is run (p. 373). When creating context filters, use only members from hierarchies that are not already projected on an edge of the crosstab use only one member per hierarchy
3. Drag the item on which to filter into the Context filter section of the overview area. 4. To change context, select a new item from the Context filter box.
Chapter 11: Dimensional Reporting Style You must join the members in the expression by using the set function. For example, the following expression contains the Fax and Telephone members from the Order Method dimension:
set ([Fax],[Telephone])
4. To add members from another dimension, repeat step 2 to create a separate slicer member set.
Steps
1. In the Context filter section of the overview area, click the down arrow next to the filter to use as a prompt. 2. Click Prompt and do one of the following: To remove the prompt, click No Prompt. To allow users who run the report to select any member from the hierarchy, click Prompt on Hierarchy. To allow users who run the report to select from a list of members in the current level, click Prompt on Level.
Chapter 11: Dimensional Reporting Style members that can appear nested below them. In such cases, filtering results may not be what you expect: the higher-lever members may or may not appear in the result. While this is most commonly seen within a single hierarchy, it can also happen across different hierarchies and dimensions. To avoid this problem, ensure that the lower-level sets are constructed to ensure that they are never empty for any of the members in the higher-level set. For example, you could filter only the top level set and nest only the complete set of descendants at the desired levels below.
Time Hierarchies
Error characters also appear in summaries if your report includes a time hierarchy and you use two or more members from a different time hierarchy as a context filter. To avoid the error, use only one member as the context filter.
Limitations When Specifying the Scope of Summary Filters with Dimensional Data Sources
When you specify the scope for a summary filter, consider the following limitations. The scope of a summary filter must refer to a grouped data item for list reports. Otherwise, you encounter the following error: OP-ERR-0212 The summary filter scope (Scope1) found in the query (Query1) is not valid. It must refer to a grouped query item. can refer to multiple data items, but it can refer to only one data item per edge of the crosstab. Otherwise, you encounter the following error: OP-ERR-0213 The summary filter scope (Scope1) found in the query (Query1) is not valid. Referencing more than one query item from the same edge is not supported. must refer to a level and cannot refer to a measure. Otherwise, you encounter the following error: OP-ERR-0209 The summary filter scope (Scope1) found in the query (Query1) is not valid. It must refer to a level.
Chapter 11: Dimensional Reporting Style must refer to a data item that is projected on an edge of the crosstab. If the scope of a summary filter refers to a data item that was deleted from the report layout, you may encounter unexpected results. Otherwise, you encounter the following error: OP-ERR-0213 The summary filter scope (Scope1) found in the query (Query1) is not valid. Referencing more than one query item from the same edge is not supported. must refer to unique data items. For example, the summary filter cannot refer to the same data item more than once.
To resolve the problem, do one of the following: Fully qualify the item by using items from the source tree instead of data items from the report. Use prompt controls in the report instead of hand coded prompts.
Chapter 11: Dimensional Reporting Style Tip: The Sales Growth Year Over Year sample report (p. 586) in the GO Data Warehouse (analysis) package includes sorting. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Before you can perform this sorting, you must create sets for the members in your report (p. 352). In nested crosstabs, items are sorted based on the values of the innermost nested row or column of the opposite axis. For example, a crosstab contains years in the columns and retailers nested within product line in the rows. Select 2004, sort in descending order, and you see retailers listed from the largest value to the smallest value for each product line.
Chapter 11: Dimensional Reporting Style Tip: By level identifier, we are referring to a query item with the same name as the level that has the role of _businessKey. Each level in a SAP BW hierarchy has a level identifier.
Chapter 11: Dimensional Reporting Style tasks and other tasks that are more difficult to do in the report layout. For example, use Query Explorer to improve performance by changing the order in which items are queried from the database, or by changing query properties to allow the report server to execute queries concurrently where possible Note: By default, queries run sequentially. Your administrator must enable the concurrent query execution feature. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide. view or add filters and parameters and modify their properties view or add dimensions, levels, and facts incorporate SQL statements that come from other reports or reports that you write create complex queries using set operations and joins
Steps
1. Click a layout object. Tip: For a list of layout objects for which you can specify a list of properties, see the Properties property in "Report Studio Object and Property Reference" (p. 605). 2. In the Properties pane, double-click the Properties property and select data items.
Chapter 11: Dimensional Reporting Style 3. In the Insertable Objects pane, on the Data Items tab the data container. , drag data items from the query to
You cannot create the following types of joins: cube-to-cube (homogeneous) cube-to-cube (heterogeneous) cube-to-RDBMS User Guide 379
Multiple-fact Queries
You must understand the result of a query on more than one fact table to achieve the results that you want. The result of a multiple-fact query varies depending on whether you are working with conformed or non-conformed dimensions, on the level of granularity, and on the additive nature of the data. The following data source has characteristics that affect the results if you use a multiple-fact query with Inventory levels and Sales. Granularity for time differs in that inventory levels are recorded monthly and sales are recorded daily. Also, Sales includes a non-conformed dimension, Order method.
The following examples will help you interpret the results of a multiple-fact query and understand the options for changing a query to obtain the results that you want.
Conformed Dimensions
Individual queries on Inventory levels and Sales by Quarter and Product yield the following results.
A query on multiple facts and conformed dimensions respects the cardinality between each fact table and its dimensions and returns all the rows from each fact table. The fact tables are matched on their common keys, Product and Time. Product and Time apply to both Inventory levels and Sales. However, inventory levels are recorded monthly and sales are recorded daily. In this example, results are automatically aggregated to the lowest common level of granularity. Quantity, which comes from Sales, is rolled up to months. Nulls are often returned for this type of query because a combination of dimensional elements in one fact table may not exist in the other. For example, if Husky Rope 50 was available in inventory
Chapter 11: Dimensional Reporting Style in 200501, but there were no sales of this product in the same time period, Quantity would show a null in the Husky Rope 50 row. IBM Cognos BI does not support conformed dimensions generated by Framework Manager for SAP BW data sources.
Non-conformed Dimensions
If a non-conformed dimension is added to the query, the nature of the results returned by the query is changed.
Order Method exists only in Sales. Therefore, it is no longer possible to aggregate records to a lowest common level of granularity because one side of the query has dimensionality that is not common to the other side of the query. Opening inventory and Closing inventory results are repeated because it is no longer possible to relate a single value from these columns to one value from Quantity. Grouping on the Quarter key demonstrates that the result in this example is based on the same data set as the query on conformed dimensions. Summary values are the same. For example, the total quantity for 200501 is 2,766 in both examples.
The filter is applied only to one subject area, Sales. Because Order method does not exist in Inventory levels, all products still appear in the report. For example, Course Pro Umbrella was in inventory in 200602. Because there were no sales using the fax order method for this product in 200602, Order method and Quantity are null. To remove the nulls, change the filter so that it is applied to the result set instead of the data source. By applying the filter to the result set, you get the same results that you would get if you were working with conformed dimensions. Only the products that were ordered using the fax order method appear in the report.
The summary for quantity is 986 using either filter method, which shows that the results are based on the same data set. In Report Studio, there are two types of filters. A detail filter is applied to the data source. A summary filter is applied to the result set. For more information about how to apply detail and summary filters, see "Create a Detail or Summary Filter" (p. 324).
Steps
1. Pause the pointer over the query explorer button and click Queries.
2. In the Insertable Objects pane, drag one of the following objects to the work area.
Object
Query SQL MDX
Description
Adds a query. Adds SQL commands. Adds MDX commands.
3. In the Properties pane, set the object properties. 4. Double-click a query. 5. In the Insertable Objects pane, on the Source tab , drag data items to the Data Items pane.
Tip: You can add data items to the query that you do not want to appear in the layout. For example, to filter on Product line code and show Product line in the layout, you must add both data items to the query. 6. To create a new data item, in the Insertable Objects pane, on the Toolbox tab Item to the Data Item pane. 7. To add a filter, in the Insertable Objects pane, on the Toolbox tab, drag Filter to the Detail Filters or Summary Filters pane and define the filter expression (p. 324). Tip: You can also create a filter by dragging a data item from the Source tab to one of the filters panes and completing the filter expression. If you are working with a dimensional data source, you can quickly filter data by dragging a member to a filter pane instead of dragging the level to which the member belongs. For example, dragging the member 2006 from the Years level will filter data for the year 2006. This method is quicker than dragging the Years level and specifying data only for the year 2006 in the filter expression. When adding queries to the report right-click the work area and click Show Package Sources to see the queries that use data items from a package , drag Data
Chapter 11: Dimensional Reporting Style right-click the work area and click Expand References to see the relationships that exist between queries in the report, which is useful when you are creating complex queries
If you do not add dimension information and the data source contains dimensions, then the dimension structure of the data source is used. If the data source contains no dimensions, IBM Cognos BI creates a default dimension structure. Dimension information is not intended to define the presentation of information, but to help query planning. Dimension information can be considered as a form of query hint. In addition, users will not be able to drill down (p. 414) on dimensions that you add to a report.
Steps
1. Pause the pointer over the query explorer button and click a query.
2. In the Properties pane, set the Override Dimension Info property to Yes. The Dimension Info tab appears in the work area. 3. Click the Dimension Info tab. 4. To create a dimension from an existing data item, in the Insertable Objects pane, on the Source tab , drag the data item to the Dimensions pane.
Report Studio automatically generates the entire dimension. 5. To create a new dimension, in the Insertable Objects pane, on the Toolbox tab , drag
Dimension to the Dimensions pane, and then build the new dimension by adding objects to the dimension: To create a level, drag Level. To create a level hierarchy, drag Level Hierarchy. To create a member hierarchy, drag Member Hierarchy.
For information about these objects, see "Add Dimensional Data to a Report" (p. 347). 6. In the Insertable Objects pane, on the Source tab, drag data items to the objects you added in the previous step. For example, if you created a level, define a key by dragging a data item to the Keys folder.
Chapter 11: Dimensional Reporting Style 7. To create a fact, in the Insertable Objects pane, on the Source tab, drag a data item to the Facts pane.
Steps
1. Open Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click Crosstab and click OK. 4. In the Insertable Objects pane, on the Source tab , drag the following data items from Sales
and Marketing (query), Sales (query) to the crosstab: from the Product folder, drag Product line as rows from the Time dimension folder, drag Year as nested rows from the Order method folder, drag Order method as columns from the Sales fact folder, drag Revenue as the measure
5. Right-click the crosstab and click Go to Query. 6. In the Properties pane, set the Override Dimension Info property to Yes. The Dimension Info tab appears at the bottom of the work area. 7. Click the Dimension Info tab. 8. In the Insertable Objects pane, on the Source tab, drag the following items to the Dimensions pane: Product line Year
Product line and Year become separate dimensions in the query. 9. Pause the pointer over the page explorer button 10. Click Year. 11. In the Properties pane, double-click the Sorting property. 12. In the Data Items box, drag Year to the Sort List box. 13. Run the report. and click Page1.
Chapter 11: Dimensional Reporting Style All order years appear for all product lines, even if no revenue was produced.
You cannot display parent data in the child frame or child data in the parent frame. Also, you cannot perform calculations across master detail queries. You can use a master detail relationship to show data from separate data sources in a single report. However, the data sources must be contained in the same package. If you are working with an SAP BW data source, you cannot use a data item from the master query that contains non-ASCII values. To create a master detail relationship using queries that reference two different dimensional data sources, you must first link the members by aliasing the levels that contain the members.
Steps
1. To use a parent frame for the master query and a nested frame for the detail query: In the Insertable Objects pane, on the Toolbox tab Repeater to the report. 386 IBM Cognos Report Studio , drag a List, Repeater Table, or
Chapter 11: Dimensional Reporting Style Add a second data container to the object you inserted. You can insert a list, crosstab, chart, repeater table, or repeater into a list. You can add a list to a repeater table or repeater. Add data items to both data containers.
2. To associate a report page with the master query and use a data container for the detail query: Click anywhere in the report page. In the Properties pane, click the select ancestor button Set the Query property. In the Insertable Objects pane, on the Toolbox tab, drag a data container to the report. and click Page.
3. To link a data item in the master query to a parameter in the detail query instead of to another data item, create the parameter in the detail query. Use parameters to filter values at a lower level in the detail query. Pause the pointer over the query explorer button and click the detail query.
In the Insertable Objects pane, on the Toolbox tab, drag the Filter object to the Detail Filters box. In the Expression Definition box, create the parameter (p. 428). and click the report page.
4. Pause the pointer over the page explorer button 5. Click anywhere in the report page.
6. In the Properties pane, click the select ancestor button and click Page. 7. Click the data container containing the details. 8. From the Data menu, click Master Detail Relationships. 9. Click New Link. 10. In the Master box, click the data item that will provide the primary information. 11. To link the master query to a data item, in the Detail box, click the data item that will provide the detailed information. 12. To link the master query to a parameter, in the Parameters box, click the parameter that will provide the detailed information. Tip: To delete a link, select the link and press the Delete key. 13. If your detail query object is a chart, you can disconnect a chart title from the master query. Click the chart title, and then, from the Data menu, click Master Detail Relationships. Clear the Use the master detail relationships from the chart check box.
Chapter 11: Dimensional Reporting Style 14. If your master detail relationship includes a chart as the detail and you are using automatic axis ranges, you can set the same axis range for all the detail charts: Select the axis. In the Properties pane, under General, double-click the Axis Range property. Under Maximum and Minimum, click Automatic. The master detail report option is only available with automatic axis ranges. Under Master detail reports, select the Same range for all instances of chart check box.
For more information about axis ranges, see "Change the Axis Scale of a Current Default Chart" (p. 163). Tip: To avoid seeing the same data item twice in the report, click the data item in the data container driven by the detail query and click the cut button. This removes the item from the report display but keeps it in the query.
Steps
1. In the parent frame or the report page, double-click the level that contains the member that will provide the primary information. The Data Item Expression dialog box appears. 2. In the Expression Definition box, use the expression in the following function:
caption ( expression )
For example, caption ( [great_outdoors_company].[Sales Territory].[Sales Territory].[Sales territory] ) 3. Repeat steps 1 to 2 for the level in the data container that contains the details. A caption alias is created for each level. You can now use the caption alias for each level to create a master detail relationship using member captions, which are the same, instead of MUNs, which are different. You can now create the master detail relationship between the two levels.
Master Detail or Burst Reports with Charts or Crosstabs May Result in Denial of Service
When running a master detail or burst report that includes a chart or crosstab, disk space exhaustion may cause the report or other requests to fail. A large set of burst keys or master rows may produce 388 IBM Cognos Report Studio
Chapter 11: Dimensional Reporting Style one or more charts per detail, resulting in many master detail executions. This may cause the temp folder to accumulate many gigabytes of temporary files containing data required for successful chart rendering. To avoid this issue, we recommend that you test large master detail or burst reports that include charts or crosstabs to determine the potential peak disk requirements for the report.
Steps
1. To view the SQL or MDX for the entire report, from the Tools menu, click Show Generated SQL/MDX. This option shows the SQL or MDX that will be executed in the data source. The SQL or MDX is organized by query and by query result. If a query is used in more than one data container, a query result is generated for each data container. 2. To view the SQL or MDX for a specific query, do the following: Pause the pointer over the query explorer button and click the query.
The Generated SQL/MDX property shows the SQL or MDX that is executed when you view tabular data (from the Run menu, click View Tabular Data). Tabular data shows the data that is produced by the query in the form of a list. You can use this property to help you build advanced queries. The SQL or MDX for the query appears in the Generated SQL/MDX dialog box. For SQL, you can choose to view native SQL, which is the SQL that is passed to the database when you execute the query, or Cognos SQL, which is a generic form of SQL that Report Studio uses. Cognos SQL is converted to native SQL before the query is executed.
Steps
1. From the File menu, click New. 2. Click Blank. 3. Pause the pointer over the query explorer button and click Queries.
4. In the Insertable Objects pane, drag Query to the work area. 5. In the Insertable Objects pane, do one of the following: To build an SQL query, drag SQL to the right of the query. To build an MDX query, drag MDX to the right of the query.
Tip: You can drag SQL or MDX anywhere in the work area, and Report Studio will automatically create a query. 6. In the Properties pane, double-click the Data Source property and click a data source. 7. If required, set the Catalog property to the name of the catalog. 8. Double-click the SQL or MDX property and type the SQL or MDX. 9. Click Validate to check for errors. 10. If you are working with SQL, in the Properties pane, set the Processing property to Limited Local. 11. Double-click the query. If the SQL or MDX is valid, the data items defined in the SQL or MDX appear in the Data Items pane. 12. Pause the pointer over the page explorer button and click a report page.
13. In the Insertable Objects pane, on the Toolbox tab, drag an object to the work area. For example, drag a list, crosstab, chart, or repeater. 14. Click the data container. 15. In the Properties pane, click the select ancestor button For example, if you created a list, click List. 16. Set the Query property to the query for the report type. and click the container you just created.
Chapter 11: Dimensional Reporting Style 17. In the Insertable Objects pane, on the Data Items tab chose in the previous step to the data container. , drag the items from the query you
Steps
1. Pause the pointer over the query explorer button and click the query.
2. In the Properties pane, double-click the Generated SQL property. 3. Click Convert. 4. Click Validate to check for errors. 5. In the Properties pane, set the Processing property to Limited Local.
Steps
1. Pause the pointer over the query explorer button the query. 2. Double-click the SQL or MDX item. 3. Make changes in the text box. If you are working with MDX, you must be aware of the MDX syntax that Report Studio supports. 4. Click Validate to check for errors. and click the SQL or MDX item under
First-Rows Optimization
The SQL produced by Report Studio depends on the report format you choose. For example, if you specify HTML format, first-rows optimization is requested. All-rows is requested if you specify PDF. It is important for database administrators and programmers to remember that Report Studio does not always use first-rows optimization. If you assume first-rows optimization is always requested, this can cause the RDBMS optimizer to process the query differently than you expect.
Chapter 11: Dimensional Reporting Style Report Studio supports the following MDX functions. This is a partial list and applies only when you are working with the following data sources: cubes SAP BW IBM Cognos TM1 DB2 OLAP IBM Cognos Consolidation IBM Cognos Contributor
For these data sources, IBM Cognos BI uses a variation of the Microsoft SQL Server Analysis Services syntax.
Acos Aggregate Ancestor Ancestors Asin Atan Avg BottomCount BottomPercent BottomSum Children ClosingPeriod CoalesceEmpty Convert Cos Cosh Count Cousin Crossjoin CurrentMember DefaultMember Descendants
Tip: Use the Source tab in the Insertable Objects pane. 3. Create the following query calculation named Selected Month in the Columns drop zone: [Sales].[Time dimension].[Time dimension].[Month]->?Month? 4. Create this query calculation named Year to Date Set next to the Selected Month column: periodsToDate([Sales].[Time dimension].[Time dimension].[Year],[Selected Month]) Tip: Information about the periodsToDate function appears in the Information pane when you click the function in the Functions tab. The periodsToDate function is located in the M-Q folder in the Common Functions folder. 5. Click the Year to Date Set column and click the cut button .
6. Create the following query calculation named YTD Revenue next to the Selected Month column: total (currentMeasure within set [Year to Date Set]) 7. Create the following query calculation named Percent of YTD Revenue next to the YTD Revenue column: [Selected Month]/[YTD Revenue]
Chapter 11: Dimensional Reporting Style 2. Add this text item to the left of the text in the YTD Revenue column, and add a blank space after the text: YTD Revenue for 3. Set the font style of the text to italic. 4. In the YTD Revenue column, click <#YTD Revenue#> and change the Source Type property to Report Expression. 5. Double-click the Report Expression property and drag the Month parameter to the Expression Definition box. Tip: You can find the Month parameter in the Parameters tab. 6. Click the lock/unlock button to lock the report. 7. Right-click the Percent of YTD Revenue column title and click Fact Cells for "Percent of YTD Revenue". 8. In the Properties pane, double-click the Data Format property. 9. Under Format type, click Percent. 10. Set the No of Decimals property to 2. 11. Run the report to view what it will look like for your users. Users are prompted to select a month. When they click OK, the report shows year-to-date revenue for each product line and the percentage of revenue generated for the selected month.
Calculation
Rollup
Description
Summarizes, or rolls up, all the values of the selected items in a hierarchy. Calculates the value of a selected item as a percentage of another item. Calculates the difference between two items as a percentage. This calculation is only available if you select two members from different hierarchies, each from a different edge. This calculation takes the first selected member from edge A and the second selected member from edge B. The calculation result of a percent of base should be such that all the values for member A will compare itself to the intersect value of member A and B. For example, you have a crosstab showing quantity sold by year by product line. You select 2004 and Camping Equipment, rightclick the selection, click Calculate, and then click % of Base (2004, Camping Equipment). The calculated row shows the percentage value of each product line for 2004 as compared to Camping Equipment for 2004.
% Difference % Of Base
Custom
Allows you to specify your own value when performing a simple arithmetic calculation. Also allows you to change the order of operands or type a custom name for the new calculated row or column.
Steps
1. Select the items in your report to calculate. 2. Click the insert calculation button and select the calculation to perform.
Tip: Calculations that are not applicable to the items you selected are greyed out. 3. To change the order of the operands or the name of the calculated item added to the report, click Custom. The calculation appears as a new row or column in your report.
You can also create a calculation that uses an intersection (tuple) that you already defined (p. 400). Notes: If you are using a DB2 data source, the subtract operator is invalid if you combine the datatypes
timestamp2 and packed decimal.
When creating an expression that will be used in a double-byte environment, such as Japanese, the only special characters that will work are ASCII-7 and ~ -- || - $ .
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag Query Calculation to the report. 3. In the Name box, type a meaningful name for your calculation. For example, if you are calculating the difference between 2007 revenue and 2006 revenue, you could name your expression 2007 - 2006 Revenue. 4. Click the type of calculation you want to create and select the hierarchy that contains the data that is the focus of your calculation (p. 400). 5. In the Available Components pane, define the calculation: Specify how you want to view the available data items in your data package by clicking the view member tree button or the view package tree button . , double-click the .
To add data items that are not shown in the report, on the source tab data items.
To add data items that are in the report but not necessarily in the model, such as calculations, on the data items tab , double-click the data items.
Chapter 11: Dimensional Reporting Style To add functions, summaries, and operators, on the functions tab , double-click elements.
Tip: To filter the visible functions, summaries, and operators in the Available Components pane, click the filter button or what the function acts on. and filter by the function type, what the function returns,
Tip: You can also type the calculation directly in the Expression Definition box. When typing date values, ensure that the date format is correct for your database type. For information about specific functions, see "Calculation Components" (p. 773). 6. Click the validate button .
Any validation errors appear on the Errors tab of the Information pane. Tips: To show or hide the Available Components pane, click the available components button To show or hide the Information pane, click the information button . .
To copy and paste expression components in the Expression Definition pane, you can use the copy button and the paste button .
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag Layout Calculation to the report. 3. In the Available Components box, define the calculation: To add data items that are not shown in the report, on the source tab data items. , double-click .
To add data items that are in the report but not necessarily in the model, such as calculations, on the data items tab , double-click data items.
Chapter 11: Dimensional Reporting Style To add data items from a specific query (p. 329), on the queries tab items. To add functions, summaries, and operators, on the functions tab , double-click data
To add a value that is derived from a parameter, on the parameters tab a parameter.
Parameters define prompts (p. 421), drill-through reports (p. 525), and master detail relationships (p. 386). Tip: You can also type the expression directly in the Expression Definition box. For more information about creating expressions, see "Calculation Components" (p. 773). 4. Click the validate button .
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag the Intersection (Tuple) object to the report. 3. From the Available members and measures pane, select items and click the right arrow to move them to the Intersection members and measures box. You can also use items from the Calculated Members and Measures tab . .
4. To define the hierarchy for this intersection, click a parent object in the Intersection hierarchy box.
Chapter 11: Dimensional Reporting Style the calculation ([Camping Equipment]-[Mountaineering Equipment]) has a well-defined meaning only in the Products hierarchy, so select that hierarchy. the calculation tuple ([Revenue], [Camping Equipment]) can be assigned to either the Products or Measures hierarchy, as it is not affected by either context. the calculations ([1999] - [Camping Equipment]) and ([Fiscal Year 1999] - [Calendar Year 1999]) do not have a well-defined meaning in any hierarchy, and therefore cannot be used reliably at all.
Steps
1. In the source, data items, or query tab, right-click the data item you want to browse. Note: For dimensional and mixed model data sources, you can view the full data tree by clicking the view package tree button members tree button . or the dimensional-only data tree by clicking the view
2. If you want to insert a single value, click Select Value. 3. If you want to insert multiple values, click Select Multiple Values .
4. In the Values box, click the value you want to insert in the expression. Tip: Use the Words box to search for specific values. If the data source is case sensitive and you want to perform a case insensitive search, click the Search arrow and then click Case Insensitive. 5. If you clicked multiple values, click the right arrow button values box. 6. Click Insert. Tip: To control where values appear in the Expression Definition box, you can click the copy button if you selected a single value or the copy all button if you selected multiple values instead. The values are copied to the clipboard, and you can then paste them where you want. to add them to the Selected
Chapter 11: Dimensional Reporting Style Therefore, IBM Cognos BI guesses the data type of the data item by looking at its aggregate and rollup aggregate set.
If both calculations have the same precedence, for example, if they are both business functions, then the row calculation takes precedence. You can override the order of precedence by changing the solve order property. For more information, see "Resolve Multiple Calculations for Crosstabs and Charts" (p. 406).
Length of Expressions
When creating layout calculations that use complex expressions, limit the length of the expression to less than 1,000 tokens. A token is a keyword, identifier, constant, or special character symbol that the server identifies when it parses the SQL. For example, the expression 1+1+1+1+1+1+1+1+1+1 contains approximately 28 tokens, whereas the expression 1+1+1...+1 (400 times) contains more than 1000 tokens. Tip: The Sales Commissions for Central Europe sample report (p. 585) in the GO Data Warehouse (analysis) package includes expressions. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Chapter 11: Dimensional Reporting Style limited support (!) The function is available for all data sources in the package but is not naturally supported for that data source. IBM Cognos BI uses a local approximation for that function. Because an approximation is used, performance can be poor and the results may not be what you expect. unconstrained (check mark) The function is available for all data sources.
Limitations of Calculations
You should use only the expressions and functions available in Report Studio, and follow their syntax. Minimal checking exists for calculations. If your calculation uses an invalid expression, your report results may contain unexpected values. In addition, you should define member summaries as follows: summary_function (currentMeasurewithin setset_reference) where set_reference is a level or set inserted from the Source or Query tabs of the Insertable Objects pane. Unless otherwise required, summary_function should be the aggregate function. If you use an explicit summary function, you may encounter problems with measures (such as profit margin, distinct count, and so on) that have complex rollup values, and/or scenario or account dimension members that do not roll up. Know your data, and confirm with the owner of the cube where overriding the automatic aggregation is safe. Because of the above limitations, summaries of calculations may not provide reliable values. For convenience, you may have to build reports where row summaries and calculated member columns intersect. In such reports, these intersections may contain unexpected values. In contrast, row calculations intersecting with column aggregates using the aggregate function are safe because the calculation is performed on the reliably summarized values.
Units of Measure
When creating calculations in Report Studio and IBM Cognos Query Studio, you may encounter problems with the units of measure. For example, the calculation Cost*Cost returns the unit of measure * instead of a currency unit of measure. To avoid this problem, change the format of the corresponding column to obtain the desired unit of measure.
Limitation When Using Dimensional Functions with Running and Moving Summaries
IBM Cognos BI does not currently support queries that contain both dimensional functions and running summaries or moving summaries. For example, when you drill down in a report, the query uses the dimensional function children, which is not compatible with running and moving summaries. Running and moving summaries are supported for only the overall level of a dimension.
To see a list of Excel VBA functions, see the Microsoft Web site (www.microsoft.com). If these Microsoft Office features are not installed on the SSAS 2005 server, and you use Excel VBA functions, you encounter an error such as the following: YK-ERR-0008 The data provider returned an error message: "The '[Excel].[ROUNDDOWN]' function does not exist.". This error occurs because the OLAP server cannot process the function since Excel function libraries are missing. For more information, see the Microsoft Knowledge Base article # 932214 at http://support.microsoft. com.
Concatenating Strings
When IBM Cognos BI concatenates strings locally and if any of the involved strings contain null values, the result of the concatenation is an empty cell or a null value. This occurs because IBM Cognos BI requires that an expression that involves a null value returns a null value. Many databases ignore null strings when they perform concatenations. For example, if you concatenate strings A, B, and C, and if string B is a null value, the database may concatenate only strings A and C.
It is not necessary to specify the solve order for the overall total calculation. Because the default solve order is 0, setting the solve order for the percentage calculation to a value higher than 0 is sufficient.
Steps
1. Click the data item for which to specify the solve order. A data item can have only one solve order value. Consequently, if a data item is in a query that is used in more than one context and you want the data item to have a different solve order in each context, you must use a separate data item. Tip: In crosstabs, to specify the solve order for the default measure (p. 122), click the crosstab and, in the Properties pane, click the select ancestor button and click Crosstab.
2. In the Properties pane, set the Solve Order property to an integer value. Tip: To specify the solve order for the default measure, click Default Measure Solve Order.
Resolve Query Calculations that Intersect with Calculated Measures Defined in Microsoft Analysis Services
Microsoft SQL Server Analysis Services (SSAS) data sources may include data source calculations. Because IBM Cognos BI cannot predict the presence of a solve order on such calculations, setting the Solve Order property may not resolve the solve order correctly. You can suppress potentially meaningless results when querying dimensional data sources that include data source calculations. In the following example, the columns YTD Change and YTD Growth are data source calculated members and the summary values for these two columns were suppressed.
When a query-defined calculated member and a data source calculated member intersect, the value is the result of performing both calculations. The second calculation is performed on the result of the first calculation. Whether the final value is meaningful depends on the order in which the calculations are performed. Because IBM Cognos BI cannot determine the presence of these members ahead of time, it cannot automatically determine the correct solve order. This issue occurs mostly with Aggregate summaries in SSAS 2000. In most cases, SSAS 2005 gives the expected results when no solve order is defined in the cube. Therefore, when using SSAS 2005, you do not need to set either the Solve Order property in the query or the Calculation Intersection
Chapter 11: Dimensional Reporting Style property. If your SSAS 2000 cubes include calculated members, we recommend that you migrate to SSAS 2005. Note: Dimensionally-modeled relational (DMR) data sources query one or more underlying relational databases, and therefore cannot contain data source calculations. They are not considered dimensional data sources in the context of this topic.
Arithmetic Operations
Null values in arithmetic operations yield different results depending on the type of data source. In Microsoft SQL Server Analysis Services (SSAS) and Cubing Services data sources, a null value in arithmetic operations is treated as follows: In operations such as addition (+), a null value yields the same result as zero (9 + NULL = 9) In operations such as multiplication (*), a null value yields a null result (9 * NULL = NULL)
You can accommodate this behavior by using more complex expressions such as the following:
if ([M] is not NULL, then ([M]) else (0) if ([M] is not NULL, then (<expression involving M> else NULL)
In relational and other OLAP data sources the result of an operation that includes a null value is always null. For example, 9 + NULL = NULL.
Equality Comparisons
Equality comparisons, such as equal to (=) and not equal to (<>), compare two values and return a Boolean value of true or false. For all data sources, equality comparisons are treated as tests for missing data. Inequality comparisons are treated as tests for non-missing data. For example, NULL=NULL is true and NULL=0 is false.
Ordered Comparisons
In ordered comparisons, such as rank and quantile functions, null values are handled as follows. For relational data sources, the result of the comparison is always false. For example, NULL < 1 is false. For Microsoft SSAS, Cubing Services, and other OLAP data sources, the null value is treated as zero. For example, NULL < 1 is true.
Boolean Functions
In Boolean operations, such as or, null values are handled as follows. For relational and dimensionally-modeled relational data sources, the result of a Boolean operation is always null. Boolean functions are used in conditions and the null result is treated as a false condition. For example, NULL OR TRUE = NULL (FALSE) For Microsoft SSAS, Cubing Services, and other OLAP data sources, the null value is treated as if it is false. For example, NULL OR TRUE = TRUE.
Summary Functions
All summary functions, such as aggregate, average, and maximum, ignore null values. For all functions except count, if all values in the expression are null, the result is null. For count, if all values in the expression are null, the result is zero. For example, if the value for Quantity for 2003 is 10 and the values for 2001 and 2002 are null, then the average is as follows:
average ([Quantity] within setset([2002], [2003] ) ) = 10 average ([Quantity] within setset([2002], [2001] ) ) = NULL
String Operations
For all data sources, the result of string operations, such as concatenation (||), that include a null value is always null. For example, A || NULL = NULL and NULL || NULL = NULL.
Coercion rules are applied to expressions and data items. In expressions, an operator or function may require operands to be of a particular dimensional type. When an operand is not of the required type, one or more coercion rules may be applied to coerce the operand to the appropriate type. Coercion rules may also be applied to data items to coerce the data item to a collection of members or values.
Function Operands
The following describes how coercion rules are applied to function operands: If the operand is of the required type, no coercion is required. If the function operand is supposed to be a numeric value, it is coerced into one. A coercion rule exists for each type of dimensional object coercion (p. 410). If the function operand is supposed to be a dimensional object and a coercion exists to coerce the operand to the required type, the coercion is applied. If no coercion exists, an error message with the code QE-DEF-0478 appears to indicate that an unsupported conversion of a dimensional object from the source to target type occurred.
the following are valid: [member/member set] = [member] [member/member set] <> [member] [member/member set] = ?p? [member/member set] <> ?p?
Chapter 11: Dimensional Reporting Style [member/member set] in ([member], ...)[member/member set] not in ([member], ...) [member/member set] in ([member set])[member/member set] not in ([member set])[member/member set] in ?p?[member/member set] not in ?p?
Exceptions
For the left operand, member sets are supported in detail and summary filter expressions, but not in expressions that use the filter function. Members are not supported in detail and summary filters, but they may be used in expressions that use the filter function. The in_range operator is not supported for members and member sets. Normal coercion rules apply to these operands. NULL operands are considered values, rather than members.
Examples
The following examples illustrate how coercion is applied to levels in expressions with operators. [Sales].[Products].[].[Product Line] = [Sales].[Products].[].[Product Line]->[Outdoor Equipment] The left operand is coerced to the following member set:
members ([Sales].[Products].[].[Product Line])
The following expressions are invalid: [Sales].[Products].[].[Product Line] = NULL [Sales].[Products].[].[Product Line] + 1 [Sales].[Products].[].[Product Line] = 'Canada' [Sales].[Products].[].[Product Line] > 2000
The following examples illustrate how coercion is applied to members in expressions with operators. In each of the examples below, the left operand is coerced to a value of the current cell at this member: (tuple ([Sales].[Products].[].[Product Line]->[Outdoor Equipment])) [Sales].[Products].[].[Product Line]->[Outdoor Equipment] = NULL [Sales].[Products].[].[Product Line]->[Outdoor Equipment] + 1 [Sales].[Products].[].[Product Line]->[Outdoor Equipment] > 2000 [Sales].[Products].[].[Product Line]->[Outdoor Equipment] + 'Canada'
Source type
Measure dimension
Target type
Hierarchy
Result
A measure dimension can be used without any conversion as a hierarchy. The member set contains the members of the measure dimension. This coercion is done in two steps. First, measure dimensions are coerced to hierarchies, and then hierarchies are coerced to member sets.
Measure dimension
Member set
Hierarchy Level
A set containing the members of the hierarchy. A set containing the members of the level. The equivalent expression is members (level).
Measure
Member
A measure can be used without any conversion as a member. This coercion is done in two steps. First, measures are coerced to members, and then members are coerced to tuples. This coercion is done in two steps. First, measures are coerced to members, and then members are coerced to member sets. The tuple consists of the member. The equivalent expression is tuple (member).
Measure
Tuple
Measure
Member set
Member
Tuple
Member
Member set
The set consists of the member. This coercion is done in two steps. First, members are coerced to tuples, and then tuples are coerced to member sets.
Result
Number, The result is the value of the measure at the current cube Date/Time, or intersection. String Number The result is the value of the cell at the cube intersection specified by the member. This coercion is done in two steps. First, members are coerced to tuples, and then tuples are coerced to the target type.
Member
Tuple
Number
The value of the cell at the cube intersection specified by the tuple. The equivalent expression is value (operand or parameter).
Coercion Paths
The following diagram shows how coercion rules are connected. The expression that coerces a source node type to a target node type is built by following the path that connects them. A dotted line indicates a coercion that does not require an explicit conversion function. This occurs whenever the source type is a specialization of the target type. For example, every measure is a member so you can use measures without conversion wherever a member is required.
Measure dimension
Level
Hierarchy
Measure
Member set
set (x)
(Incomplete) tuple
value (x)
Number
Chapter 11: Dimensional Reporting Style [great_outdoors_company].[Years].[Years].[Year]->:[PC].[@MEMBER].[20040101-20041231]. When you are building expressions that involve members, the use of MUNs makes these expressions difficult to read and maintain. Tip: To view the MUN of a member, in the Insertable Objects pane, on the Source tab click the member and click Properties. Report Studio has an option that automatically generates an alias for MUNs (p. 84). The MUN alias is a data item that has the MUN as its definition. For the previous example, you would see 2004 as the data item, and the MUN would appear in the data item's Expression property. Enable this option to produce a MUN alias whenever you add a member to a report or expression. Note: Do not modify or rename MUN aliases, because they will lose their connection to their respective members in the package. , right-
To resolve these problems, you must update the member unique names in the report. Open the query that contains the members that you need to update in Query Explorer. Delete the member from the pane in which it appears and reinsert it from the Source tab. For example, if you inserted the member as a detail filter, delete it from the Detail Filters pane and reinsert it.
Member Sets
Member sets are used to group data items that are logically related for various actions, such as drill actions, zero suppression, and ranking. They can be defined as a flat list or as a tree structure in which member sets in the same parent chain are considered related. For example, for drill operations, a member set defines the set of items that can potentially change when a given item in the set is drilled on. The values of other items in the query or even those in the same hierarchy are preserved when any item in this set is drilled on. Usually, a member set references items that have logical roles in a drill action, such as a detail, a summary of the detail, or a parent of the detail. A single data item can belong to only one member set. If you do not define member sets for items, the IBM Cognos BI server associates items into default member sets and behaviors using simple dimension rules on item expressions. You can override the behavior for a particular item while other items continue to use the default. When you define a member set, you must explicitly define behaviors for each item in the set. Items in the set that have no behaviors have their values preserved. Drill behaviors always act from a root member set. This means that when an item is drilled on, the root member of its member set is found and all items from the root down are processed. Although calculations and aggregates are not directly related by hierarchy, they respond because of their dependence on the items upon which they are based.
Steps
1. Pause the pointer over the query explorer button member set. and click the query in which to create a
2. In the Properties pane, set the Define Member Sets property to Yes. 3. Double-click the query and click the Member Sets tab. 4. In the Insertable Objects pane, drag items to the work area. To define a member set as a tree structure, drag the item that will serve as the root item of the set to the work area, and then drag other items over the root item to create the tree structure. You can also nest member sets.
Steps
1. From the Data menu, click Drill Behavior. 2. On the Basic tab, in the Report output drill capabilities box, select the Allow drill-up and drilldown check box. By default, IBM Cognos Report Studio determines which items can be drilled on based on the dimensional structure. Tip: To enable the report to be used as the source during a package drill-through, select the Allow this report to be a package-based drill-through source check box and click OK. For more information about package drill-through, see the Administration and Security Guide. 3. To disable drill-up or drill-down for a data item, select the data item in either the Disable drillup for box or the Disable drill-down for box. 4. From the Advanced tab, you can change the drill-up or drill-down behavior for any data item by selecting the data item and then choosing one of the following behaviors.
Behavior name
Preserve
Drill-up behavior
The data item's value will remain unchanged.
Drill-down behavior
The data item's value will remain unchanged.
Empty Set
The set of values associated with this The data item will be data item is set to be the empty set removed from the report. (novalues). For crosstabs, the data item will effectively be removed from the report. The data item's value will change to The data item's value will become the parent (if a lowest-level change to become the item summary was drilled up on) or the that was drilled on. grandparent (if a lowest-level detail of a dimension was drilled up on) of the item that was drilled on.
Replace Item
Behavior name
Drill-up behavior
Drill-down behavior
The data item's value will change to become the children of the item that was drilled on.
Replace Expression The data item's value will change to become the children of the parent (if a lowest-level summary was drilled up on) or the children of the grandparent (if a lowest-level detail of a dimension was drilled up on) of the item that was drilled on. Change Expression The data item's value will change to become the value of some other data item in the query.
The data item's value will change to become the value of some other data item in the query. The data item's value will change to become all data items n generations higher in the dimensional hierarchy than the item that was drilled on. The number of generations or levels is determined by the Depth value.
The data item's value will change to become all data items n generations higher in the dimensional hierarchy than the item that was drilled on. The number of generations or levels is determined by the Depth value.
Ancestor
The data item's value will change to become the data value of the ancestor n generations higher in the dimensional hierarchy than the item that was drilled on. The number of generations or levels is determined by the Depth value.
The data item's value will change to become the data value of the ancestor n generations higher in the dimensional hierarchy than the item that was drilled on. The number of generations or levels is determined by the Depth value.
5. In the Column title drill behavior box, specify whether to use member captions or level labels as the columns titles for each data item. 6. From the Data Items Linking tab, you can link groups of data items: Click the new button .
Type a name for this group of linked data items and click OK. To rename a group of linked data items, click the group, click the rename button a name, and click OK. , type
Chapter 11: Dimensional Reporting Style Use the arrows to move data items from the queries on the left to the groups on the right. Note: You can only add a data item to one group. The report will generate links for any item that can be drilled up or down on. When you run a report, you can drill down or drill up by right-clicking the data item and choosing the action from the context menu. The menu items will be disabled if an item cannot be drilled up or down on.
Dashboard reports are not the same as dashboards created in IBM Cognos Business Insight. Dashboard reports display several different report objects in one report, but the information in the report is static. Dashboards created in Business Insight are a collection of IBM Cognos content that you assemble into an interactive dashboard. Content is displayed in widgets. For information about creating interactive and sophisticated dashboards, see the IBM Cognos Business Insight User Guide. You can also create dashboards within IBM Cognos Connection. In these dashboards, content is displayed in portlets within pages. For more information, see the IBM Cognos Connection User Guide. In this topic, you learn how to create a dashboard report so that users can examine important sales data in a single view. User Guide 417
Chapter 11: Dimensional Reporting Style It should take 15 to 20 minutes to complete this topic, and your dashboard report will look like this.
4. Drag the following items to the column chart: Revenue (in Sales fact) to the Default measure (y-axis) drop zone Product line level (in Product) to the Categories (x-axis) drop zone Retailers level (in Retailers) to the Series (primary axis) drop zone
5. Drag the following items to the crosstab: Gross margin (in Sales fact) to the Measures drop zone
Chapter 11: Dimensional Reporting Style Product line level (in Product) to the Rows drop zone Region level (in Retailer site) to the Columns drop zone
2. Set the Size & Overflow property width to 300 px. 3. Set the Title property to Show. 4. Double-click the chart title and type the following text: Product Lines: Revenue by Retailer 5. Set the Font property for the chart title to Arial, 12pt, Bold.
Chapter 11: Dimensional Reporting Style Create a Drill-up and Drill-down Report
If you include reports from different packages in an interactive dashboard that uses global filters, ensure that you use the same parameter name for the prompt in all the reports. For more information about creating interactive dashboards in IBM Cognos Connection, see the IBM Cognos Business Intelligence Administration and Security Guide. You can also create prompts in the package. For more information, see the IBM Cognos Framework Manager User Guide. You can also use context filters (p. 371), also known as slicer filters, to focus the data in your report.
421
[data item] = ?p? for single-select prompts and master detail relationships [data item] in ?p? for multi-select prompts
Steps
1. Click the column or row on which users will be prompted. To create multiple prompts or a cascading prompt, click more than one column or row.
Chapter 12: Adding Prompts to Filter Data 2. From the Tools menu, click Build Prompt Page. A prompt page is created that has a page header a prompt control for each selected column a page footer containing Cancel, Back, Next, and Finish buttons
You can add more objects or modify existing elements. For example, you can change the prompt control chosen by Report Studio.
Steps
1. Pause the pointer over the page explorer button and click Prompt Pages.
2. In the Insertable Objects pane, on the Toolbox tab, drag Page to the Prompt Pages box. 3. Double-click the page you just created. 4. In the Insertable Objects pane, on the Toolbox tab controls to the prompt page. , drag one of the following prompt
Prompt control
Text Box Prompt
Description
Retrieves data based on a value that users type. Use this control when users know exactly what value they want to enter, such as a name or account number.
Value Prompt
Retrieves data based on values that users select from a list. Use this control to show a list of possible values from which users can choose. Note: The maximum number of items that can appear in a list is 5000.
Prompt control
Select & Search Prompt
Description
Retrieves values based on search criteria that users specify. Data is then retrieved based on values users select from the search results. Use this control instead of a value prompt if the list of values is very long, which can slow down performance. Tip: Users have the option of performing a case sensitive or case insensitive search. A case sensitive search is faster, while a case insensitive search usually returns more values. You cannot use this control if you are working with SAP BW data sources.
Date Prompt
Retrieves data based on a date that users select. Use this control to filter a date column. Users can retrieve data for a specific day, a set of days, or a range of days.
Time Prompt
Retrieves data based on a time that users select. Use this control to restrict a report to a particular time or time range. For example, users can see how many orders are received after business hours. Users can then use this information to determine the number of staff needed to work after hours.
Retrieves data based on a date and time that users select. Use this control to filter a datetime or timestamp column. This control is useful for specifying ranges. For example, users can retrieve all orders received from Monday at 12:00 a.m. to Friday at 5:00 p.m.
Interval Prompt
Retrieves data based on a time interval that users specify. Use this control to retrieve data that is related to the passage of time. For example, users can retrieve a list of products that were returned 30 or more days after they were purchased.
Prompt control
Tree Prompt
Description
Retrieves data based on values that users select from a list. Values are organized hierarchically. This control is useful when you are working with dimensional data sources. Data is shown from the top of a dimension hierarchy to the most detailed member, and users can choose the level of detail they want to view in the report. For more information about tree prompts, see "Control the Data That Appears in a Tree Prompt" (p. 435). Tree prompts let you page through large numbers of prompt values with a More link at the bottom of the tree.
Generated Prompt
Selects a prompt control based on the data type of the data item. This control acts like a placeholder. When users run the report, the control is replaced by the appropriate prompt control. For example, if users are prompted for date values, the control is replaced by a date & time prompt.
The Prompt Wizard dialog box appears. 5. If you are creating a text box, date, time, date and time, interval, or generated prompt, do the following: Create a new parameter for the prompt or use an existing parameter. Click Next. If you created a new parameter, define the expression by selecting a data item from the package and the operator to use. Tip: Make the prompt optional by selecting the Make the filter optional check box. Go to step 7.
6. If you are creating a value, select & search, or tree prompt, do the following: Create a new parameter for the prompt or use an existing parameter. Click Next. If you created a new parameter and you want to use the parameter to filter data, select the Create a parameterized filter check box and define the expression by selecting a data item from the package and the operator to use. If you are creating a tree prompt, you must choose in in the Operator box. You can also use a parameter to provide a value for a layout calculation, such as showing a user's name in the report. When the report is run, you can use a parameter to prompt the user to type his name and have it appear in the report. User Guide 425
Chapter 12: Adding Prompts to Filter Data Tip: Make the prompt optional by selecting the Make the filter optional check box. Click Next. If you created a parameterized filter and you have more than one query defined in the report, select the check box for the query on which to filter and click Next. Select the Create new query check box to create the query that will be used to build the list of data values shown when the report is run. Tip: Do not create a new query if you want to link the prompt to an existing query or if you intend to create the query at a later time. Click the ellipsis (...) button beside Values to use and click the data item on which to prompt. To choose a data item that is different than what users will see when they are prompted, click the ellipsis (...) button beside Values to display and click the data item. To create a cascading prompt, in the Cascading source box, click the parameter that represents the cascade source.
7. Click Finish. The prompt control is added to the prompt page. A prompt page is like a report page. You can insert graphics and text and apply formatting. You can also modify the properties of the prompt control by clicking it and making changes in the Properties pane.
Example - Create a Report Showing Products Shipped for a Specific Time Interval
You are a report author at The Great Outdoors Company, which sells sporting equipment. You are requested to create a report that shows the time interval between closing and shipping dates.
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab Sales (query). 5. Expand Sales fact and double-click Quantity. 6. Expand Products and double-click Product type. 7. Expand Sales order and double-click Order number. 8. Create a time interval calculation: , expand Sales and Marketing (query) and
Chapter 12: Adding Prompts to Filter Data In the Insertable Objects pane, on the Toolbox tab of Quantity in the list. In the Name box, type the following and click OK: Time Interval In the Expression Definition box, type the following and click OK: [Sales (query)].[Time (close date)].[Date (close date)]-[Sales (query)].[Time (ship date)].[Date (ship date)] 9. Create a filter: From the Data menu, click Filters Click the add button . , double-click Time Interval . , drag Query Calculation to the right
In the Expression Definition box, from the Data Items tab calculation you created.
Add > ?p1? after Time Interval to create the following expression: [Time Interval] > ?p1?
Click OK twice.
A parameterized filter is created that will return data when the difference between the return date and the order date is greater than the value specified by the user. 10. Create a prompt page: Pause the pointer over the page explorer button and click Prompt Pages.
In the Insertable Objects pane, drag Page to the Prompt Pages pane, and then double-click it. In the Insertable Objects pane, on the Toolbox tab, drag Interval Prompt to the work area. The Prompt Wizard dialog box appears.
Click Use existing parameter, and then click p1. Click Finish.
11. Run the report. An interval prompt appears. 12. In the Days box, type a value and click Finish. Tip: You can also type values for the Hrs and Mins boxes. A list report appears showing all products that were shipped after the time interval you specified. For example, if you typed 5, the list will show products that were shipped more than 5 days after the order date.
Steps
1. From the Data menu, click Filters . .
2. On the Detail Filters tab, click the add button The Detail Filter dialog box appears.
3. In the Available Components box, click the Source tab the data item to use for the prompt: Source tab.
to select
To filter data based on data items not shown in the report, double-click a data item on the
To filter data that appears in the report but not necessarily in the model, such as calculations, double-click a data item on the Data Items tab.
The data item appears in the Expression Definition box. 4. In the Expression Definition box, type an operator after the data item or select an operator from the Functions tab .
Chapter 12: Adding Prompts to Filter Data The operator sets some of the default properties of the prompt. For example, if the operator is equals (=), users will be able to select only a single prompt value and the prompt's Multi-Select property is set to No. For more information about creating expressions, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396). 5. Type a name after the operator to define the prompt parameter. A question mark must precede and follow the name. 6. To specify whether the prompt is mandatory, in the Usage box, click Required, Optional, or Disabled.
Prompt controls are interactive. They are used to satisfy parameter values before running a report. As a result, prompt controls added to a report page only appear when you run the report in HTML format. When you run a report in HTML format, users select which values they want to see, and the report is refreshed, producing a new report. For the non-interactive reports listed above, prompt parameter values must be collected and satisfied before the report is run. You provide the parameter values using the Run options tab in IBM Cognos Connection. If you do not provide all the required values, the report will fail to run. You can access the Run options tab by clicking the set properties button for the report.
Tip: The Revenue by Product Brand (2005) sample report (p. 576) in the Sales and Marketing (cube) package and the Rolling and Moving Averages interactive sample report (p. 595) include value prompts. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. In the Insertable Objects pane, on the Toolbox tab The Prompt Wizard dialog box appears. 2. Provide the information necessary to create the prompt. Tip: Make the prompt optional by selecting the Make the filter optional check box. Otherwise, when you run the report for the first time, the prompt appears in a generated prompt page , drag a prompt control to the report.
Chapter 12: Adding Prompts to Filter Data rather than in the report page. Alternatively, you can specify a default selection for the prompt (p. 432). 3. In the work area, click the prompt. 4. In the Properties pane, set the Auto-Submit property to Yes. If you do not set the Auto-Submit property to Yes, the report will not refresh when users select a different prompt value. Tip: An alternative to setting the prompt to auto-submit is to add a prompt button from the Toolbox tab and set its Type property to Finish. The prompt control is added to the report page. You can modify its properties by clicking it and making changes in the Properties pane.
Modifying Prompts
For each prompt you create, you can modify its properties by specifying values in the Properties pane. For example, you can change the prompt control interface require user input enable multiple selections show or hide prompt statuses specify default selections specify prompt values add prompt buttons create cascading prompts
Some properties you set for a prompt may be overridden under some conditions. For example, some properties set for the filter associated with a prompt may override the corresponding prompt property.
Steps
1. Click the prompt control. 2. In the Properties pane, set the Select UI property to the interface.
Steps
1. Click the prompt control. 2. In the Properties pane, set the Required property to Yes. 3. Pause the pointer over the page explorer button 4. From the Data menu, click Filters . and click a report page.
5. Click the filter associated with the prompt. 6. In the Usage box, click Required. When you run the report, a star appears next to the prompt indicating that the user must select or type a value. If you have a cascading prompt and the parent prompt control is required, the child prompt control is disabled. This ensures that users choose at least one value in the parent prompt before they can choose a value in the child prompt. Conversely, if the parent control is optional, then the child control is populated. This gives users the ability to choose values in the child prompt without having to choose a value in the parent prompt.
Steps
1. Click the prompt control. 2. In the Properties pane, choose whether to allow users to specify more than one value or a range of values: To allow users to specify more than one value, set the Multi-Select property to Yes. To allow users to specify a range of values, set the Range property to Yes. and click a report page.
3. Pause the pointer over the page explorer button 4. From the Data menu, click Filters .
If you have more than one query defined in the report, you must first click an object linked to a query. 5. Double-click the filter associated with the prompt.
Chapter 12: Adding Prompts to Filter Data 6. Change the operator to one of the following: If you are creating a multi-select prompt, change the operator to in. For example, [Product_line] in ?Product line? where [Product_Line] is the name of the data item allows users to select multiple product lines. If you are creating a range prompt, change the operator to in_range. For example, [Margin] in_range ?Margin? where [Margin] is the name of the data item allows users to specify a margin range.
Steps
1. Click the prompt control. 2. In the Properties pane, set the Hide Adornments property to Yes to hide the prompt characters or No to show them.
Steps
1. Click the prompt control. 2. To define a range of values, in the Properties pane, set the Range property to Yes. 3. To specify more than one default selection, in the Properties pane, set the Multi-Select property to Yes. 4. In the Properties pane, double-click the Default Selections property. 5. Click the add button and do one of the following:
If you chose to define a single value, type the value as the default selection. If you chose to define a range of values, type the minimum and maximum values of the range in the Minimum value and Maximum value boxes, respectively.
Steps
1. Click the prompt control. 2. To change the default prompt text, in the Properties pane, double-click any of the properties under Prompt Text. Note: When you select a property in the Properties pane, its description appears in the information pane below the Properties pane. 3. Click Specified text, and then click the ellipsis (...) button. 4. In the Localized Text dialog box, type the text that you want to appear. 5. To add customized text for other languages: Click Add. Select the countries for which you want to specify localized text and click OK. To specify text for a country, select the country and click Edit, and then type the localized text in the text box.
For example, you have a prompt in which users choose a country. For the database value United States, you want USA to appear in the prompt. Tip: The Rolling and Moving Averages interactive sample report (p. 595) includes a value prompt. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. Click the prompt control. 2. In the Properties pane, double-click the Static Choices property. 3. Click the add button . User Guide 433
Chapter 12: Adding Prompts to Filter Data 4. In the Use box, type the prompt value to add. 5. In the Display box, type the value that will appear in the prompt. 6. Repeat steps 3 to 5 to add other prompt values. 7. To link a prompt value to a condition (p. 475), do the following: In the Variable box, choose the variable to use or create your own. For information about creating variables, see "Add a Variable" (p. 480). In the Value box, click one of the possible values for the variable. Click the static value to link to the variable and click the edit button In the Display box, type the value to appear in the prompt. Repeat this procedure for each additional value. .
Steps
1. Pause the pointer over the page explorer button button. and click the page to which to add a prompt
2. In the Insertable Objects pane, on the Toolbox tab, drag Prompt Button
3. Click the prompt button and, in the Properties pane, set the Type property to one of the following actions.
Goal
Cancel the report Go to the previous prompt page Go to the next prompt page Run the report Reprompt the user Tip: Reprompting users is useful when you have cascading prompts. 434 IBM Cognos Report Studio
Action
Cancel Back Next Finish Reprompt
Steps
1. To make the cascading source a required prompt, select it and, in the Properties pane, set the Required property to Yes. 2. Click the prompt control to use as a cascading prompt. 3. In the Properties pane, double-click the Cascade Source property. 4. Click the parameter that represents the cascade source. 5. If the prompt allows users to select multiple values, add a prompt button to the cascade source to provide the cascading prompt with the appropriate values: In the Insertable Objects pane, on the Toolbox tab, drag Prompt Button to the report.
Click the prompt button and, in the Properties pane, set the Type property to Reprompt. To change the text in the prompt button, in the Insertable Objects pane, on the Toolbox tab, drag Text Item to the prompt button and type the text.
For more information about how to create cascading prompts, see the Report Studio Quick Tour.
Steps
1. Pause the pointer over the query explorer button the prompt. and click the query that is associated with
2. In the Data Items pane, double-click the data item on which you are prompting. 3. In the Expression Definition box, type one of the following functions.
Goal
Show the hierarchical structure of all members in the hierarchy. If this function is not used, all members are shown in a flat list.
Function
rootmembers (data_item)
Show the descendants of the data item in a hierarchical descendants (rootmembers structure where x represents the level. For example, if you (data_item, x) are prompting on the Year hierarchy and x=1, you will see 2004, 2005, and 2006 in the tree. If x=2, you will see 2004 Q1, 2004 Q2, and so on. Show the children of a member. For example, 2004 Q1, children (member) 2004 Q2, 2004 Q3, and 2004 Q4 appear for the member 2004.
437
Chapter 13: Laying Out a Report Look for natural bands of information running across the page. Each of these bands typically translates into a block (p. 445). Identify vertical bands of information. In each horizontal band of information, look for bands that run up and down the page. Each of these bands typically translates into table cells (p. 449). Decide which data frames to use to lay out the data. Choose a list, crosstab, chart, repeater, or text frame. Set properties at the highest level item possible. By setting properties at the highest level, you set them once instead of setting them for each child object. For example, if you want all text items in a report to appear in a specific font, set the font for the page. Tip: When setting properties for an object, click the select ancestor button pane title bar to see the different levels available. Use padding and margins to create white space. Do not use fixed object sizing unless it is absolutely necessary. When you specify that an object has a fixed size, your layout becomes less flexible. in the Properties
Use the page structure view to view the entire contents of a report page in a tree structure Using a tree structure is useful for locating the objects in a page and troubleshooting problems with nested objects. to quickly move objects from one area of a page to another If you have a complex layout, it may be difficult to select, cut, and paste objects in the layout view. Objects are easier to locate in the page structure view. to modify object properties
Chapter 13: Laying Out a Report You can modify object properties in the layout or in the page structure view. Tip: To switch back to the report layout, from the View menu, click Page Design.
Steps
1. Click an item that has the formatting to copy. 2. Do one of the following: To copy all the formatting applied to the item, click the pick up style button item to format, and then click the apply style button . , click the
To copy only one of the formatting styles, click the down arrow to the right of the pick up style button and click the style to copy. Then click the item to format and click the apply style button.
3. If you want to make changes to a style that you copied, click the down arrow to the right of the pick up style button and click Edit Dropper Style. 4. In the Style dialog box, specify basic and advanced style characteristics.
Pages
Add a page header or footer when you want information to appear on every page in the report, such as a title or page numbers. You can use combinations of text, data items, and report expressions in titles.
Lists
You can add the following headers and footers to lists to organize data into logical sections or to identify every change in value of a column.
Type
List page header
Description
Adds a header that appears at the top of the list on every page in which list data appears. Adds a header that appears once at the top of the list. Adds a header that appears for each group of a grouped column (p. 308) or each section (p. 313). Adds a footer that appears for each group of a grouped column (p. 308) or each section (p. 313). Adds a footer that appears once at the bottom of the list. Adds a footer that appears at the bottom of the list on every page in which list data appears. Note that summary calculations in list page footers only summarize the data that is visible on that page of the list report.
You can also add section footers by adding a summary (p. 360). To see the headers and footers, ensure that the visual aids are turned on (p. 78).
Steps
1. If you want to add a page header or footer, from the Structure menu, click Headers & Footers, Page Header & Footer, select the appropriate check boxes, and click OK. Tip: You can also click the headers & footers button on the toolbar.
2. If you want to add a list header or footer, from the Structure menu, click Headers & Footers, List Headers & Footers, select the appropriate check boxes, and click OK. Tip: You can also click the headers & footers button on the toolbar and then click the list headers & footers button .
3. If you want to add objects to a header or footer, drag the objects from the Insertable Objects pane to the appropriate location. To add objects to a list header or footer, you must first unlock the report. From the Structure menu, click Lock Page Objects. Tip: To add data items to the page header or footer, you must associate a query to the page (p. 537). 4. To split a header or footer into multiple cells that span the list, from the Structure menu, click Headers & Footers and click Split List Row Cell. 5. To merge multiple cells in a header or footer, from the Structure menu, click Headers & Footers and click Merge List Row Cells. 440 IBM Cognos Report Studio
Chapter 13: Laying Out a Report 6. To add rows to a header or footer, from the Structure menu, click Headers & Footers and click Insert List Row Cells Above or Insert List Row Cells Below.
Steps
1. Click the object to which to add a border. Tip: To quickly select the parent of an object, click the object, and then click the select ancestor button in the title bar of the Properties pane.
2. In the Properties pane, double-click the Border property and select values in the Color, Style, and Width boxes. Note: Specifying a width using % as the unit of measure is not supported when producing reports in PDF. 3. Apply the selected values to the top, bottom, left side, right side, or all sides of the object by clicking the appropriate button in the Preview section. Tip: To clear the border applied, click the clear borders button .
Tip: You can also add borders using the IBM Cognos Report Studio toolbar.
Steps
1. In the Insertable Objects pane, click the Toolbox tab. 2. Drag the Text Item object The Text dialog box appears. 3. Type the text and click OK. Tip: You can also paste text from another part of the report. You can now format the text by changing the font, color, size, and so on. Select the text and make the appropriate changes in the Properties pane. to the report.
Steps
1. Click the object. Tip: To specify the default font for the report, click the page. 2. Do one of the following: From the toolbar, specify the font properties. In the Properties pane, double-click the Font property and specify the font properties. Tip: Type a list of fonts in the Family box if you are not sure whether a specific font is installed on a user's computer. For example, if you type Times New Roman, Arial, monospace, IBM Cognos Report Studio checks to see if Times New Roman is installed. If it is not, Report Studio checks for Arial. If Arial is not installed, the monospace font used by the computer is used. If you clicked (Default) for any of the font properties, the default value for the property is used. Default values are stored in a style sheet that is used across all IBM Cognos Business Intelligence tools. You can modify default values by modifying classes (p. 460).
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag the Image object .
3. In the Image URL dialog box, type the URL of the image to insert or click Browse to go to the location containing the image. To browse images on a Web server, you must enable Web-based Distributed Authoring and Versioning (WebDAV) on your Web server. For more information about configuring Web servers, see the IBM Cognos Business Intelligence Installation and Configuration Guide.
Chapter 13: Laying Out a Report You can also create your own background visual effects, such as drop shadows and gradient fills. For more information, see "Add Background Effects" (p. 443). The images that you insert must first be uploaded to the IBM Cognos BI server or another Web server and must be .gif or .jpg format.
Steps
1. Select the object. 2. In the Properties pane, under Color & Background, double-click the Background Image property. 3. To use the background from the default style for the object (Cascading Style Sheet (CSS) class) (p. 460), click Default. 4. To explicitly not insert a background image, click None. This option overrides any default background images including background gradients on objects that appear in the 10.x report styles. 5. To insert a specific image, click Specified and in the Image URL box, type the URL of the image to insert or click Browse to go to the location containing the image. To browse images on a Web server, you must enable Web-based Distributed Authoring and Versioning (WebDAV) on your Web server. For more information about configuring Web servers, see the IBM Cognos Business Intelligence Installation and Configuration Guide. 6. In the Position box, choose how to align the image in the object. 7. In the Tiling box, click a tiling option.
Notes
If the background image is complex and large, the size of the report output may be affected proportionately. Background effects are rendered only if the data container has a fixed height and width; if a percentage size is used, the effects are ignored.
Chapter 13: Laying Out a Report Resizing or overflow behavior is ignored for generated images in HTML reports.
3. In the Properties pane, under Color & Background, double-click the Background Effects property. 4. Select one or more of the following: To apply a border, click Border and specify settings for border style, width, color, corner radius for rounded rectangles, and transparency. If the element also includes a fill with a transparency setting, select the Allow transparent bleed check box to apply the same transparency to the border. To apply a fill effect, click Fill and specify the settings. The fill effect can either be a solid color, a gradient, or a pattern. You can define a gradient fill effect as a linear, radial line, or radial rectangle gradient. To apply a drop shadow effect, click Drop Shadow and specify the shadow color, transparency value, color, and offset settings. The default horizontal and vertical offset is 5 pixels. To specify one or more images as a background, click Images. You can specify the transparency value and the position for each defined image. You can also specify a custom position for each image.
Chapter 13: Laying Out a Report 2. In the Properties pane title bar, click the select ancestor button Repeater Table, or Table. 3. Under Color & Background, double-click the Drop Shadow property. 4. Select the Drop shadow check box and then select the color, offset, and transparency values. Background gradients and drop shadows do not appear in Excel output. They are also supported only for report outputs run in the Internet Explorer Web browsers. If you add a drop shadow, ensure that you also specify a background color for the object. Otherwise, if you keep the default transparent background, data values also have a drop shadow and are difficult to read. Tip: To remove the effect, clear the Drop shadow check box. and click Crosstab, List,
Object
Block
Description
Adds an empty block, which is a container in which you can insert other objects. This is useful for controlling where objects appear. Tip: You can use blocks to add space between objects. However, empty blocks are not rendered. You must insert an object or specify the height and width. Tip: The Revenue by GO Subsidiary 2005 sample report (p. 585) in the GO Data Warehouse (analysis) package includes an empty block. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Table
Adds a table, which is a container in which you can insert other objects. This is useful for controlling where objects appear. Adds an empty block that has a caption. This is similar to the Block object, but with a caption.
Field Set
Intersection (Tuple)
Adds an intersection (tuple). For more information, see "Create an Intersection (Tuple)" (p. 400). Adds a calculated column. For more information, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396).
Query Calculation
Object
Crosstab Space
Description
Inserts an empty cell on a crosstab edge. Allows for the insertion of non-data cells on an edge. Blank cells appear for the edge when the report is run. Insert this object when a crosstab edge does not produce useful data and you want blanks to appear in the cells instead.
Inserts an empty cell on a crosstab edge. Allows for the insertion of non-data cells on an edge. The contents of the fact cells for the edge are rendered when a measure is added or the default measure (p. 122) is specified. If the crosstab space is nested, the scope of the fact cells is the scope of the item that is at the level before the space. If the crosstab space is not nested and there are no items nested below it, the scope of the fact cells is the default measure.
Inserts a single data item (p. 92). Adds an empty block that you can use for conditional formatting (p. 475). Adds a container in which you can insert HTML code. HTML items can be anything that your browser will execute, including links, images, multimedia, tooltips, or JavaScript. HTML items appear only when you run the report in HTML format. Note: You cannot include <form> tags in HTML items. Tip: The Table of Contents sample report (p. 590) in the GO Sales (analysis) package includes an HTML item. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). When you upgrade to the next version of IBM Cognos BI, the report upgrade processes do not account for the use of undocumented and unsupported mechanisms or features, such as JavaScript, that refers to IBM Cognos HTML objects.
HTML Item
Object
Rich Text Item
Description
Inserts an object that is used to render HTML in the layout. This object is similar to the HTML Item, except that rich text items also render in PDF output. Using rich text items is useful when you want to add annotations defined in a data source to a report. Note: Rich text items support only a restricted set of well-formed XHTML.
Hyperlink
Adds a hyperlink so that users can jump to another place, such as a Web site. Adds a hyperlink in the form of a button. Adds an As of Time expression so that you can show data for a specific time period (p. 365). Inserts page numbers that you can customize (p. 547). Numbers each row of data returned when the report is run. Note: You can add row numbers only to lists and repeaters.
Layout Component Reference Adds a reference to another object. Useful when you want to reuse an object. Table of Contents Creates a table of contents that is rendered in the output of a report (p. 544). Adds a table of contents marker (p. 544). Inserts a bookmark so that users can move from one part of a report to another (p. 542).
For information about each prompt control and prompt buttons, see "Adding Prompts to Filter Data" (p. 421). The Toolbox tab contains other objects when you work in other areas such as Query Explorer and Condition Explorer. You can also add your own objects to the toolbox, such as a company logo that you use often. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide. Before you can add a hyperlink, HTML item, or hyperlink button, you must have the HTML Items in Report capability. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
Step
To add an object, drag or double-click it from the Toolbox tab .
Each element only supports the style attribute, which must contain a valid CSS style. In addition, ul and ol elements support list-style attributes. Specifically, the ol element supports decimal, and the ul element supports circle, disc, and square, as well as list-style-image. For example, the following code produces an unordered list entitled List: with three items. Each list item is in a different color, and the list-style attribute used is circle.
<div style="font-size:14pt; text-decoration:underline">List:</div> <ul style="list-style-type:circle"> <li style="color:green">Item <span style="font-weight:bold">A</span></li> <li style="color:red">Item B</li> <li style="color:blue">Item C</li> </ul>
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template and in the New dialog box, click Blank. 3. In the Insertable Objects pane, on the Toolbox tab, drag the HTML Item object report. 4. Select the HTML Item. 5. In the Properties pane, double-click the HTML property. 6. In the HTML dialog box, type the following: <OBJECT classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <PARAM NAME="URL" VALUE="/c10/webcontent/samples/images/GO.wmv"/> </OBJECT> When you run the report in HTML format, the multimedia file plays in Windows Media Player. to the
Steps
1. Select the object to align. 2. From the toolbar, click one of the available horizontal or vertical alignment buttons.
The Insert Table dialog box appears. 3. In the Number of columns and Number of rows boxes, type the number of columns and rows for the table. 4. If you want to have the table span the width of the report page, select the Maximize width check box. 5. If you want to add borders to the table, select the Show borders check box. 6. If you want to merge cells in the table, select the cells and click the merge cells button.
Chapter 13: Laying Out a Report Type a number in the Cell spacing text box to define how much space to add between the table cells. Select the Show empty cell borders check box to display the borders even for empty cells.
4. To fix the size of the columns in the table, check the Fixed size check box. When this check box is cleared, the table columns expand to fit the text. Other table properties are described in "Report Studio Object and Property Reference" (p. 605).
Steps
1. Click the table, list, or crosstab. 2. From the Table menu, click Apply Table Style. 3. In the Table styles box, click a table style. Tip: Some styles are unique to tables, lists, or crosstabs. 4. If you are applying a table style to a table or list, in the Apply special styles to section, select or clear the various column and row check boxes based on how you want to treat the first and last columns and rows. Some check boxes may not be available for particular table styles, or to particular columns or rows. 5. If you are applying a table style to a list or crosstab, select the Set this style as the default for this report check box to set the style as the default for all lists and crosstabs. For a list, you may need to clear the First column and Last column check boxes in the Apply special styles to section before you can select this check box. In addition, some table styles cannot be set as the default.
Steps
1. Select the object to which to apply padding. 2. In the Properties pane, double-click the Padding property.
Chapter 13: Laying Out a Report 3. Specify top, bottom, left, and right padding by typing values in the corresponding boxes and choosing the unit of measure. Note: Specifying padding using % as the unit of measure is not supported when producing reports in PDF. Tip: You can quickly apply left or right padding by either pressing Tab and Shift+Tab or by clicking the increase indent and the decrease indent buttons in the toolbar. When using the toolbar buttons, you can indent an object by up to nine times the indentation length. You can specify the indentation length to use by clicking the arrow beside either button and clicking Set Default Indent Length.
Steps
1. Select the object. 2. In the Properties pane, double-click the Margin property. 3. Specify the top, bottom, left, and right margins by typing values in the corresponding boxes and choosing the unit of measure. Note: Specifying margins using % as the unit of measure is not supported when producing reports in PDF.
Steps
1. From the Structure menu, click Lock Page Objects to unlock the report. 2. In the Insertable Objects pane, drag the items to the column. For example, you can add data items from the Source tab tab . or text items from the Toolbox
Chapter 13: Laying Out a Report extension, and fax number for each sales representative in each city organized by country. To reduce the number of columns in the list, you show email addresses, phone numbers, extensions, and fax numbers in a single column.
(query), and Employee by region. Add the following data items to the list by double-clicking them: Country City Employee name Position name Email Work phone Extension Fax .
5. Click the Country column and, from the Structure menu, click Section 6. From the Structure menu, ensure that the report is unlocked
7. Click Country and, in the Properties pane, double-click the Font property. 8. Change the font to Arial Black, 11 pt, and Bold, and then click OK.
Chapter 13: Laying Out a Report 4. In the Insertable Objects pane, on the Toolbox tab, drag Text Item to the left of each item in the table and type the following for each item, putting a blank space before and after the text: Email: Work phone: ext: Fax: .
5. Ctrl+click the Extension, Email, and Fax column titles and click the delete button 6. Click the Work phone column title. 7. In the Properties pane, click the Source Type property and click Text. 8. Double-click the Text property. 9. Type the following and click OK: Contact Information
10. Select the Work phone data item in the first row of the list above the table and click the delete button. 11. Double-click the text item in the page header, type the following, and click OK: Sales Representatives Contact List 12. From the Structure menu, click Lock Page Objects. The report is locked. 13. Run the report. Contact information for each sales representative appears in a single column.
Steps
1. Click the object to reuse. Tip: To quickly select the parent of an object, click the object, and then click the select ancestor button in the title bar of the Properties pane.
2. In the Properties pane, set the Name property to a value beginning with a letter to uniquely identify the object and press the Enter key. IBM Cognos Report Studio may have already specified a name for the object. 3. To reuse the object in another report, open that report. 4. In the Insertable Objects pane, on the Toolbox tab object to the location in which it will be reused. , drag the Layout Component Reference
5. In the Component Location box, do one of the following: To reference an object in the current report, click This report.
Chapter 13: Laying Out a Report To reference an object in another report, click Another report, click the ellipsis (...) button, and open the report.
6. In the Available components to reference box, click the object and click OK. 7. If the referenced object is in another report, click the Layout Component Reference object and in the Properties pane, set the Embed property to specify how to store the referenced object in the report: Click Copy to store a copy of the object. The copy is not automatically updated if the source object is modified. Click Reference to store a reference, or pointer, of the object. The reference of the object is automatically updated if the source object is modified. For example, if you open or run the report, you see the modified object. A copy or reference of the object appears where you placed the Layout Component Reference object. If a source object is changed, you can update reused objects. Tip: You can also create a new report or template and add all the objects to share. All your shared objects then reside in a single location, like a library.
Steps
1. In the parent object to reuse, click the child object to change. 2. In the Properties pane, set the Name property to a value beginning with a letter to uniquely identify the object. Report Studio may have already specified a name for the object. 3. Select the copy of the parent object you created with the Layout Component Reference object. 4. In the Properties pane, double-click the Overrides property. 5. In the Overrides dialog box, select the child object to change and click OK. The child object in the copy of the parent object is replaced by the following text: Drop item to override component child. 6. Drag an object to replace the child object. 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.
Steps
1. Open the report to update. 2. From the Tools menu, click Layout Component Cache. The Layout Component Cache dialog box appears, showing all reports that contain referenced objects and the source reports where the objects exist. 3. To view which components are reused, click a source report. The components that are reused appear in the Components used pane. 4. Click Reload Components to refresh all referenced objects. Although referenced objects are automatically refreshed when you open or run a report, clicking this button updates components that were changed while the report is open. 5. Click Update All Component Copies to refresh all copied objects. 6. Click Close.
Option
Direction Writing mode Bi-directional Type Kashida space
Description
Sets the reading order of an object, such as right to left. Sets the direction and flow of content in an object. Sets the level of embedding in an object. Sets the type of alignment used to justify text in an object. Sets the ratio of kashida expansion to white space expansion when justifying lines of text in the object. This property is used in Arabic writing systems.
Note: All the text flow properties work with HTML output but do not apply to PDF output.
Steps
1. Click an object. 2. In the Properties pane, double-click the Text Flow & Justification property.
Chapter 13: Laying Out a Report 3. Specify the text flow options.
Option
Line Height Letter Spacing Text Indent
Description
Sets the distance between lines of text in an object. Sets the amount of additional space between letters in an object. Sets the indentation of the first line of text in an object. Note: This property works with HTML output but does not apply to PDF output.
Word Break
Break words when necessary Sets whether to break words when the content exceeds the boundaries of an object. Enforce stricter line-breaking Sets line-breaking rules for Japanese text. rules for Japanese Text
Steps
1. Click an object. 2. In the Properties pane, double-click the Spacing & Breaking property. 3. Specify the text properties.
Option
Height Width
Description
Sets the height of the object. Sets the width of the object.
Option
Content is not clipped
Description
If the contents of the block exceed the height or width of the block, the block automatically resizes to fit the contents. If the contents of the block exceed the height or width of the block, the content is clipped. Note: The clipped content still exists. It is just not visible in the block.
Content is clipped
Use scrollbars only when nec- If the contents of the block exceed the height or width of the block, scrollbars are added to the block. essary Always use scrollbars Scrollbars are added to the block.
Do not use percentages to resize charts and maps that contain interactive elements that are activated when you pause the pointer over them, such as tooltips or drill-through links, because the browser is unable to realign the hard-coded hot spots after an image is resized. When you use a percentage to specify the size of an object, the percentage is relative to the object's parent. In some cases, setting the size of an object using percentages will not give you the results that you want unless you also specify the size of the parent container.
Steps
1. Click an object. 2. In the Properties pane, double-click the Size & Overflow property and specify the height and width.
Option
Float
Description
Sets how other objects flow around the object.
Allow floating objects on both Allows other objects to flow on both sides. The Float property must be set. sides Move below any floating object on the left side Move below any floating object on the right side If there are other objects to the left of the object, the object moves below those objects. The Float property must be set. If there are other objects to the right of the object, the object moves under those objects. The Float property must be set.
Option
Move below any floating object
Description
Moves the object under any other object in which the Float property was set.
Steps
1. Click an object. 2. In the Properties pane, double-click the Floating property. 3. Specify how other objects flow around the object by specifying the floating options.
Steps
1. From the File menu, click Report Properties. 2. To specify the classes that IBM Cognos Report Studio uses to format objects, click Report styles and choose one of the available options. For more information, see "Create and Modify Report and Object Styles" (p. 460). 3. For reports with multiple data containers, to render the default number of rows of each data container on each HTML page, you must set the Page break by data container for interactive HTML option to Yes. The default value is No. For more information, see "Controlling the Rows Per Page for Multiple Containers in HTML and PDF" (p. 98). 4. To automatically create extended data items every time a data item is inserted, select the Always create extended data items check box. Report Studio creates extended data items by default. For more information about extended data items, see "Extended Data Items" (p. 356). 5. To create a single, scrollable HTML page when you run and save this report as HTML from IBM Cognos Connection, clear the Paginate saved HTML output check box. The default is to paginate HTML reports with the same page breaks as PDF reports. The single, scrollable HTML page will be available from IBM Cognos Connection when you click the view output versions for this report button .
6. If you are working with reports created in IBM Cognos ReportNet and you want to create CSV report output, click Use 1.x CSV export. This option ensures that all the query columns are exported. In IBM Cognos ReportNet, if a data item was referenced using the Properties property of a list, it was included in the CSV output. In IBM Cognos BI, the default is to export only the columns in the list.
2. To create a new class, in the Insertable Objects pane, drag Class to the Local Classes pane. 3. To modify an existing class, in the Local Classes or Global Class Extensions pane, click the class. Modify a global class to apply a change to all objects that use that class. For example, if you modified the style List column title cell, all column titles in lists will reflect your modifications. Tip: Ctrl+click classes to make the same change to more than one class. 4. In the Properties pane, modify the properties to specify your desired formatting.
Chapter 13: Laying Out a Report Tip: Look at the Preview pane to preview your changes for different report objects, such as blocks, table cells, and text items. If you modify a global class, a pencil symbol appears beside the global class icon to indicate that the class was modified. 5. Apply the class to objects: Pause the pointer over the page explorer button and click a report page. Click an object to which to apply a class. In the Properties pane, double-click the Class property. Click the classes to apply from the Local classes and Global classes panes and click the right arrow button .
If you applied more than one class, in the Selected classes pane, specify the order in which the classes are applied using the up and down arrow buttons. Classes in the Selected classes pane are applied from top to bottom. The style properties from all classes are merged together when they are applied. However, if the classes have style properties in common, the properties from the last class applied override those from previous classes.
Chapter 13: Laying Out a Report An alternative way to consistently exclude a report object from HTML, PDF and Microsoft Excel output is to set the Box Type property for the object to None. CSV and XML report outputs will still contain the object.
Class
List column body cell List column title cell
Description
Style used to format list data. Style used to format list column titles.
Steps
1. Create a Query Studio template (p. 551). 2. Modify the global classes. 3. Save the template. To format a Query Studio report using the modified classes, the template must be applied to the report. For more information about applying a template to a Query Studio report, see the Query Studio User Guide.
Steps
1. Select the object. Tip: To quickly select the parent of an object, click the object, and then click the select ancestor button in the title bar of the Properties pane.
Chapter 13: Laying Out a Report Click the background color button or the foreground color button .
In the Properties pane, double-click the Background Color or Foreground Color property.
3. To apply an existing color, click the Named Colors tab or Web Safe Colors tab and choose one of the available colors. Use a named color to select a color from a small set of colors. Use Web safe colors to select from 216 available colors. 4. To apply a custom color, click the Custom Color tab and type values in the Red, Green, and Blue boxes. The values must be hexadecimal.
To work with your external data, you start with an existing IBM Cognos package. You import data from your external file into the package and create links between data items in your file and data items in your enterprise data source. You then publish a new package that allows you to create reports that use your data and your enterprise data, or reports that use only your data. You can link your external data with both dimensional and relational data sources. Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
465
Chapter 14: Working With Your External Data Before you can import your own external data file, your IBM Cognos administrator must grant you permission for the Allow External Data capability found within the Report Studio capability, and you must have permission to use IBM Cognos Report Studio or IBM Cognos Business Insight Advanced. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
Import your external data and link your data with your enterprise data.
1.
Prepare your external data file for import. Ensure that your external data file matches your enterprise data for your reporting needs. For example, if your external data file contains sales values by month, ensure that the formatting of months in your file matches the formatting used in your enterprise data source. Ensure that you can uniquely link at least one column from your external data file, such as product codes or years, with your enterprise data source. The maximum file size that you can import is 2.5 MB, with a maximum of 20000 rows. You can import a maximum of one external data file per package. Your IBM Cognos modeler can override these governors in IBM Cognos Framework Manager.
2.
Import your external data (p. 468). You import your external data file from your own computer or from a location on your network into an existing IBM Cognos package. A step-by-step wizard guides you through importing your data. If you want to create reports that contain data from both your external data file and your enterprise data source, you must link data items from the two data sources. You can import all or a subset of data columns from your external file. By adding external data, you extend an existing IBM Cognos package definition with the new data items from your file and you create a new package.
3.
Create reports with your external data file. After you import and link your external data, it appears as a new namespace in the data tree of the Source tab in the Insertable Objects pane and is integrated with the IBM Cognos content. You can then create reports with your data and perform any operation, such as filtering, sorting, grouping, or adding calculations. When you run the report, it uses data items from your external data file.
7
4.
You can save reports that contain your external data within the My Folders area of the IBM Cognos portal. Determine whether you want to share your reports that use external data with other people in your organization. If you decide to share, take into account these considerations (p. 472).
Chapter 14: Working With Your External Data Data in your external file is relational by nature because it consists of tables and rows. If your enterprise data source is dimensional, you can still import and work with your external data. However, you cannot mix relational data from your external data files, and dimensional data from your enterprise data source within the same query. For example, a data container, such as a list, crosstab, or chart, uses one query and you cannot mix relational and dimensional data within the same list, crosstab, or chart. Doing so will cause an error. If you want to use data from both the external data file and the original package within the same query, you must link the external data to a query subject within the current package instead of another report.
Chapter 14: Working With Your External Data and your enterprise data. For example, your external data contains information about employees, including an employee number. You map the employee number from your external data file to the employee number in your enterprise data. This ensures that your data is integrated smoothly.
Attribute
Data type
Description
Identifies whether data in the file is one of the following type: Integer, which represents numeric values. Decimal, which represents integer values that are scaled by a variable power of 10. Text, which represents values that contain letters and symbols. Date or Date Time, which represent dates and times.
Default summary
Identifies Sum, Average, Max, Min, Count or Unsupported as the default type of summary for the data item. Applies only to Integer and Decimal data types.
Decimal places
Specifies the number of decimal places for the data item. Applies only to the Decimal data type.
Chapter 14: Working With Your External Data 2. On the Select Data page of the wizard, under External data file, click Browse and select your external data file to import. If you want the server to load the file without prompting users when they run the report, select the Allow the server to automatically load the file check box. If selected, you must use the Universal Naming Convention (UNC) path, such as \\servername\filename and you must ensure that the IBM Cognos server has access to the file. 3. Under Data items, select the check box for the data items that you want to import. 4. Type a name for the namespace and click Next. The namespace appears in the Source tree, and identifies the external data within the package. By default, the name is the name of your imported external data file. 5. If you do not want to link your data or change the data attributes, click Finish now.
3. Click the two data items that you want to link and click the New link button. A link appears linking two data items. Tip: You can create multiple links for multiple data items. To delete a link, select the link and click Delete Link. 4. Click Next.
2. Click Publish. IBM Cognos BI imports your external data into a new package. A namespace with the data items from your external file appears in the Source tree of the Insertable Objects pane. You can now create reports with your external data.
You can also import multiple external data files into the same package. To do this, your data modeler must modify governors in the model and republish the package that contains your enterprise data. For more information, see the IBM Cognos Framework Manager User Guide.
Steps
1. From the Tools menu, click Manage External Data .
2. In the Manage External Data dialog box, select the external data to edit and click the edit button .
3. In the left pane, select the options that you want to change. 4. Click OK and the re-publish the package. IBM Cognos BI re-imports your external data and updates the data items that appears in the data tree of the Insertable Objects pane.
Chapter 14: Working With Your External Data You can now create and update reports with your external data.
Steps
1. From the Tools menu, click Manage External Data .
2. In the Manage External Data dialog box, select the external data package to delete and click the delete button 3. Click Publish. The external data namespace is removed from the package. If you also no longer require the external data package or any reports created with the package, you can delete it from within IBM Cognos Connection. .
However, you are not re-prompted within the same Web browser session. You can determine whether data in a report uses external data by tracing its lineage. For more information, see "View Lineage Information for a Data Item" (p. 101).
Chapter 14: Working With Your External Data Cognos administrator to obtain permissions and to inform him or her that you are sharing a package or files. If you share your reports, ensure that you maintain the reports.
Type
Numeric Range Date/Time Range Date Range
Description
Highlights straight numerical data, such as revenues and losses. Highlights data from specific dates and times. Highlights data from specific dates.
475
Type
Time Range Interval String
Description
Highlights data from specific times. Highlights data falling between set intervals. Highlights specific alphanumeric items in a report. For example, you can highlight all instances of a specific word or phrase, such as Equipment. String criteria are case-sensitive. If multiple string conditions are met, only the first conditional style is applied.
Advanced
Creates conditional styles that use calculations or expressions. If multiple advanced conditions are met, only the first conditional style is applied.
You can also apply a conditional color palette to a chart (p. 154). You can perform a search to find objects in your report that use conditional styles (p. 83). You can also view all the conditional styles used in your report to delete or modify them (p. 478). You can also use variables to highlight data (p. 479). If a report contains both conditional styles and style variables, the style variables are applied first and then the conditional styles are applied. Tip: The Return Quantity by Order Method sample report (p. 583) in the GO Data Warehouse (analysis) package includes conditional highlighting. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Tip: You can also right-click the object and click Style, Conditional Styles or click the object, and then, in the Properties pane, set the Conditional Styles property. 2. Click the add button and click New Conditional Style.
3. Select the data item to determine the condition and click OK. The type of conditional style that you can use depends on the type of data item you select. 4. In the Name box, type a name for the conditional style. 5. To define a numeric value, date/time, date, time, or interval condition: Click the new button and select a value to define a threshold.
The value appears in the Range column, and two ranges are created. For each range, under Style, click one of the predefined styles to apply to the range or click the edit button 476 IBM Cognos Report Studio and create a new style.
Chapter 15: Using Conditions Tip: You can also define a style for the cells in your report that have missing values. Repeat the steps above to add other conditions. Tip: Under Style, pause the pointer over each range that range. to see the condition produced for
For example, you insert a threshold value of five million. By default, the ranges are less than or equal to five million and greater than five million. Moving the five million value above the threshold changes the ranges to less than five million and greater than or equal to five million. 6. To define a string condition: Click the new button and select how to define the condition. To select more than one individual value, click Select Multiple Values and click the values. To type specific values, click Enter Values and type the values. To specify your own criteria, such as values that begin with the letter A, click Enter String Criteria and specify the condition. For each condition, under Style, click one of the predefined styles to apply or click the edit style button and create a new style. Specify the style to apply to remaining values by clicking one of the predefined styles beside Remaining values (including future values). Specify the order in which to evaluate the conditions. Conditions are evaluated from top to bottom, and the first condition that is met is applied.
Tip: You can also right-click the data item and click Style, Conditional Styles or click the data item, and then, in the Properties pane, set the Conditional Styles property. 2. Click the add button , click Use Existing Conditional Style, and select the style.
Tip: You can also right-click the data item and click Style, Conditional Styles or click the data item, and then, in the Properties pane, set the Conditional Styles property. 2. Click the add button and click Advanced Conditional Style.
Chapter 15: Using Conditions 4. Click the add button and specify the expression that defines the condition.
5. For each condition, under Style, click one of the predefined styles to apply or click the edit button and create a new style. Specify the style to apply to remaining values by clicking one of the predefined styles beside Remaining values (including future values). 6. Specify the order in which to evaluate the conditions by clicking a condition and then clicking the move up or move down arrow. Conditions are evaluated from top to bottom, and the first condition that is met is applied.
Step
From the Tools menu, click Manage Conditional Styles.
Steps
1. Open the GO Balance Sheet as at Dec 31 2006 report from the GO Data Warehouse (analysis) package. 2. Right-click any cell in the % Variance column and click Style, Conditional Styles. 3. Select Conditional Style 1 and click the edit button .
4. Select the first advanced condition listed and click the edit button. 5. Delete =0 from the expression definition. 6. Click the Functions tab, and then expand the Operators folder. 7. Double-click between, and then click after between in the expression, add a space, and type 0. 8. Double-click and, and then click after and in the expression, add a space, type .1, and click OK. 9. From the Style box associated with this condition, click Average. 10. Select the second advanced condition listed and click the edit button. 478 IBM Cognos Report Studio
Chapter 15: Using Conditions 11. Replace >0 in the expression with >.1 and click OK. 12. Leave the style associated with this condition as is. 13. Run the report. The new conditional style appears in the % Variance column.
Steps
1. Create a variable and define the condition that determines if the data will be highlighted. 2. In the work area, click the column to highlight based on the condition. 3. In the Properties pane, double-click the Style Variable property. 4. Click Variable, click the variable to assign to the object, and click OK. 5. If you assigned a string variable, in the Values box, select the values for the condition to support. Tip: A default value exists for the variable, and it is always selected. 6. If you assigned a language variable, in the Values box, select the languages for the condition to support. Tip: A default value exists for the variable, and it is always selected. 7. Click OK.
Chapter 15: Using Conditions 8. Pause the pointer over the condition explorer button value. and click a value other than the default
Tip: When you select a value in the condition explorer, the Explorer bar becomes green to indicate that conditional formatting is turned on and that any changes you make to the report apply only to the variable value. For example, if you created a Boolean variable, click Yes. 9. In the Properties pane, specify the formatting with which to highlight the column when the condition is satisfied. For example, click the Border property to create a thicker border around the column. 10. Repeat steps 8 to 9 for other possible values defined for the variable. Tip: To view the report with no variables applied, pause the pointer over the condition explorer button and click (No variable) or triple-click the Explorer bar. When you run the report, the report objects to which you applied the variable are highlighted when the condition is satisfied. For example, if you created a Boolean variable, the objects are highlighted when the condition is met. If the condition is not satisfied for any object, no conditional formatting is applied.
Add a Variable
Before you can add conditional formatting or conditional rendering to your report, you must add a variable. You can create a variable in the condition explorer or in the Properties pane.
2. In the Insertable Objects pane, drag one of the following variables to the Variables pane: To create a variable that has only two possible values, Yes and No, drag Boolean Variable. To create a variable whose values are string-based, drag String Variable. To create a variable whose values are different languages, drag Report Language Variable.
Chapter 15: Using Conditions 3. If you created a Boolean variable, in the Expression Definition box, define the condition and click OK. For example, the following expression returns the value Yes if revenue is less than one million and the value No if revenue is greater than or equal to one million: [Revenue]<1000000 For information about creating expressions, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396) and "Calculation Components" (p. 773). 4. If you created a string variable, do the following: In the Expression Definition box, define the condition and click OK. For example, the following expression returns the value high if revenue is greater than one million and the value low if revenue is less than or equal to one million:
if ([Revenue]>1000000) then ('high') else ('low')
For information about creating expressions, see "Using Relational Calculations" (p. 342) or "Using Dimensional Calculations" (p. 396) and "Calculation Components" (p. 773). Click the add button in the Values pane.
For each value that the variable can assume, type the name of the value that corresponds with the possible outcomes defined in the expression. For example, in the previous expression, you must create two values for the variable, high and low. Tip: You can create a group by clicking two or more values and then clicking the group values button languages. . For example, you can create a group that includes the available French
5. If you created a language-specific variable, in the Languages dialog box, select the languages to support.
Goal
Conditional Property
Specify a variable based on which text can be conditionally Text Source Variable shown. For example, you want different text to appear when a report is run in a different language.
Goal
Conditional Property
Specify a variable based on which object can be condition- Render Variable ally rendered. For example, you want to make a revenue report smaller by not rendering rows that are below a threshold. Specify a variable based on which object can be condition- Style Variable ally styled. For example, you want data that meets some criterion to appear in a different color. Specify a variable based on which objects in a block can Block Variable be conditionally rendered. Applies only to conditional block objects that you insert in a report (p. 445).
3. In the Variable box, click an existing variable or one of the following variable types: <New language variable> <New string variable> <New boolean variable>
4. In the New Variable dialog box, in the Name box, type the name of the variable. 5. If you created a string variable, click the add button click OK. 6. If you created a language variable, select the languages to support and click OK. 7. In the Expression Definition box, define the condition. , type the string values to define, and
Steps
1. Create a variable, and define the condition that determines if the object is shown or hidden. Tip: Create a Boolean variable to show and hide objects, as this type of variable has only two possible values.
Chapter 15: Using Conditions 2. In the Insertable Objects pane, on the Toolbox tab the work area. 3. Select the conditional block. 4. In the Properties pane, double-click the Block Variable property. 5. In the Variable box, click the variable you created and click OK. 6. Set the Current Block property to Yes. 7. In the Insertable Objects pane, drag the object to show or hide to the conditional block. For example, drag a data item from the Source tab or from the Data Items tab. You may need to link the report page to a query (p. 537) before you can add a data item to the block. When you run the report, the report objects to which you applied the variable are visible when the condition is satisfied and invisible when it is not. , drag a Conditional Blocks object to
Steps
1. Select the list column to be rendered conditionally. Tip: You must select the list column, not the list column body or the list column title. If the body or title is selected, as indicated in the Properties pane, click the select ancestor button and click the list column. 2. In the Properties pane, double-click the Render Variable property. 3. Click Variable and click the variable that will determine if the column will be rendered. 4. In the Render for box, select the values that the condition will support. Tip: A default value exists for the variable, and it is always selected.
7. Select the Order Number column and click the group button 8. Click Revenue, and then click the summarize button 9. Change the title of the report to New Orders. 10. Pause the pointer over the page explorer button
11. Create a new prompt page by double-clicking Page in the Insertable Objects pane. 12. Double-click the new prompt page. 13. In the Insertable Objects pane, on the Toolbox tab following text: , double-click Text Item and type the
Enter the start date, and select if descriptions will be shown. 14. Insert a 2 by 2 table into the prompt page by clicking the insert table button the pointer until four squares are highlighted in a 2 by 2 pattern. and moving
15. In the Insertable Objects pane, on the Toolbox tab, drag a Text Item into the upper-left cell and type the following text: Starting Date 16. In the Insertable Objects pane, drag a Text Item into the lower-left cell and type the following text:
Chapter 15: Using Conditions Show Descriptions 17. In the Insertable Objects pane, drag a Date Prompt into the upper-right cell. 18. In the Prompt Wizard window, select Create a new parameter, type p_Date in the space provided, and then click Next. 19. In the Create Filter window, select Create a parameterized filter with the following entries: For Package item, click the ellipsis (...) button and open Sales (query) and Time dimension, and then click Date. For Operator, click >.
20. Click Finish. 21. In the Insertable Objects pane, drag a Value Prompt into the lower-right cell. 22. In the Prompt Wizard, in the Choose Parameter window, select Create a new parameter, type p_ShowDesc in the space provided, and then click Finish. 23. Select the Value Prompt and, in the Properties pane, double-click Static Choices. 24. Click the add button .
25. In the Edit dialog box, type Yes in both the Use and Display boxes. 26. Click the add button. 27. In the Edit dialog box, type No in both the Use and Display boxes. 28. Click OK.
2. In the Insertable Objects pane, create a new Boolean variable by double-clicking Boolean Variable. 3. In the Report Expression dialog box, type the following in the Expression Definition window and click OK: ParamDisplayValue("p_ShowDesc") = 'Yes' 4. In the Properties pane, set the Name property to showDesc. 5. Pause the pointer over the page explorer button 6. Click the Product descriptions column. 7. In the Properties pane, click the select ancestor button and click List Column. and click the report page.
8. In the Properties pane, set the Render Variable property to the showDesc Boolean variable you created.
Chapter 15: Using Conditions 9. Run the report. The report prompts you for a date provides orders that occur after the date you entered. The report also asks whether to show the Descriptions column, and the column is rendered only if you choose Yes.
Steps
1. Create a variable and define the condition that will be used for each layout. For example, create a report language variable that includes each language that requires a conditional layout. Note: Expressions used in a conditional layout cannot reference a query. 2. From the File menu, click Conditional Layouts. 3. Select a variable, and then select the values that require a separate layout. A layout is created for each value you selected. Use the page explorer to navigate the different layouts. For each layout, click Report Pages to create a report page or Prompt Pages to create a prompt page (p. 421) and add objects. Tip: You can create new variables from the Conditional Layouts dialog. The variables are added to the condition explorer. For more information, see "Add a Variable" (p. 480).
Chapter 15: Using Conditions Modelers use Framework Manager to add multilingual metadata to the model from any data source type except OLAP. They add multilingual metadata by defining which languages the model supports, translating text strings in the model for things such as object names and descriptions, and defining which languages are exported in each package. If the data source contains multilingual data, modelers can define queries that retrieve data in the default language for the report user. For more information, see the Framework Manager User Guide. Create multilingual maps. Administrators and modelers use a Microsoft Windows operating system utility named Map Manager to import maps and update labels for maps in Report Studio. For map features such as country and city names, administrators and modelers can define alternative names to provide multilingual versions of text that appears on the map. For more information, see the Map Manager Installation and User Guide. Create a multilingual report. The report author uses Report Studio to create a report that can be viewed in different languages. For example, you can specify that text, such as the title, appears in German when the report is opened by a German user. You can also add translations for text objects, and create other language-dependent objects. For more information, see the Report Studio User Guide. Specify the language in which a report is viewed. You can use IBM Cognos Connection to do the following: Define multilingual properties, such as a name, screen tip, and description, for each entry in the portal. Specify the default language to be used when a report is run. Tip: You can specify the default language on the run options page, in the report properties, or in your preferences. Specify a language, other than the default, to be used when a report is run.
For more information, see the IBM Cognos Connection User Guide. The data then appears in the language and with the regional settings specified in the user's Web browser options the run options the IBM Cognos Connection preferences
Any text that users or authors add appears in the language in which they typed it.
Steps
1. Create a report language variable. 2. In the work area, select the object to modify based on a language. 3. In the Properties pane, double-click the Style Variable property. If you are changing the language of a text string, click Text Source Variable instead. 4. Click Variable and click the language variable you created. 5. In the Values box, select the languages for the condition to support and click OK. Tip: A default value exists for the variable, and it is always selected. 6. Pause the pointer over the condition explorer button and a language for the variable.
Tip: When you select a value in the condition explorer, the Explorer bar becomes green to indicate that conditional formatting is turned on and that any changes you make to the report apply only to the variable value. 7. In the Properties pane, specify the formatting for the language. For example, to change the language of a text string, double-click the Text property and select the new string. 8. Press Enter when you are done. 9. Repeat steps 6 to 8 for all other languages specified for the variable. Tip: To view the report with no variables applied, pause the pointer over the condition explorer button and click (No variable) or triple-click the Explorer bar. When you run the report, the report objects to which you applied the variable are formatted according to the browser's language.
Steps
1. Pause the pointer over the query explorer button data to distribute. and click the query that will produce the
489
Chapter 16: Bursting Reports 2. In the Insertable Objects pane, on the Toolbox tab , drag Data Item to the Data Items pane.
3. In the Expression Definition box, type the expression that will generate the list of recipients and click OK. For example, typing the following expression builds the list of the employees of The Great Outdoors Company. The expression concatenates the first letter of each employee's first name with their last name. lower(substring([Employee summary (query)].[Employee by organization].[First name],1,1) + [Employee summary (query)].[Employee by organization].[Last name]) 4. To give the data item a more meaningful name, in the Properties pane, set the Name property to a different name and press the Enter key.
You can also include other columns that provide additional information. For example, if you plan to distribute reports by email, you can add a column for the email address of each recipient. After you create the table, add the recipients who will receive the report. You can create a mixed recipients list that includes individual users, groups, roles, contacts, distribution lists, or email addresses. For example, a burst table may contain the following recipients.
Recipient example
CAMID(":Canada") CAMID(":")/contact[@name='Silvano Allessori']
Recipient type
Group Contact
Recipient example
CAMID(":")/distributionList[@name='European Partners']
Recipient type
Distribution list
CAMID("LDAP_Local_ID:u:uid=gbelding,ou=peo- Authentication provider user or group, ple") where LDAP_Local_ID is the name of an LDAP namespace ID, and people is the name of an organizational unit c10@ibmcognos99.com Email address
CAMID stands for Cognos Access Manager ID, and it represents an internal search path to the recipients. Specify search paths when you want to save burst reports in a folder. You can obtain the search path in IBM Cognos Connection by opening the Set properties page for each recipient and clicking View the search path. Ensure that you use the proper syntax when adding recipients to the burst table. In the case of NTLM namespaces, user IDs in the search path use alphanumeric or numeric characters that make them difficult to read. You can use the following alternate search path syntax:
directory/namespace[@name="Local NT"]//account[@userName="gbelding"]
where Local NT is the name of a namespace and gbelding is the name of a user. The double slash before the account element indicates that you are searching all accounts under the specified namespace. Note: If you have a mixed recipients list, do not mix email address recipients and alternate path recipients. Because the alternate path syntax contains the @ symbol, it will be mistaken for an email address. For more information about users, groups, roles, contacts, and distribution lists, see the IBM Cognos Business Intelligence Administration and Security Guide.
Chapter 16: Bursting Reports For more information about importing tables and creating relationships, see the Framework Manager User Guide.
Steps
1. Pause the pointer over the query explorer button data to distribute. 2. If you are creating a data item, do the following: In the Insertable Objects pane, on the Toolbox tab pane. , drag Data Item to the Data Items and click the query that will produce the
In the Expression Definition box, type the expression that defines the burst key. For example, the following expression builds an email address for each sales representative in The Great Outdoors Company. The expression incorporates the calculated field that was previously created, which is named userID below, with ibmcognos99.com as the domain name.
[userID]+'@ibmcognos99.com'
Tip: To give the data item a more meaningful name, in the Properties pane, set the Name property to a different name and press Enter. 3. To specify a burst table column as the data item, do the following: In the Insertable Objects pane, on the Source tab Drag the data item to the Data Items pane. For example, if you are bursting reports by email, drag the data item containing email addresses. , expand the burst table.
Steps
1. From the File menu, click Burst Options. 2. Select the Make report available for bursting check box.
Chapter 16: Bursting Reports 3. Under Burst Groups, in the Query box, click the query that contains the data item on which to burst. Tip: You can choose a query that does not appear in the layout. This is useful to distribute the same report to all burst recipients. 4. In the Label box, click the data item with which to label each burst report. 5. Click the edit button .
6. In the Data Items box, drag the data item on which to burst to the Groups folder and click OK. Tip: You can specify the sort order of data within each group by dragging data items to the Sort List folder and then clicking the sort order button .
7. Under Burst Recipient, in the Query box, click the query that contains the data item to be used as the distribution list. 8. In the Data Item box, click the data item that contains the recipients. 9. In the Type box, choose the method to burst the report: Click Automatic to let IBM Cognos BI determine from the data item whether to email reports or send them to folders in IBM Cognos Connection. Click Email addresses to distribute reports by email. Click Directory entries to distribute reports to folders that recipients can access in IBM Cognos Connection. Note: To burst reports to multiple mobile device users, you must choose to distribute reports to folders. You can choose Directory entries, or you can choose Automatic if the data item returns directory entries instead of email addresses. To view the reports, the recipients must have IBM Cognos Mobile installed on their mobile devices. For more information about IBM Cognos Mobile, see the IBM Cognos Mobile Installation and Administration Guide and User Guide. When recipients log into IBM Cognos BI, they will see only the report that is specific to them. 10. If the report contains two nested data containers, such as a list and a chart, click the ellipsis (...) button beside Master detail relationships and define the relationship between the data containers. For information about master detail relationships, see "Create a Master Detail Relationship" (p. 386).
Enable Bursting
When the report is ready to be distributed, enable bursting for the report in IBM Cognos Connection.
Steps
1. Locate the report in IBM Cognos Connection. 2. Under Actions, click the run with options button 3. Click advanced options on the right of the screen. 4. Under Time and mode, click Run in the background. 5. Select the Burst the report check box. 6. If you are distributing reports by email, select the Send the report by email check box. Tip: If you are bursting the report to a folder, you can also send the report by email if the Send the report by email check box is selected. Reports will be emailed if the recipient's email address is stored in the authentication source you are using or if they are entered in the recipient's personal information in IBM Cognos Connection. 7. If the burst report contains a drill-through link to another report (p. 525) and you are distributing the burst report by email, do the following: Click Edit the options. Select the Include a link to the report check box. .
If you do not select the check box, the drill-through links in the burst report will not work. 8. Run the report. Allow a few moments for the report to run. If you are an administrator, you can view all outputs for the report. Under Actions, click View the output versions for this report. When burst recipients log into IBM Cognos Connection or access their email accounts, they will see only the data that is meant for them.
Chapter 16: Bursting Reports In IBM Cognos Framework Manager, include both the dimensional data source that is the basis for reporting and the relational burst table in the model. For more information about models, see the Framework Manager User Guide. In IBM Cognos Report Studio, create a master detail report in which the master query drives the report and the detail query contains the burst information. You must group the master query on the data item on which you are bursting. This data item must have a corresponding data item in the relational burst table. Author the detail query against the relational burst table. The burst table must contain two columns: the data item corresponding to the data item used in the master report for bursting and the data item that contains the recipient information. The recipient can be an email address or an expression that results in a search path to an object in IBM Content Manager, such as an account, group, role, contact, or distribution list. For more information about master detail queries, see "Create a Master Detail Relationship" (p. 386). Ensure that the detail query, which must be evaluated by IBM Cognos BI when the report is executed, is not visible: Place a list that is based on the detail query in a conditional block with a box type of None. Link the master and detail queries using the following expression:
[Master Burst Key] = [Detail Burst Key]
When you set the burst options for the report, the master query provides the data items for the burst key and the detail report provides the data items for the burst recipients.
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab Sales (query). Add the following data items: Expand Employee by region and add Employee name. Expand Products and add Product line, Product type, and Product. Expand Sales fact and add Quantity and Revenue. User Guide 495 , expand Sales and marketing (query) and
Chapter 16: Bursting Reports 5. Group the Employee name, Product line, and Product type columns. 6. Click the Employee name column, click the headers and footers button Create Header. Employee name appears as a header in the list. You no longer need to keep the data item as a list column. 7. In the list, click the Employee name column and click the delete button 8. Click Revenue, and then click the summarize button 9. Pause the pointer over the query explorer button and click Total. and click Query1. . , and then click
10. In the Insertable Objects pane, on the Source tab, drag Email from the Employee by region folder to the Data Items pane. 11. From the File menu, click Burst Options. 12. Select the Make report available for bursting check box. 13. Under Burst Groups, in the Query box, click Query1. 14. In the Label box, click Employee name. 15. Click the edit button .
16. In the Data items box, drag Employee name to the Groups folder and click OK. 17. Under Burst Recipient, in the Query box, click Query1. 18. In the Data Item box, click Email. 19. In the Type box, click Email addresses. 20. Save the report. 21. Locate the report in IBM Cognos Connection. 22. Under Actions, click Run with options .
23. Click advanced options on the right of the screen. 24. Under Time and mode, click Run in the background. 25. Select the Burst the report check box. 26. Select the Send the report by email check box. 27. Run the report. When sales representatives access their email accounts, they will see reports with only the data that is meant for them.
If you create a calculation that uses mixed currency values, an asterisk character (*) appears as the unit of measure. To remove the asterisk character, change the format of the corresponding row or column.
Steps
1. From the Data menu, click Default Data Formats. 2. In the Format type box, click a format type. The properties that you can set for the selected format type appear in the Properties box. 3. If you clicked the Currency format type and require different currencies in the report, click the add button and select currency check boxes.
For example, you may have one column with values are in euros and another column whose values are in US dollars. 4. Set the properties. Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
497
Chapter 17: Format Data If you added currencies in step 3, click each one and set the properties. If you did not add any currencies, any properties you set will apply to all currencies. For properties in which you type meta-characters that represent certain types of information, such as YYYY-MM-DD for dates, the meta-characters that are required depend on the authoring language specified for the report. For more information, see "Using Patterns to Format Data" (p. 502). If you set a value for the Pattern property, all other formatting properties are ignored with the following exceptions: Missing Value Characters Zero Value Characters Negative Pattern
Some properties are language-sensitive and should be changed only with caution. The data formatting properties you set are applied to objects only in the current layout. If a data item contains values in multiple currencies but only a subset of those currencies have defined formats, the default format for the locale in which you are working is applied to values with no specified format.
Steps
1. Click the object. 2. In the Properties pane, double-click the Data Format property. 3. Under Format type, click the format type to apply to the object. 4. To override any of the properties of the format type that were defined for the current layout, in the Properties box, click the property and specify its value.
Chapter 17: Format Data If the digit immediately after the precision to be shown is greater than 5, the number is rounded up. If the digit immediately after the precision to be shown is less than 5, the number is rounded down. If the digit immediately after the precision is a 5, the number is rounded down when the preceding digit is even and rounded up when the preceding digit is odd. For example, the number 78.5 is rounded to 78, while the number 73.5 is rounded to 74. In addition, if the maximum number of decimals is lower than the actual number of decimals in the number, the number is rounded to the maximum number of decimals.
Locale-sensitive Properties
IBM Cognos Report Studio contains an extensive library of customized properties adapted to users from different regions who speak different languages. For example, if a modeler specifies that a given data item is a currency, only the proper currency symbol must be specified. When reports are created, Report Studio automatically adapts the format of the currency numbers to each user according to the content language specified in IBM Cognos Connection. When modelers or report authors specify properties, these properties override user preferences and risk creating inconsistent formatting for users of other cultures. It is usually much easier and safer to let Report Studio take care of formatting. For example, for the date format type, different regions use different characters to represent the date separator. If you specify a date separator, you may confuse users in other regions. The following data formatting properties are locale-sensitive: Currency Symbol Position Date Separator Date Ordering Calendar Type Time Separator Display AM/PM Symbols Clock Decimal Symbol Negative Sign Position Thousands Separator Group Size (digits) Secondary Group Size (digits) Missing Value Characters User Guide 499
Chapter 17: Format Data Zero Value Characters Pattern Negative Pattern
Steps
1. From the Data menu, click Suppress and click Suppression Options.
2. Under Suppress, choose what sections to suppress. 3. Under Suppress the following, choose which values to suppress.
Relational-style Reports
In relational-style reports, you can use detail and summary filters.
Dimensional-style Reports
In dimensional-style reports, you can use the filter function. For example, insert a set expression (p. 398) in your crosstab and use the expression filter (
descendants ([Set]) is not null). If your crosstab includes three or more levels within the same
Chapter 17: Format Data dimension on an edge, use the expression filter ( descendants ( currentMember([Hierarchy] )
is not null).
If your crosstab includes nested sets, filter the sets using a cascading approach to improve performance. For example, first filter the outermost (or highest nested level) set, and then filter the remaining sets proceeding inward.
Steps
1. Open the Great Outdoors Company Balance Sheet as at Dec. 31, 2006 report. 2. From the Data menu, click Suppress and click Suppression Options.
3. Under Suppress the following, click Rows and columns. 4. Under Suppress the following type of values, select the Zero values check box. 5. Run the report. Rows and columns containing zeros are hidden.
Steps
1. Click a data container. 2. In the Properties pane, click the select ancestor button For example, if the data container is a list, click List. 3. Set the No Data Contents property to Yes. Two tabs appear at the top of the data container. 4. Click the No Data Contents tab . and click the data container type.
5. In the Insertable Objects pane, on the Toolbox tab, insert the objects to appear when there is no data available.
Pattern Guidelines
When you define a pattern, the number of symbols you use affects how the data will be shown. There are different rules for text, numbers, and values that can take the form of text or numbers. 502 IBM Cognos Report Studio
Text
You can specify whether text is produced in full or abbreviated form.
Number of symbols
4 or more Less than 4
Meaning
Full text form Abbreviated form
Example
EEEE produces Monday EEE produces Mon
Numbers
The number of symbols you use in a pattern sets the minimum number of digits that are produced in a report. Numbers that have fewer digits than specified are zero-padded. For example, if you specify mm for minutes, and the database value is 6, the report will show 06. Note: The year value is handled differently. If you specify two symbols for year, the last two digits of the year value is produced. For example, yyyy produces 1997, and yy produces 97.
Number of symbols
3 or more
Meaning
Text
Example
MMMM produces January MMM produces Jan
Less than 3
Numbers
MM produces 01 M produces 1
Locale Group A
Locales: af-za, en, en-au, en-be, en-bw, en-ca, en-gb, en-hk, en-ie, en-in, en-mt, en-nz, en-ph, en-sg, en-us, en-vi, en-za, fo-fo, gl-es, id, id-id, is, is-is, it, it-ch, it-it, kk-kz, ms, ms-bn, ms-my, nb-no, nl, nl-be, nl-nl, no, no-no, om-et, om-so, pl, pl-pl, pt, pt-br, pt-pt, so-dj, so-et, so-ke, so-so, sv, sv-fi, sv-se, sw-ke, sw-tz
Meaning
Era Year
Symbol
G y
Presentation
Text Number
Example
AD 1996
Meaning
Year (of 'Week of Year') Month in year Week in year Week in month Day in year Day in month
Symbol
Y
Presentation
Number
Example
1996
M w W D d
Day of week in month F Day of Week (1=first e day) Day in week a.m. or p.m. marker E a
Tuesday pm 24 0
Hour in day (1 to 24) k Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. h (1 to 12) Hour in day (0 to 23) H Minute in hour Second in minute Millisecond Time zone Escape used in text Single quote m s S z ' ''
Number
12
Locale Group B
Locales: be-by, bg-bg, el, el-gr, fi, fi-fi, hr, hr-hr, hu, hu-hu, ja, ja-jp, ko, ko-kr, ro, ro-ro, ru, ru-ua, ru-ru, sh-yu, sk, sk-sk, sl-si, sq-al, sr-sp, th, tr, tr-tr, uk-ua, zh, zh-cn, zh-hk, zh-mo, zh-sg, zh-tw
Meaning
Era Year Year (of 'Week of Year') Month in year Week in year Week in month Day in year Day in month
Symbol
G a A
Presentation
Text Number Number
Example
AD 1996 1996
n w W D j
Day of week in month F Day of Week (1=first e day) Day in week a.m. or p.m. marker E x
Tuesday pm 24 0
Hour in day (1 to 24) h Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. k (1 to 12) Hour in day (0 to 23) H Minute in hour Second in minute m s
Number
12
0 30 55
Meaning
Millisecond Time zone Escape used in text Single quote
Symbol
S z ' ''
Presentation
Number Text n/a n/a
Example
978 Pacific Standard Time n/a '
Locale Group C
Locales: ca-es, cs, cs-cz, da, da-dk, es, es-ar, es-bo, es-cl, es-co, es-cr, es-do, es-ec, es-es, es-gt, es-hn, es-mx, es-ni, es-pa, es-pe, es-pr, es-py, es-sv, es-us, es-uy, es-ve, eu-es, mk-mk
Meaning
Era Year Year (of 'Week of Year') Month in year Week in year Week in month Day in year Day in month
Symbol
G u U
Presentation
Text Number Number
Example
AD 1996 1996
M w W D t
Day of week in month F Day of Week (1=first e day) Day in week a.m. or p.m. marker E a
Tuesday pm 24
Meaning
Symbol
Presentation
Number
Example
0
Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. k (1 to 12) Hour in day (0 to 23) H Minute in hour Second in minute Millisecond Time zone Escape used in text Single quote m s S z ' ''
Number
12
Locale Group D
Locales: de, de-at, de-be, de-ch, de-de, de-lu
Meaning
Era Year Year (of 'Week of Year') Month in year Week in year Week in month Day in year Day in month
Symbol
G j J
Presentation
Text Number Number
Example
AD 1996 1996
M w W D t
Meaning
Symbol
Presentation
Number
Example
2
Tuesday pm 24 0
Hour in day (1 to 24) h Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. k (1 to 12) Hour in day (0 to 23) H Minute in hour Second in minute Millisecond Time zone Escape used in text Single quote m s S z ' ''
Number
12
Locale Group E
Locales: fr, fr-be, fr-ca, fr-ch, fr-fr, fr-lu
Meaning
Era Year Year (of 'Week of Year') Month in year
Symbol
G a A
Presentation
Text Number Number
Example
AD 1996 1996
July and 07
Meaning
Week in year Week in month Day in year Day in month
Symbol
w W D j
Presentation
Number Number Number Number Number Number
Example
27 2 189 10 2 (2nd Wed in July) 2
Day of week in month F Day of Week (1=first e day) Day in week a.m. or p.m. marker E x
Tuesday pm 24 0
Hour in day (1 to 24) h Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. k (1 to 12) Hour in day (0 to 23) H Minute in hour Second in minute Millisecond Time zone Escape used in text Single quote m s S z ' ''
Number
12
Locale Group F
Locales: ga-ie
Meaning
Era Year Year (of 'Week of Year') Month in year Week in year Week in month Day in year Day in month
Symbol
R b B
Presentation
Text Number Number
Example
AD 1996 1996
M t T l L
Day of week in month F Day of Week (1=first e day) Day in week a.m. or p.m. marker E a
Tuesday pm 24 0
Hour in day (1 to 24) u Hour in a.m. or p.m. K (0 to 11) Hour in a.m. or p.m. k (1 to 12) Hour in day (0 to 23) U Minute in hour Second in minute Millisecond Time zone n s S c
Number
12
Meaning
Escape used in text Single quote
Symbol
' ''
Presentation
n/a n/a
Example
n/a '
Symbol
0 # . , E ; %
Meaning
A digit that is shown even if the value is zero. A digit that is suppressed if the value is zero. A placeholder for decimal separator. A placeholder for thousands grouping separator. Separates mantissa and exponent for exponential formats. Separates formats for positive numbers and formats for negative numbers. The default negative prefix. Multiplied by 100, as percentage. Multiplied by 1000, as per mille. The currency symbol. If this symbol is present in a pattern, the monetary decimal separator is used instead of the decimal separator. The international currency sign. It will be replaced by an international currency symbol. If it is present in a pattern, the monetary decimal separator is used instead of the decimal separator.
Other characters that can be used in the prefix or suffix. Used to quote special characters in a prefix or suffix. Infinity symbol. Not a Number symbol.
Steps
1. Pause the pointer over the query explorer button and click Queries.
2. If the query to which you are adding a macro was built by using your own SQL, do the following: Click the SQL object that is linked to the query. In the Properties pane, double-click the SQL property. In the SQL dialog box, type the macro.
3. If the query to which you are adding a macro was not built by using your own SQL, do the following: Click the query. In the Properties pane, double-click the Generated SQL/MDX property. In the Generated SQL/MDX dialog box, click Convert. In the SQL dialog box, type the macro.
Tip: For a list of supported macro functions, see "Calculation Components" (p. 773).
513
Chapter 18: Using Query Macros can use prompt macro functions when working with a relational data source or a dimensionallymodeled relational (DMR) data source. The prompt and promptmany functions have the following mandatory and optional parameters. All argument values must be specified as strings.
Name
This mandatory parameter is the name of the prompt. Name can also refer to the name of a parameter on a user-created prompt page, in which case the user-created prompt page appears when the report is run instead of the default prompt page that the macro would generate.
Datatype
This optional parameter is the prompt value data type. The default value is string. Prompt values are validated. In the case of strings, the provided value is enclosed in single quotation marks and embedded single quotation marks are doubled. Values include the following: boolean date datetime decimal double float int integer interval long memberuniquename Memberuniquename is not an actual data type. This value must be used when the data type of the parameter is member unique name (MUN). numeric real short string time timeinterval timestamp
Chapter 18: Using Query Macros token Token is not an actual data type. It is a way to pass SQL. A token does not pass values. xsddate xsddatetime xsddecimal xsddouble xsdduration xsdfloat xsdint xsdlong xsdshort xsdstring xsdtime
DefaultText
This optional parameter is the text to be used by default. If a value is specified, the prompt is optional. If you use a space and no values are provided in the Prompt Value dialog box, a Where clause is usually not generated. If you use text and no values are provided in the Prompt Value dialog box, a Where clause is usually generated using the default value. Ensure that the text you provide results in a valid SQL statement. Note: If the data type is memberuniquename, a value for the DefaultText parameter must be provided. For example:
(#prompt('WhichLevel', 'memberuniquename', '[goSalesAgain].[PRODUCT1].[PRODUCT]. [PRODUCT(All)]->[all]')#)
Text
This optional parameter is text that precedes any user-provided values, such as 'and column1 = '.
QueryItem
This parameter is optional. The prompt engine can take advantage of the Prompt Info properties of the query item. Descriptive information can be shown, although the prompt value is a code.
TextFollowing
This optional parameter is the closing parenthesis that is used most often for the promptmany function. This parameter is also useful when the prompt is optional and is followed by hardcoded filters in the SQL statement.
Notes
Because the <Datatype> argument is not specified, valid prompt values must be strings, which is correct in this case. Because the <DefaultText> argument is not specified, the CountryName prompt is a required prompt.
If you do not want to run the target report on demand, you may link to a bookmark in the saved output instead of running the report. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
517
Drill-through Paths
You can create a drill-through path in a source report in Report Studio, or using Drill-through Definitions in IBM Cognos Connection. A drill-through path is the definition of the path that is taken when moving from one report to another, including how the data values are passed between the reports. Using Drill-through Definitions, you can create a drill-through path from any report in the source package to any target report in any other package in IBM Cognos Connection. This type of drillthrough definition is stored in the source package. Users of any report in the package can use the drill-through definition to drill between any combination of Analysis Studio, Query Studio, PowerPlay Studio, or IBM Cognos Viewer reports in any package. For any target report that contains parameters, you should map the target parameters to the correct metadata in the drill-through path. This ensures that the values from the source report are passed to the correct parameter values, and that the target report is filtered correctly. If you do not map parameters, then the users may be prompted for values when the target report is run. A report-based drill-through path refers to a path created and stored in a Report Studio source report. This type of drill-through path is also called authored drill through. The path is associated 518 IBM Cognos Report Studio
Chapter 19: Using Drill-through Access with a specific data column, chart, or cross tab in the source report, and is available only when users select that area of the report. If an authored drill-through definition is available, a hyperlink appears in the source report when it is run. Report-based drill-through is limited to Report Studio source reports and any target reports. Use this type of drill-through access when you want to pass data item values or parameter results from within a source report to the target report, pass the results of a report expression to a target report, or a use URL link as a part of the drill-through definition.
Selection Contexts
The selection context represents the structure of the values selected by the user in the source. In Analysis Studio, this includes the context area. When a package drill-through definition is used, the selection context is used to give values for mapped parameters (parameterized drill-through) or also to map the appropriate data items and values. Drill-through links can also be defined to open the target object at a bookmark. The content of this bookmark may also specified by the selection context. Drill-through access is possible between most combinations of the IBM Cognos Business Intelligence studios. Each studio has been optimized for the goals and skills of the audience that uses it, and in some cases for the type of data source it is designed for. Therefore, you may need to consider how the various studios manage the selection context when you drill through between objects created in different studios, and how the data sources are conformed. During testing or debugging, you can see how source values are being mapped in different contexts using the drill-through assistant.
OLAP OLAP
Dimensionally modeled relational Relational data Note: For more information, see "Business Keys" (p. 523).
Bookmark References
When you drill through, the values that you pass are usually, but not always, used to filter the report. IBM Cognos Business Intelligence supports bookmarks within saved PDF and HTML reports so that a user can scroll a report to view the relevant part based on a URL parameter. For example, you have a large inventory report scheduled to run daily or weekly during off hours because of resource considerations. Your users may want to view this report as a target because it contains detailed information, but you want them to view the saved output rather than run this large report. Using this Action option and bookmark settings, users can drill through from another source location based on products to open the saved report to the page that shows the product they want to focus on. When a bookmark in the source report is used in a drill-through definition, it provides the value for the URL parameter. When report consumers drill through using this definition, they see the relevant section of the target report. Bookmark references are limited to previously run reports that are output as PDF or HTML and contain bookmark objects.
If the target parameter is a member, the source must be a member. The source and target should usually be from a conformed dimension (p. 522). However, if the data will support it, you may also choose to define a mapping using different properties of the source metadata item. If the target parameter is a value, the source can be either a value or a member. If the source is a dimensional member, you must ensure that the level or dimension is mapped to the target data item correctly in the drill-through definition. The business key from which the member is sourced should usually match the relational target value, which is most often the business key (p. 523). However, if the data will support it, you may also choose to define a mapping from the caption of the source metadata item.
Chapter 19: Using Drill-through Access If the MUN changes, members that are directly referenced in expressions, filters, or reports are no longer found. Changes to the MUN may be related to other changes. For example, changes to the hierarchy and level structures may change the level unique name, and changes to the business key values may change the member key path. Other factors that can affect the MUN are application changes during the design stage or over time, IBM Cognos PowerCube category codes that are unpredictably unique, the production environment that has more members than the test environment, or removing the member from the data source. To avoid potential problems, we recommend the following best practices when you build OLAP data sources: Use unique codes and keys within a dimension for the member keys. Define your OLAP and relational packages using unique conformed values for the source values (business keys) within similar dimensions or data values where drill-through between applications may be required. Ensure that the business keys and dimension metadata structure are the same in the production and test environments. Do not change the business keys in Framework Manager in the production environment. Resolve the non-unique keys in a dimension in the data source before you build the cube. Ensure that there are no duplicate source values in all levels of a dimension before you build a PowerCube. We do not recommend using the tilde character (~) in the category codes. For more information, see the section about uniqueness in the IBM Cognos Series 7 Step-byStep Transformer. For information about PowerCubes migrated from IBM Cognos Series 7, see the IBM Cognos PowerPlayMigration and Administration Guide or the Migration Assistant User Guide.
Conformed Dimensions
If you work with more than one dimensional data source, you may notice that some dimensions are structured the same, and some are not. The reason that dimensions can be structured differently is that the data sources may serve different purposes. For example, a Customer dimension appears in a Revenue data store, but not in an Inventory data store. However, the Products dimension and the Time dimension appear in both data stores. Dimensions that appear in multiple data stores are conformed if their structure is identical for all of the following: hierarchy names level names level order internal keys
Drilling through is possible between different dimensional data stores only if the dimensions are conformed, and if the dimension data store is of the same vendor type, such as IBM Cognos 522 IBM Cognos Report Studio
Chapter 19: Using Drill-through Access PowerCube as the source and the target. For example, in two data stores for Revenue and Inventory that contain Products and Time dimensions, it is possible to define the Products and Time dimensions differently for each data store. However, for drill-through between the Products and Time dimensions to work, their structures must be identical in each data store. If you are not sure whether your dimensions are conformed, then you should check with the data modeler to ensure that the drilling through will produce meaningful results. IBM Cognos Business Intelligence does not support conformed dimensions generated by Framework Manager for SAP BW data sources.
Business Keys
When drill-through access is defined from a member to a relational value, the business key of the member is passed by default. This means that your relational target parameter must be set up using the data item with a matching value, which is most often the business key data item. You can also choose to pass the caption of the source metadata item. For example, employees are usually uniquely identified by an employee number, not by their name, because their name is not necessarily unique. When you drill through from a dimensional member to a relational data item, the value provided is the business key. Therefore, the parameter in the target report must be defined to accept a business key value. The exact logic used to define the business key value supplied depends on the cube vendor. For IBM Cognos PowerCubes, the business key value is the Source property defined for the level in IBM Cognos Transformer. IBM Cognos Series 7 Transformer PowerCubes pass the source value if the drill-through flag was enabled before the cube was built. Otherwise, the category code is used. In Report Studio, you can determine what the member business key is using an expression such as roleValue('_businessKey',[Camping Equipment]). This expression is case sensitive. SSAS 2005 multi-part business keys are not supported in drill-through operations. Tip: When other users run your drill-through report, you may not want them to be prompted for a business key. In Report Studio, you can build a prompt page with a text that is familiar to the users, but filters on the business key. Your Framework Manager modeler can also set the Display Item Reference option for the Prompt Info property to use the business key when the data item is used in a prompt.
Scope
Scope is specific to drill-through definitions created using Drill-through Definitions in IBM Cognos Connection (package drill-through definitions). The scope you set defines when the target report is shown to the users, based on the items they have in the source report.
Chapter 19: Using Drill-through Access Usually, you define the scope of a drill-through path to match a parameter that it passes. For example, if a target report contains a list of employees, typically you only want to display the report as an available drill-through choice when a user is viewing employee names in a source report. If employee names are not in the source report and the scope was set on the employee name in the drill-through definition, the employee report does not appear on the list of available drill-through target reports in the Go To page. You can set the scope to a measure or to an item in the report. In report-based drill-through access, where the drill-through path is associated with a specific report column, the column serves as the scope.
Mapped Parameters
Drill-through targets may contain existing parameters, or you may choose to add parameters to the target for greater control over the drill-through link. You usually map all parameters in a drillthrough target to items from the source. When you map source items that are OLAP or DMR members to target parameters, you can select from a set of related member properties to satisfy the requirements of the target parameter. For a dimensional target, a dimensional source item uses the member unique name by default. For a relational target, a dimensional source item uses the business key by default. For example, you could change the source member property that is used for a mapping to the member caption instead of the business key to match the parameter in a relational target. For a dimensional target, you could define a parameter that accepts a particular property (such as business key or parent unique name), then pass the appropriate source property to satisfy that target. Note that if you define drill through between non-conformed dimensions, you should test carefully to ensure that the results behave as expected. If you do not specify parameter mappings, then by default, you will be prompted for any parameters required in the target when you use the drill-through link. To customize this behavior, use the display prompt pages setting. When the action is set to Run using dynamic filtering, then additional filtering is applied if names from the context in the source report match names of items in the target. Use this action as well when there are no parameters defined in the target. If parameters are not mapped correctly, then you may receive an empty report, the wrong results, or an error message. The source and target cannot contain identical parameter names when they are from different packages, even if the data structure is conformed. If the source and target are from the same package, there is no restriction. If you have the necessary permissions, you can use the drill-through assistant to look at what source parameters are passed, and what target parameters are mapped for a given drill-through link. You can change the dynamic drill-through filter behaviour if you want drill-through to generate a filter using the Member Business Key instead of the default Member Caption. For more information, see Changing Drill-Through Filter Behavior in the IBM CognosAdministration and Security Guide.
Also ensure that the drill-through definition maps the parameter at the dimension level and that the PowerCube date level is not set to suppress blank categories. Enabling the option to suppress blank categories in the Transformer model before you build the cube may cause the drill-through on dates to be unsuccessful. This happens because there are missing values in the range.
Chapter 19: Using Drill-through Access IBM Cognos PowerCube package, or a Report Studio report. For more information, see the Administration and Security Guide. If you have the IBM Cognos Software Development Kit (p. 88), you can use URLs to set up drillthrough access to and from third-party sources. You can also drill through from a map (p. 211). If you are using an SAP BW data source for the target report and the target report contains a variable for a hierarchy node, values from the source report can be values only of the data item representing the leaf-level identifier of the hierarchy. Before you begin, ensure that you have a report that will serve as the source report and another report that will serve as the target report.
Chapter 19: Using Drill-through Access 3. Click the element in the report that will serve as the starting point for the drill-through link. You can select a data item that your report users are likely to choose to drill on for more detailed information, such as an Employee Name data item. Tip: If you are passing only parameter values to the target report, you do not have to drill on a data item. Instead, you can drill on any object in the report, such as the report title. Therefore, you can drill from outside the context of a query. 4. Click the drill-through definitions button, or, from the Properties pane, double-click the DrillThrough Definitions property. 5. Click the new drill-through definition button. A drill-through definition is created. Tip: To change the drill-through name, click the rename button, type the new name, and click OK. 6. On the Target Report tab, click the ellipsis (...) button next to the Report box and select the drill-through target report. 7. In the Action box, decide how users will view the target report when they click the drill-through link in the parent report: To view the latest data in IBM Cognos Viewer, select Run the report. To edit a Query Studio, Analysis Studio, or PowerPlay Studio target, select Edit the report. To have IBM Cognos BI match values from the selection context with data in the target (dynamic filtering), select Run the report using dynamic filtering. Note: If you chose this option, any parameters in the target report are still used for the drill-through access. To view the most recently saved output version of the target report from IBM Cognos Connection, select View the most recent report. To use the default action specified for the report in IBM Cognos Connection, select (Default).
8. If the target report contains parameters, then, under the Parameters box, click the edit button. Each required and optional parameter defined in the target report appears in the Parameters dialog box. 9. For each parameter, specify the Method of treatment: To specify not to pass any value, click (Default). To specify not to use this parameter, click Do not use parameter. The target report will not be filtered by this parameter. To pass values from a data item, click Pass data item value, click Value, and then click the data item. Values for the selected data item are passed to the target report.
Chapter 19: Using Drill-through Access To pass values from a source report parameter, click Pass parameter value, click Value, and then click the parameter. Values for the selected parameter are passed to the target report. If you choose to pass parameters, and the source report is based on a dimensional package, then click an item from the drop-down list in the Source metadata item properties column. You can pass the default property of the source metadata item (business key) or another property, such as the member caption. 10. Click OK. 11. If you chose to run the target report, in the Format box, click the output format for your report. Tip: Click (Default) to run the report using the default format specified for the report in IBM Cognos Connection. 12. To open the target report in a new window, select the Open in new window check box. 13. In the Display prompt pages box, choose how to display prompt pages: To always display prompt pages when the drill-through action occurs regardless of whether values were specified for the required parameter values, click Always. To use the prompt settings of the target report (specified by the Prompt for Values check box in IBM Cognos Connection, Report Properties, Report tab) to determine whether to show the prompt pages, click Based on the default prompt settings of the target report. To not display prompt pages when the required parameter values are provided by the drillthrough definition, click Only when required parameter values are missing. This is the default setting. The drill-through text appears as a blue hyperlink in text items in the non-chart areas of the report. Report consumers can also start the drill-through action by clicking the Go To button or by rightclicking the item and clicking Go To, Related links. If you have the necessary permissions, you can view which parameters were passed from the source and how they are mapped in the target object from the Go To page using the drill-through assistant. For more information, see the Administration and Security Guide.
Steps
1. Right-click the drill-through object and click Drill-Through Definitions. 2. If more than one drill-through definition exists for the object, in the Drill-Through Definitions box, click a drill-through definition.
Chapter 19: Using Drill-through Access 3. Click the Label tab. 4. To link the label to a condition, in the Condition box, do the following: Click Variable and click an existing variable or create a new one. Click Value and click one of the possible values for the variable.
5. In the Source type box, click the source type to use. 6. If the source type is Text, click the ellipsis (...) button beside the Text box and type text. 7. If the source type is Data Item Value or Data Item Label, click Data Item and click a data item. 8. If the source type is Report Expression, click the ellipsis (...) button beside the Report Expression box and define the expression. 9. If the label is linked to a condition, repeat steps 5 to 8 for the remaining possible values. When users run the source report and click a drill-through link, the Go to page appears. The drillthrough text you specified appears for each target. If you did not specify the drill-through text for a target, the drill-through name is used.
Chapter 19: Using Drill-through Access Tip: If you do not see the report, go to IBM Cognos Connection and confirm that you can view hidden reports (My Preferences, General tab). 2. In Report Studio, from the Data menu, click Filters and check what filter parameters are available. You want to filter from the source report on department, not time, so you will only use the pPosition parameter in the drill-through definition. 3. In the report body, select the list column body Position-department (level 3) and review the data item properties. Because the drill-through definition goes from DMR to relational, the data item values will need to match. 4. Close the Compensation (hidden) report.
2. Save the Employee Satisfaction 2006 report with a new name, such as Employee Satisfaction 2006 New. This is to keep the original report and drill-through definition intact for comparison. 3. In the table Employee rankings and terminations by department, select the column Positiondepartment (level 3). 4. In the properties pane, review the data item properties, to confirm that the data item names match values in the target report. 5. In the properties pane, under Data, double-click Drill-through definitions. 6. Select the definition DrilltoHiddenRep and delete it. Note: In the following steps, you recreate the drill-through definition. For comparison, use the original sample report. 7. In the Drill-through Definitions box, click the new drill-through definition button. 8. Click the rename button, and type a name for the drill-through definition. Tip: This is the name that consumers see when they select from a list of possible drill-through definitions in the final report. 9. In the Target Report tab, select the target report: Under Report, click the ellipsis button (...).
Chapter 19: Using Drill-through Access Navigate to GO Data Warehouse (query), Report Studio Report Samples, and select the Compensation (hidden) report. Tip: If you do not see the report, go to IBM Cognos Connection and confirm that you can see hidden reports (My Preferences, General tab). 10. Under Action, select Run the report. 11. Under Parameters, click the edit button. A table of parameters available in the target report appears, showing the parameter pPosition. 12. Map the parameter from the Compensation (Hidden) report to the metadata in the Employee Satisfaction 2006 report: In the Method column, select Pass data item value, because the target report is based on a relational data source. In the Value column, select Position-department (level 3). Tip: In this report, you pass values from the column where the drill-through is defined. In other cases, you might pass a related parameter. For example, you could drill through on employee name, but pass the employee number. 13. Save the report. 14. Run the report, and click a department to test the drill-through definition. When you test the drill-through link, the Compensation (hidden) report appears, filtered by the department you selected. The report appears as a drill-through target whether or not it is hidden in IBM Cognos Connection. If your administrator has given you the Drill Through Assistant capability, then you can see additional information you right-click on the link and select Go To see a list of drill-through targets. From the Go To page, you can see what source values are passed, and what target parameters are mapped.
Tip: Use the Source tab in the Insertable Objects pane. 5. Set the sort order for the Retailer name column to Sort Ascending. 6. Add Retailer name in Retailer to the second list. 7. Add these data items to the second list: Order number in Sales order Date in Time Dimension Product name in Product Quantity in Sales fact Revenue in Sales fact
Tip: To simultaneously add all the data items to the list, Ctrl+click the items before dragging them to the list. 8. In the second list, click the Retailer name column and click the cut button.
Chapter 19: Using Drill-through Access 9. In the second list, create the following parameterized filter: [Retailer name]=?Selected retailer? 10. Save the report.
Chapter 19: Using Drill-through Access 3. Click the layout calculation and, in the Properties pane, set the class to Report title text.
Steps
1. Start Report Studio and create a new report. 2. Add the data items and other objects you want. 3. From the Data menu, click Filters. 4. In the Detail Filters tab, click the add button. 5. In the Expression Definition box, create the parameterized filter you want by typing the filter expression. 6. Click OK. 7. In the Usage box, click Optional. If you do not make the filter optional, a prompt page appears when you drill through to the report. 8. Repeat steps 4 to 7 for other parameterized filters you want to add. 9. Save the report. The report name must match what you specified as a target in the PowerCube, other cube, or IBM Cognos Visualizer report. 10. Test the drill through in the PowerPlay report or IBM Cognos Visualizer report.
Note: The pages that you see in the Page Explorer differ from physical, printed pages. For example, if you create page breaks in a long report, the Page Explorer could show only one page, but your report could include several physical pages when you print it.
Steps
1. Pause the pointer over the page explorer button and click Report Pages.
Tip: Click Prompt Pages to add a prompt page (p. 421). 2. In the Insertable Objects pane, on the Toolbox tab , drag Page to the work area.
3. To change the order of pages, drag pages above or below other pages. 4. To associate a query to the page, in the Properties pane, set the Query property to the query. Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
537
Chapter 20: Working with Multiple Pages Associate the page to a query to add data-related objects directly to the page header, body, or footer, such as data items and filters. 5. Double-click the page to open it in page design view (p. 438). 6. Add objects to the page.
Chapter 20: Working with Multiple Pages 6. Insert the page containing details in the Detail Pages folder. Detail pages are the pages that repeat based on the items by which you group in the following step. Tip: You can insert multiple detail pages into the same page set and link them using a master detail relationship (p. 386). 7. Define the grouping structure for the page set: Click the page set. In the Properties pane, double-click the Grouping & Sorting property. In the Data Items pane, drag the data item by which to group data items to the Groups folder in the Groups pane. To sort the data within each group, in the Data Items pane, drag the data item by which to sort to the Detail Sort List folder, and then click the sort order button to specify the sort order. For more information about sorting data, see "Sorting Relational Data" (p. 328) or "Sorting Dimensional Data" (p. 375). 8. Repeat steps 3 to 7 to create other page sets. Tip: You can nest page sets and join them (p. 539) by defining a master detail relationship. Create nested page sets to have pages occur within other pages. For example, you want pages containing product type information to occur within pages containing product line information. Note: Grouping an item for a page set is not the same as grouping a column in the layout (p. 308). Grouping a column in the layout visually shows groups in a report. Grouping an item for a page set groups the item in the query. If you want to use an item that is already grouped in the layout, you must still perform step 7.
Steps
1. Pause the pointer over the page explorer button 2. In the Report Pages pane, click the nested page set. 3. In the Properties pane, double-click the Master Detail Relationships property. 4. Click the New Link button. 5. In the Master Query box, click the data item that provides the primary information. 6. Link the master data item to the details by doing one of the following: To link to another data item in the detail query, in the Detail Query box, click the data item that provides the detailed information. To link to a parameter, in the Parameters box, click the parameter that provides the detailed information. and click Report Pages.
7. Repeat steps 4 to 6 to create other links. Tip: To delete a link, select it and press the Delete key. For more information about master detail relationships, see "Create a Master Detail Relationship" (p. 386).
Steps
1. Open IBM Cognos Report Studio with the GO Data Warehouse (query) package. 2. In the Welcome dialog box, click Create a new report or template. 3. In the New dialog box, click List and click OK. 4. In the Insertable Objects pane, on the Source tab , expand Sales and Marketing (query),
Sales (query), and Product, and double-click the following: Product line Product type Product name
Chapter 20: Working with Multiple Pages 6. Group the Product line and Product type columns (p. 308). 7. Pause the pointer over the page explorer button and click Report Pages.
8. In the Insertable Objects pane, drag Page Set to the work area and associate it to Query1. 9. In the Insertable Objects pane, drag Page to the work area four times to add four new pages. 10. For each page, click the page, and in the Properties pane, set the Name property as follows: Title page End page Product Line Header Product Line Footer
11. For each page you just created, add objects. For example, add a text item to each page to uniquely identify it. 12. Rename the Page1 page, which contains the list, to List. 13. Click the page set and, in the Properties pane, double-click the Grouping & Sorting property. 14. In the Data Items box, drag Product line to the Groups folder in the Groups box and click OK. 15. Organize the report pages into the following hierarchy by dragging them to the appropriate location.
When you run the report, the following pages appear: Title page Product line header page A page for Product line_1 Product line footer page Product line header A page for Product line_2 Product line footer ... End page User Guide 541
Add a Bookmark
Add a bookmark so that users can quickly move from one part of a report to another. For example, a list report contains many rows of data. You add bookmarks so that users can move to specific rows. You can also drill through to another report (p. 525). If you want to use page numbers to move from one part of a report to another, you can also create a table of contents (p. 544). Bookmarks work for reports produced in HTML format or PDF. In HTML format, they work best when viewing saved report outputs, as the entire report appears in a single HTML page. When reports are run interactively, more than one HTML page may be generated, and a bookmark works only if the target exists in the page currently being viewed. If you run a saved report using a URL, and you specify a bookmark within the URL, you always go to the first page of the report. The bookmark defined in the URL is not honored. For more information about using URLs to run reports, see the Administration and Security Guide. Tip: You can reduce the number of HTML pages generated when a report is run interactively by specifying a value for the Rows Per Page property for a data container in the report. Tip: The Briefing Book sample report (p. 589) in the GO Sales (analysis) package includes bookmarks. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569).
Steps
1. In the Insertable Objects pane, click the Toolbox tab 2. Drag a Bookmark object to the report. .
3. Click the bookmark and, in the Properties pane, set the Source Type property to a source type.
Source type
Text
Description
Creates a static bookmark using a text value. For example, a list has sections and you want users to jump from each section to the top of the report.
Report Expression
Creates a dynamic bookmark whose values are derived from an expression that you define. Creates a dynamic bookmark that has data as possible values. This is useful for creating a context-based bookmark. For example, a list has sections and you want users to jump from the top of the report to a specific section. Note: This source type appears only if the bookmark is inserted next to a data item.
Source type
Data Item Label
Description
Creates a bookmark that has the label of a data item as its value. Use this source type to jump to the first occurrence of a data item label. For example, a list is divided into sections using Product line. You want users to jump to the first product line section that appears in the list rather than to a specific section, such as Camping Equipment. Note: This source type appears only if the bookmark is inserted next to a data item.
Member Caption
In a crosstab, creates a dynamic bookmark that uses member captions as possible values. In a crosstab, creates a dynamic bookmark that uses cell values as possible values.
Cell Value
4. Set the property that appears under the source type you chose to the bookmark value. For example, if the source type is Data Item Value, set the Data Item Value property to the data item. 5. Right-click the object that will jump to the bookmark and click Drill-Through Definitions. For example, right-click a data item, image, chart, or text item. Tip: The object can exist in a different report, so you can jump from one report to another. 6. Click the new drill-through definition button 7. Click the Bookmark tab. 8. Click Source type and click one of the source types described in step 3. Click the source type to use to produce the value needed to jump to the bookmark. For example, click Data Item Values if you want the value to come from a data item such as Product line. 9. If you clicked one of the following source types, specify the value to use to jump to the bookmark. For Text, click the ellipsis (...) button next to Text and type a text value. For Data Item Value or Data Item Label, in the Data item list, choose a data item. For Report Expression, click the ellipsis (...) button next to Report expression and define the expression. .
Steps
1. In the Insertable Objects pane, click the Toolbox tab. 2. Drag the Table of Contents object to the new location, which can be anywhere in the report. A table of contents placeholder appears. 3. Drag the Table of Contents Entry object to the location of your first table of contents marker. Tip: You can also click Insert Table of Contents Entry from the Structure menu. The new entry appears in the table of contents. 4. Double-click the Double click to edit text box of the new marker. 5. In the Text box, type the text to appear in the table of contents and click OK. 6. To edit the heading level of a table of contents entry, click the entry and, in the Properties pane, set the Heading Level property to the level. The heading level is used to insert section numbers in front of entries in the table of contents using layout calculations.
Chapter 20: Working with Multiple Pages When you finish creating the table of contents, run the report. By clicking the arrow to the right of the run report button, you can specify whether to run the report as HTML or PDF.
Click Page1, and then, in the Properties pane, set the Name property to Budget vs. Actual Sales.
Click the Budget vs. Actual Sales page and, from the Edit menu, click Copy. From the Edit menu, click Paste to paste the copy of the page in the Report Pages pane. Select the new page, and in the Properties pane, set the Name property to Table of Contents. In the Report Pages pane, drag the Table of Contents page to the top of the list.
4. Pause the pointer over the page explorer button and click Table of Contents. 5. Delete the crosstab object: Click somewhere in the report page. In the Properties pane, click the select ancestor button Click the delete button . and click Crosstab.
6. Select the Camping Equipment block object and click the delete button. 7. Double-click the report title, type Table of Contents, and click OK. 8. In the Insertable Objects pane, on the Toolbox tab the page. , drag a Table of Contents object onto
9. Pause the pointer over the page explorer button and click Budget vs. Actual Sales. 10. In the Insertable Objects pane, on the Toolbox tab, drag a Table of Contents Entry object to the left of each region. 11. Pause the pointer over the page explorer button and click Table of Contents. 12. Double-click the first entry in the table of contents, type Americas, and click OK.
Chapter 20: Working with Multiple Pages 13. Rename the other table of contents entries as Asia Pacific, Northern Europe, Central Europe, and Southern Europe. 14. Save the report.
2. Change the color of table of contents entries: Ctrl+click the five layout calculations, the five table of contents entries, and the five page number calculations. In the Properties pane, double-click the Foreground Color property and set the foreground color to blue.
3. Add links to the table of contents from another page: In the Insertable Objects pane, on the Toolbox tab, drag a Bookmark object to just before the title. Select the bookmark and, in the Properties pane, double-click the Label property, type TOC, and click OK. Pause the pointer over the page explorer button and click Budget vs. Actual Sales.
In the Insertable Objects pane, on the Toolbox tab, drag a Text Item object to the right of the crosstab object. In the Text dialog box, type Return to the Table of Contents and click OK. Right-click the text object and click Drill Through Definitions. Click the add button .
On the Bookmark tab, in the Source Type list, click Text. Click the ellipsis () button, type TOC, and then click OK twice.
Chapter 20: Working with Multiple Pages 4. Save the report. 5. Click the arrow to the right of the run report button and click Run Report - PDF.
On the first page, the table of contents appears. Clicking a region brings you to the corresponding page in the report. You can return to the table of contents by clicking Return to the Table of Contents at the end of the last page.
Steps
1. In the Insertable Objects pane, on the Toolbox tab , drag Page Number to the report.
Tip: When you create a new report using one of the existing report layouts, Page Number is already inserted in the page footer. 2. Right-click the page number symbol and click Edit Number Style. 3. Choose the style to use. The first three choices apply only to vertical page numbers. The remaining choices specify how vertical and horizontal page values appear. 4. If you want to customize the choice that you made in the previous step, click the edit button , make your changes, and click OK. A custom number style is created. If you later choose a different number style, the custom style is removed from the list. Tip: In the Custom Number Style dialog box, when you pause the pointer over a box, a tooltip describes how that box affects page numbers. For example, the Separator Text box contains the text, such as a hyphen, that separates page values for both vertical and horizontal pages.
Option
Keep with header
Description
Keeps all headers on the same page with the number of detail rows specified. Keeps all footers on the same page with the number of detail rows specified. Resets the page count after a page break to the value specified. Resets the page number after a page break to the value specified. If the report renders multiple pages, this object is repeated on every page. Allows contents to break across pages. In lists and crosstabs, controls whether a cell is broken across pages, which is useful when there is a lot of text. In PDF output, allows the columns of a list or crosstab to break across horizontal pages if they do not fit on a single page. Tip: In lists, you can select the Repeat every page option for list columns that show on every horizontal page. If the Allow horizontal pagination option is not selected, the size of the list or crosstab is scaled down when necessary so that it fits on a single page. Tip: The Horizontal Pagination sample report (p. 589) in the GO Sales (analysis) package includes horizontal pagination. For more information about The Great Outdoors Company samples, see "Sample Reports and Packages" (p. 569). If your report includes nested data frames such as a list within a list, horizontal pagination is supported on either the parent or child frame, but not both. If horizontal pagination is enabled on both the parent and child frame, it will be ignored on the child frame when the report runs. We recommend that you do not enable horizontal pagination on both the parent and child frames. You can also specify page number options that use compound numbering schemes. For example, you can use the numbering scheme 1-1, 1-2, 2-1, 2-2, and so on. For more information, see "Insert Page Numbers in a Report" (p. 547).
Option
Description
Enable horizontal page numbering Increments page numbers of horizontal pages separately from the main page numbers when you select a page numbering style (p. 547) that includes horizontal pages. For example, if a page has three page breaks horizontally and you selected the page number style 1a, the horizontal pages are numbered 1a, 1b, and 1c. If you did not select a numbering style that includes horizontal pages, the horizontal pages are all numbered 1 for the first vertical page, 2 for the second vertical page, and so on. If this option is not selected and there are horizontal pages, all pages are numbered sequentially. For example, if a report has two vertical pages and three horizontal pages, the PDF pages are numbered from 1 to 6. Pages 1 to 3 are the three horizontal pages for the first vertical page and pages 4 to 6 are the three horizontal pages for the second vertical page. Allow row contents to break across In tables, allows the contents of a row to break across pages. For example, if a row contains four lines of text, the first pages two lines from the row appear on the first page, and the last two lines appear on the next page. Repeat table rows on page break In tables, if a row breaks across pages, repeats the rows that were previously rendered on each page. By default, table rows are repeated. Note: This option applies to saved reports only. In interactive HTML reports, table rows are always repeated even if this option is not selected. You can also specify the style to use for page numbers (p. 547).
Steps
1. Click an object. 2. In the Properties pane, double-click the Pagination property. 3. Specify the page break and numbering options.
Chapter 20: Working with Multiple Pages After you create page layers, a caption appears in the header to indicate the contents of each page. You can navigate between the different pages using links below the report. Creating page layers is similar to filtering using context (p. 371). However, with context filters, values are filtered according to the member you add to the Context filter area. With page layers, the report is split into a separate page for each child of the member you add to the Page layers area. To create more complex page layers in your reports, such as a report book with title and end pages, create page sets (p. 538).
Steps
1. In the source tree, select or search for one or more items on which to filter. 2. Drag the item into the Page layers section of the overview area. The crosstab shows the results for the children of the selected item on separate pages, and a list appears under Page layers. Tip: To navigate between pages, click Page down and Page up below the report. 3. To replace the page breaks with items from the same dimension, select an item from the list. To delete the page breaks, from the list, click Delete. To delete all the page breaks, right-click the Page layers area and click Delete All.
Steps
1. Create a new report or open an existing report. 2. Add objects to the work area. 3. From the File menu, click Convert To Template. Any query-related information in the original report, such as data items, calculations, and filters, is removed from the template. 4. From the File menu, click Save As to save the template as a new file and keep the original report intact.
Steps
1. From the File menu, click New. 2. Click Report Template and click OK. 3. Pause the pointer over the page explorer button to format. and click the report page or prompt page
551
Chapter 21: Creating Report Templates Tip: To create a new report page or prompt page, click the Report Pages or Prompt Pages folder and drag the page to the Report Pages or Prompt Pages pane. 4. In the Insertable Objects pane, click the Toolbox tab 5. Add the objects to the work area. If you add objects that are not supported by Query Studio, the objects will be ignored when you apply the template. 6. Save the template. .
Steps
1. Obtain the LFA.dll from your IBM Cognos BI administrator. The DLL is located in the bin directory where IBM Cognos BI is installed. 2. Open a command prompt window. 3. Register the LFA.dll file by typing the following: regsvr32 LFA.dll 4. In your browser, set your computer and the IBM Cognos BI server as trusted sites. 5. In IBM Cognos Report Studio, from the Tools menu, click Options. 6. Click the Advanced tab. 7. Select the Allow local file access check box and click OK. The menu items (Local) Open and (Local) Save As appear in the File menu. 8. Close and restart Report Studio. You can now open and save reports on your computer.
553
Chapter 22: Managing Existing Reports Note: The first time you try to open or save a report locally from the Microsoft Internet Explorer Web browser, Internet Explorer asks you whether you want to allow an ActiveX control on the page to interact with other parts of the page. Click Yes to continue.
Step
From the Tools menu, click Open Report from Clipboard.
Chapter 22: Managing Existing Reports You can also open a report, template, or analysis in Report Studio from IBM Cognos Connection with the Open with Report Studio action .
Steps
1. From the File menu, click Open. 2. Click the report, template, or analysis. 3. Click Open. Note: If you make and save changes to a Query Studio report or an Analysis Studio analysis in Report Studio, the report or analysis can no longer be opened in Query Studio and Analysis Studio.
Default measure
Subtotal display More and hidden subtotal display Included subtotal display Excluded subtotal display Total Excluded list Hidden list
Set definition
The default measure identifies which measure is the default for the crosstab or chart. If no default measure is specified, the default measure may be empty.
Set Definitions
The following table shows the definitions and dependencies for the data items in the set definition.
Data item
<set name> (base)
Definition
Dependencies
Defines the set of members to be used None for sorting, filtering, and summary operations. This data item provides a generic reference for all other data items and may reference one of the other set definitions. Identifies the level for a level-based set. Defines the list of members in a selection-based set. Defines the set of members at N, number of levels down. References a predefined set. None
None
None
None
Data item
Definition
Dependencies
<set definition> (hidden list) Lists the members that are manually <set definition> hidden using the Hide command in Analysis Studio. This set appears when you try to unhide a member. <set definition> (included set) Lists the set of members after filters <set definition> (hidden list) are applied and hidden items are excluded, but before the More limit is applied. Sort or order operations, if any, are defined in this data item. <set definition> (visible items Limits the set to show the number of <set definition> (included set) set) members according to the More limit with a small tolerance. The tolerance allows showing the last two members if they are all that remain in the More portion of the set. The choice of visible members can be based on a sort order. <set definition> (excluded list) Identifies members that were manu- <set definition> ally excluded from the analysis. If no members were manually excluded, the expression defines an emptySet. This set appears when you try to remove a member from the Excluded items list in the Properties pane.
Filters
The following table shows the definitions and dependencies for the data items in the filter.
Data item
Definition
Dependencies
<set definition> (filter rules) Specifies the user-defined filter rules <set definition> to reduce the set definition using operators such as greater than or less than based on measures, calculations, or attributes. <set definition> (excluded filters) Removes members that were manu- <set definition> (excluded ally excluded from the results after list), <set definition> (filter applying the user-defined rules. rules)
Data item
<set definition> (filter top bottom)
Definition
Dependencies
Focuses on the members based on top <set definition> (excluded / bottom / first n where n can be a filters) and totals for sets on count or a percentile. For more the opposite axis information about Top/Bottom filters, see the Analysis Studio User Guide.
<set definition> (filter rules) Specifies the user-defined filter rules <set definition> to reduce the set definition using operators such as greater than or less than based on measures, calculations, or attributes.
Data item
<set definition> (subtotal)
Definition
Dependencies
Aggregates the visible items in the set. <set definition> (visible items set) Shows the subtotal if the number of <set definition> (visible items set), <set definition> included items is greater than the (included set), <set defininumber of visible items. tion> (subtotal) <set definition> (included Calculates the More & hidden subtotal by subtracting the aggrega- set), <set definition> (visible tion of the included members from items set), <set definition> the aggregation of those members that were manually hidden or hidden by exceeding the maximum display limit. Not available for selectionbased sets. Converts the More & hidden subtotal <set definition> (more and member to a set for use in set opera- hidden subtotal) tions. <set definition> (more and hidden subtotal)
<set definition> (more and Generically references the More & hidden subtotal as member) hidden subtotal.
Data item
<set definition> (more and hidden subtotal display)
Definition
Dependencies
Shows the More & hidden subtotal <set definition> (more and hidden subtotal) if the number of items hidden or clipped is greater than zero. Calculates the Subtotal (included). For selection-based sets, this data item references the summary data item for the set. <set definition> (included set)
Shows the Subtotal (included) if any <set definition> (included set) members passed the filter criteria. Calculates the value for Subtotal (excluded). This data item is not available for selection-based sets. <set definition> (total), <set definition> (included subtotal), <set definition>
<set definition> (excluded Shows Subtotal (excluded) if the number of members in the filtered set subtotal), <set definition> is less than the base set. This means that the filter rule is filtering out something. Identifies the total for the set. This <set definition> value is calculated directly from the data store. The expression used to calculate the summary depends on the set type: Details-based set: The selected member. Level-based and depth-based sets: The root member for the hierarchy. Selection-based set: The aggregate, typically the sum, of the selected members.
Chapter 22: Managing Existing Reports has changed. If it has, a message appears indicating that the report will be updated to the latest version of the package. However, you may need to make additional changes to the report if the namespace name or query subject and data item names in the package have changed (p. 560) the name of the package has changed (p. 560)
Steps
1. To update a data item name reference: Click the data item. In the Properties pane, double-click the Expression property. In the Expression Definition box, update the data item name reference.
2. To update a package filter name reference: From the Data menu, click Filters Double-click the package filter. In the Expression Definition box, update the namespace name. .
Steps
1. From the File menu, click Report Package. 2. Click Another package and choose the new package. 3. To change the authoring language, click the ellipsis (...) button beside the Language box and choose a different report language. You may need to update the report to reflect the change. For example, any filter expressions in the report must be modified to reflect the syntax rules of the new language.
Chapter 22: Managing Existing Reports 4. Click OK. The new package is loaded and the report is validated. If errors are found, the Validation Errors dialog box appears, showing the elements that must be updated to reflect the package change. 5. Click Close. 6. Make any required changes in the report to support the new package. For example, you may need to link the data items in the report to the new package. Tip: You can use Query Explorer to make the changes.
Lifecycle Manager
You can download IBM Cognos Lifecycle Manager from www.ibm.com to help you test your reports. Lifecycle Manager is a verification tool that checks that your reports run and produce the same results in the new environment. Lifecycle Manager is a Microsoft Windows Operating System-based application for auditing upgrades to the latest version of IBM Cognos BI from IBM Cognos ReportNet 1.1 MR3 or MR4, and from IBM Cognos 8 versions 8.2, 8.3, or 8.4. It provides a verification feature that validates, executes, and compares report results from two different IBM Cognos BI releases. This helps to identify upgrade and compatibility issues between releases. User interface design and status reporting functionality provide both a proven practice process and support for upgrade project planning and status reporting. Lifecycle Manager also automates much of the process of bundling the required files, such as reports and models, for the test case. For more information, see the Lifecycle Manager User Guide.
563
Chapter 23: Upgrading Reports You can update the style of an upgraded report to use the new 10.x style (File, Report Properties, Report styles, 10.x styles). For more information about report styles, see "Create and Modify Report and Object Styles" (p. 460).
If more than one variable with the same name exists in the package, this change may cause problems.
To restore the data formats, specify an explicit format either in the report item properties or in the model item properties.
Chapter 23: Upgrading Reports This error occurs when the query requires local processing because some or all of its constructs are not supported by the database vendor. In IBM Cognos BI, version 8.2, and earlier, IBM Cognos BI proceeded with local processing. In version 8.3 and later version, you must explicitly set the query Processing property to Limited Local in order to enable local processing.
Steps
1. In IBM Cognos Report Studio, pause the pointer over the query explorer button the query. 2. In the Properties pane, set the Processing property to Limited Local. and click
No Sort Order
Data may appear in a different order after upgrading. If sort order is important, ensure that the report or model specifies a sort order before upgrading.
Layout Errors
Layout errors are suppressed by default in ReportNet. IBM Cognos BI does not suppress layout errors. Users may have to correct or remove report layout expressions that cause errors.
Report Format
If you used the default format in ReportNet, upgraded reports will retain that format. However, new reports in IBM Cognos BI will use the IBM Cognos BI format. If you want a consistent style across all reports, you must edit the styles property in each report and select or deselect the Use 1.x report styles option (p. 460).
PDF Reports
PDF rendering in IBM Cognos BI behaves like HTML rendering. After upgrading, PDF reports may have different font size, column wrapping, or word wrapping. You may have to change each affected report or change the default font in the IBM Cognos BI style sheet.
IF-THEN-ELSE Statements
If you use assignments of different data types after THEN and ELSE in ReportNet, the reports will generate invalid coercion errors after upgrading. You may have to recast the variables or change the assignments in the affected reports.
Solve Order
In previous versions of IBM Cognos BI, you could specify the solve order for objects such as crosstab node members. Solve order is now specified for data items. When you upgrade a report, solve orders specified in the report are moved to data items. For more information about solve order, see "Resolve Multiple Calculations for Crosstabs and Charts" (p. 406).
Chart Behavior
In ReportNet, if a chart is created with a user-specified minimum value and all data values are below the minimum value, the chart starts at the user-specified minimum value and contains no data. In IBM Cognos BI, the same parameters result in a chart that ignores the user-specified minimum value and uses a range that includes all of the data values for the chart.
Changes in the Behavior of Functions Between ReportNet 1.1 and IBM Cognos BI
In ReportNet 1.1, double counting could occur when applying count or count distinct to a query item. This occurred primarily when querying multiple query subjects that were joined 1-toN in the model if the counted item existed in the query subject on the 1 side of the join. The explanation is that count or count distinct was applied after the join operation.
Count distinct worked only when the item to which count distinct was applied was the column
used in the join. In this case, the column to be counted could have identical values for the different values used in the join condition. In IBM Cognos BI, improvements to the count functionality cannot be handled through an automatic upgrade. The new approach avoids double counting on the 1 side of a 1-to-N join. The explanation is that count or count distinct is now applied before the join operation.
Chapter 23: Upgrading Reports There is now a lesser need to use count distinct and, when used, it will be successful more often.
Count distinct is no longer required to overcome double counting. Instead, it can be used as
intended to select distinct values that exist in a query subject. When you want to count repeated occurrences of a value, we recommend that you do one of the following: Apply a count operation on a column based on a query in which an explicit join occurs. This applies the count after the join. Count rows in a report by using a layout calculation object (p. 445) or by counting the literal value 1.
Samples Outline
The samples consist of the following: Two databases that contain all corporate data, and the related sample models for query and analysis Five samples cubes and the related models A metrics data source including associated metrics and a strategy map for the consolidated company, and a model for Metric extracts. Reports, queries, query templates, and dashboards
569
Chapter 24: Sample Reports and Packages To run interactive reports, scripts are required. To see all the reports included in the samples packages, copy the files from the samples content installation into deployment folder and then import the deployments into the IBM Cognos Business Intelligence product.
Security
Samples are available to everyone. To implement security, see the Installation and Configuration Guide.
The diagram below illustrates the consolidated corporate structure, including the percentage changes in ownership for GO Central Europe, and shows the reporting currency and GL prefix for each subsidiary.
Each corporation has the same departmental structure and the same GL structure, shown in the table below. Divisions may not report in the same currencies. For example, the Americas subsidiary reports in US dollars, but the Corporate division local currency is Canadian dollars, and the Operations division local currency is pesos.
Division (GL)
Corporate (1700)
Department (GL)
Sales (1720) Marketing (1750) IS&T (1760) Human Resources (1730) Finance (1740) Procurement (1710)
Operations (1800)
Each corporation has a complete chart of accounts. Most of the accounts, such as those under nonpersonnel expenses, are at the department level, and contain only summary amounts. For example, although each marketing department has expenses, the cost is unspecified at the transaction level where marketing promotions occur.
Employees
The Great Outdoors data contains a full list of employees in all divisions, departments, and locations. Data is available for reports about bonuses (Global Bonus report) and sales commissions (Sales Commissions for Central Europe report), training (Employee Training by Year report), and performance reviews and employee satisfaction surveys (Employee Satisfaction 2006). If you use Metric Studio, sample metrics for human resources are also available. In the GO Data Warehouse (analysis) package, groups of measures and the related dimensions are organized into folders. The employees are organized in hierarchies for region and manager, to make different kinds of aggregation easy to report on. Aggregation has been defined for the Employee Position Summary measures, so that Position count and Planned position count aggregate correctly at each level of time: monthly, quarterly, or yearly. For example, see the Planned Headcount report. The employees are also listed in a sample LDIF file (p. 570). This authentication directory is necessary for the Transformer 8 cubes and for IBM Cognos Planning samples. No other samples depend on security profiles. For more information, see the IBM Cognos Business Intelligence Installation and Configuration Guide.
Customer Surveys
The data also contains information from customer surveys. For example, the product line that includes bug spray, sun screen, and so on has not been successful (Product Satisfaction - Outdoor Protection 2005) and a source of retailer dissatisfaction may be the level of customer service rather than the returns (Customer Returns and Satisfaction). If you use Metric Studio, this information can also be monitored in metrics.
Sales Outlets
Revenue from the corporate outlets is available at the transaction level. Revenue from the franchise outlets is available at the consolidated level only (Sales and Marketing cube). Metrics about retailers show that the number of new retail outlets has dropped over the time period covered by this data. GO Accessories sells worldwide, and sells only accessories. Transaction data for GO Accessories is the primary source for analysis of product by brand, color and size. The other five subsidiaries in the group of companies are regional and sell all product lines for retailers in their region. For
Chapter 24: Sample Reports and Packages example, the report Top 10 Retailers in 2005 uses sparklines and list data to review revenues at the retailer level.
GO Data Warehouse
The GO Data Warehouse model, great_outdoors_data_warehouse.cpf, is based on the database GOSALESDW. It contains data about human resources, sales and marketing, and finance, grouped into business areas. In the Database view, the three business areas are grouped into separate namespaces. The Database view contains a fourth namespace (GO Data) for the common information. The Database view is very similar to the structure of the underlying database. All tables (database query subjects) are unchanged. This enables IBM Cognos BI to retrieve metadata directly from the package in most cases, instead of using a metadata call to the database. The following changes and additions have been made in the Database view: Joins have been added as necessary. To allow for aggregation at different levels of granularity, some model query subjects have been created. For example, see the relationships between Time and Sales or Sales fact. To allow single joins to be made between the lookup tables and each level in a dimension, lookup tables have been copied. For example, see the Products look up tables.
The Business view contains only model query subjects, with no joins. The following changes and additions have been made in the Business view: Calculations were added to the model query subjects. For example, the time dimension contains language calculations. Where the database has multiple hierarchies, new dimensions have been created to organize each hierarchy. For example, see the employee hierarchies, where employees are organized by manager and region.
The Business view contains only model query subjects, with no joins. The following changes and additions have been made in the Business view: Calculations were added to the model query subjects. Model query subjects that were created in the Database view to enable joins on the time dimension have been linked as reference shortcuts. Where the database has multiple hierarchies, new dimensions have been created to organize each hierarchy. Sales Staff is a subset of the slowly changing Employee dimension.There is no unique Employee key in GO Sales, so a filter retrieves the current record only. This model does not use historical data.
Historical Revenue
This prompted report shows a 13-month rolling forecast of monthly and year-to-date revenue. This report uses the following features: filters (p. 324) cascading prompts (p. 421) combination charts (p. 134) axis titles (p. 161)
Chapter 24: Sample Reports and Packages crosstabs (p. 117) bar charts (p. 127) tables to control where objects appear (p. 449)
Chapter 24: Sample Reports and Packages combination charts (p. 134) lineage (p. 101) text items (p. 441) calculations (p. 773)
Manager Profile
This report shows information about managers, including salary, bonuses, and all compensations grouped by year. This report uses the following features: column charts (p. 131) lists (p. 111) grouping (p. 308) User Guide 581
Chapter 24: Sample Reports and Packages summarizing (p. 358) custom chart palette (p. 151) prompts (p. 421)
Planned Headcount
This chart report shows headcount variance compared to the plan for each organization for 2004. This report uses the following features: progressive column charts (p. 139) templates (p. 551) hidden objects (p. 482) custom headers and footers (p. 439) lists (p. 111) baselines (p. 173)
Positions to Fill
This report shows a list of department names, positions, longest days to fill the positions, and ranking. The report uses a prompt for the year and is a drill-through target for the Recruitment report. This report uses the following features: combination charts (p. 134) lists (p. 111) prompts (p. 421) baselines (p. 173)
Promotion Success
This report shows the financial results of the company's promotions. It shows how much of the company's total revenue is attributable to each promotional campaign. This report uses the following features: prompt pages (p. 422) HTML items (p. 445) summarizing (p. 358) axis titles (p. 161) bar charts (p. 133) lists (p. 111) grouping (p. 308)
Recruitment Report
This report shows a variety of recruitment techniques for certain positions or organizations. This report uses the following features: drilling through (p. 517) crosstabs (p. 117) prompt pages (p. 422) colors (p. 151) floating object adjustment (p. 458) custom headers and footers (p. 439)
Returned Items
This report shows the number of returned items by return reason and retailer type. A column chart shows returned items by product line and region for the selected date range. This report uses the following features: date and time prompts (p. 423) crosstabs (p. 117) bar charts (p. 127)
Chapter 24: Sample Reports and Packages drilling down (p. 414) text items (p. 441) sorting (p. 375)
Chapter 24: Sample Reports and Packages custom headers and footers (p. 439)
Chapter 24: Sample Reports and Packages axis titles (p. 161)
Succession Report
This report shows the succession data by department and status for percent ready in a column chart. It also contains a detailed crosstab for the managers associated with the possible successors. This report uses the following features: drilling through to the Manager Profile report (p. 517) filters (p. 324) lists (p. 111) grouping (p. 308)
Chapter 24: Sample Reports and Packages custom headers and footers (p. 439)
Employee Expenses
This report is used as a data source for the Employee Expenses Power Cube. This report uses the following features: lists (p. 111)
Health Insurance
This report is used as a data source for the Employee Expenses Power Cube. This report uses the following features: lists (p. 111) filters (p. 324)
Pension Plan
This report is used as a data source for the Employee Expenses Power Cube. This report uses the following features: lists (p. 111) User Guide 587
Regular Salary
This report is used as a data source for the Employee Expenses Power Cube. This report uses the following features: lists (p. 111) filters (p. 324)
TOC Report
This report takes advantage of the bookmark object to allow a user to navigate through this report easily. This report should be run in PDF or saved HTML format. The report contents show a product order table and an expected volume fact table. This report uses the following features: lists (p. 111) bookmarks (p. 542) background color (p. 111) multiple pages (p. 537) grouping (p. 308)
Chapter 24: Sample Reports and Packages grouping (p. 308) sorting (p. 375)
Briefing Book
This report shows a Briefing Book style of report. This report uses the following features: multiple pages (p. 537) crosstabs (p. 117) multiple queries (p. 383) filters (p. 324) pie charts (p. 127) singletons (p. 92) tables of contents (p. 544) bookmarks (p. 542) PDF options (p. 101) horizontal pagination (p. 547) sorting (p. 375) custom headers and footers (p. 439) text items (p. 445)
Horizontal Pagination
This report shows crosstabs rendered across several horizontal pages. The first crosstab shows the fit-to-page behavior while the second crosstab shows the horizontal pagination. This report uses the following features:
Chapter 24: Sample Reports and Packages multiple pages (p. 537) horizontal pagination (p. 547) crosstabs (p. 117) custom headers and footers (p. 439)
No Data
Each page of this report presents a different option for dealing with a No Data condition. It also generates invoices of sales for the Order Invoices - Donald Chow, Sales Person report in the GO Sales (query) package. This report uses the following features: crosstabs (p. 117) custom headers and footers (p. 439) no data (p. 502) lists (p. 111)
Table of Contents
This report shows two Tables of Contents: one for the main pages and another for the appendices. This report uses the following features: crosstabs (p. 117) pie charts (p. 127)
Chapter 24: Sample Reports and Packages bookmarks (p. 542) tables (p. 449) tables of contents (p. 544) custom headers and footers (p. 439) hyperlinks (p. 445)
Catalog Sales
This report uses a correlation statistical object to summarize the relationship between two critical business variables in a retail organization from 1999-2008. This report uses the following features: correlation (p. 274) lists (p. 111)
Discharged Patients
This report uses a one-way chi-square statistical object to report analyze whether the number of patients that are discharged varies by day of week. This report uses the following features: a one-way chi-square test (p. 266) combination charts (p. 134)
DVD Score
This report uses a one-way ANOVA statistical object to discover if consumers of various ages rate the design of a DVD player differently. This report uses the following features: one-way ANOVA (p. 258) pie charts (p. 127)
Income Growth
This report uses a boxplot object to understand the key influencers of income.
Chapter 24: Sample Reports and Packages This report uses the following features: a boxplot (p. 250) curve estimation (p. 285) column charts (p. 131) lists (p. 111)
Shampoo pH Level
This report uses a control chart statistical object to monitor the processing of pH level in shampoo production. This report uses the following features: an X-bar chart and an R chart (p. 294)
Interactive Samples
The following reports are some of the reports found in the Interactive Samples folder.
Chapter 24: Sample Reports and Packages pie charts (p. 127)
Recruitment Report
This report shows a variety of recruitment techniques for certain positions or organizations. This report uses the following features: drilling through (p. 517) crosstabs (p. 117) prompt pages (p. 422) colors (p. 151) floating object adjustment (p. 458) custom headers and footers (p. 439)
Unable to Load Images from the IBM Cognos BI Content Store in a Report
If a report contains an image whose URL points to the IBM Cognos Business Intelligence content store, the Microsoft Excel spreadsheet software generates an access violation error and shuts down. This problem is a known issue in the Microsoft knowledge base, and Microsoft is currently investigating the problem. This problem occurs only in Excel 2002.
Warning Message Appears When Excel Opens an IBM Cognos Business Intelligence Report
Each time the Microsoft Excel spreadsheet software opens an IBM Cognos BI report, the following message appears: Some of the files in this Web page are not in the expected location. Do you want to download them anyway? If you are sure the Web page is from a trusted source, click Yes. The Excel workbook in HTML/XML format requires the presence of the file filelist.xml. IBM Cognos BI does not allow the creation of local files on the client side. In addition, a local file that contains URLs introduces a security issue. Consequently, this message will appear whenever you open an IBM Cognos BI report in Excel. If you see this error message, click Yes to open the report.
597
Chapter 25: Limitations When Producing Reports in Microsoft Excel Format Instead, click Open first and then choose to save the report.
In addition, Excel does not support the following: Format Width International Currency Symbol List Separator Percent Symbol (Excel does not support percent symbols for charts) Multiplier Overline Text Format PerMill Symbol Plus Sign Scale (Excel has a different scaling formula than IBM Cognos BI) Calendar (Excel does not allow changing the calendar) Era Name First Day Of Week Show Era
Secure Socket Layer (SSL) Is Not Supported in Some Excel Formats and Versions
SSL is supported for only the Microsoft Excel 2002 format in Microsoft Excel 2002 and Microsoft Excel 2003.
Some layouts do not show exactly in HTML and PDF due to Excel limitations.
In addition, IBM Cognos BI makes sure that Excel reuses the same color palette that is defined in IBM Cognos BI. However, Excel can only use the first 16 colors from the IBM Cognos BI palette. If the number of categories in a chart exceeds 16, the rest of the colors are taken from the default Excel palette.
Chapter 25: Limitations When Producing Reports in Microsoft Excel Format In Excel, the percentage of each value in the bar or column is not displayed. Instead, the underlying values are displayed.
Report Studio Properties These properties can be set on Report Studio objects. They are available in the lower-left pane of Report Studio.
Data Formatting Properties These properties can be set on data values by selecting Layout Data Format from the Data menu, or by editing the Data Format property for Report Studio objects.
3-D Area
A chart in which members of a data series are represented by three-dimensional areas of varying size and color. The three-dimensional area chart is one of three chart types that can be included in a three-dimensional combination chart.
3-D Bar
A chart in which members of a data series are represented by three-dimensional bars of varying length and color. The three-dimensional bar chart is one of three chart types that can be included in a three-dimensional combination chart.
605
3-D Line
A chart in which members of a data series are represented by three-dimensional lines of varying colors. The three-dimensional line chart is one of three chart types that can be included in a threedimensional combination chart.
Angular Axis
The angular numeric axis for a polar chart, including labels, titles, range, and scale.
Angular Measure
The measure that determines the angular position of each data marker on a polar chart.
Area
The data marker used to represent data series in an area chart.
Properties of Area
Aggregate Function, Area Shape, Border Color, Borders, Chart Type, Conditional Palette, Expression, Extend Width, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Member, Member Unique Name, Name, Palette, Property Unique Name, Rollup Aggregate Function, Root Members Only, Series Type, Set Sorting, Show Values, Type
Area
The data marker used to represent data series in an area chart. This object applies only to legacy charts.
Properties of Area
Axis Assignment, Border Color, Borders, Chart Type, Grouping Type, Value Location, Values, Value Type
As of Time Expression
An expression that produces a Date-Time value. This expression can be used to show report results for a specific time period that is defined by an expression that you create.
Axis Labels
The labels that appear on an axis.
Axis Title
The title for an axis of the chart. This object applies only to legacy charts.
Axis Title
The title for an axis of the chart.
Bar
A chart in which members of a data series are represented by bars of varying length and color.
Properties of Bar
Aggregate Function, Bar Shape, Bar Width, Bevel, Border Color, Borders, Chart Type, Conditional Palette, Expression, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Member, Member Unique Name, Name, Palette, Property Unique Name, Rollup Aggregate Function, Root Members Only, Series Type, Set Sorting, Show Values, Type
Bar
A chart in which members of a data series are represented by bars of varying length and color. This object applies only to legacy charts.
Properties of Bar
Axis Assignment, Border Color, Borders, Chart Type, Connecting Lines, Grouping Type, Value Location, Values, Value Type
Baseline
A baseline to be rendered on a chart.
Properties of Baseline
Aggregate Function, Axis Assignment, Bar, Line, or Area Index, Box Type, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Label, Legend Label, Level, Level Unique Name, Line Styles, Master Detail Relationships, Member, Member Offset (%), Member Unique Name, Name, Numeric Value, Percentile, Percent of Axis, Position type, Properties, Property Unique Name, Query, Report Expression, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Standard Deviations, Type
Baseline
A baseline for a polar chart, scatter chart, or bubble chart.
Properties of Baseline
Aggregate Function, Axis Assignment, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Label, Legend Label, Level, Level Unique Name, Line Styles, Master Detail Relationships, Member, Member Unique Name, Name, Numeric Value, Percentile, Percent of Axis, Position type, Properties, Property Unique Name, Query, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Standard Deviations, Type
Baseline
A baseline for a three-dimensional combination chart.
Properties of Baseline
Aggregate Function, Bar, Line, or Area Index, Box Type, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Line Styles, Master Detail Relationships, Member, Member Unique Name, Name, Numeric Value, Percentile, Percent of Axis, Position type, Properties, Property Unique Name, Query, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Standard Deviations, Type
Baseline
A baseline for a three-dimensional scatter chart.
Properties of Baseline
Aggregate Function, Box Type, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Line Styles, Master Detail Relationships, Member, Member Unique Name, Name, Numeric Value, Percentile, Percent of Axis, Position type, Properties, Property Unique Name, Query, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Standard Deviations, Type
Block
A container into which you can insert other objects.
Properties of Block
Background Color, Background Effects, Background Image, Border, Box Type, Classes, Conditional Styles, Floating, Font, Foreground Color, Horizontal Alignment, Margin, Name, Padding, Render Variable, Size & Overflow, Spacing & Breaking, Style Variable, Text Flow & Justification, Visible, White Space
Bookmark
A link to another area within the same report. The link can be defined as a static value, a query item, or as the result of a report expression.
Properties of Bookmark
Data Item Label, Data Item Value, Label, Report Expression, Source Type
Bubble Chart
A point chart that plots one or more data series against three measures: a Y-value, an X-value, and a bubble whose relative size represents the third measure. Multiple points are plotted for each category. This object applies only to legacy charts. To help distinguish values, set the Tooltips property of this object to Yes.
Bubble Chart
A point chart that plots one or more data series against three measures: a Y-value, an X-value, and a bubble whose relative size represents the third measure. Multiple points are plotted for each category. To help distinguish values, set the Tooltips property of this object to Yes.
Bubble Measure
The measure that determines the size of each bubble on a bubble chart.
Bubble Measure
The measure that determines the size of each bubble on a bubble chart. This object applies only to legacy charts. 610 IBM Cognos Report Studio
Bullet Chart
A chart that compares a measure to a target. Use the Colored Regions property to relate the compared measures against additional qualitative measurements, such as colored regions for good, satisfactory, and poor.
Bullet Measure
The measure that determines the size of the bullet for a bullet chart.
Button
A button in a static button bar control.
Properties of Button
Icon, Label
Button
A single static button control. The button requires a row in the data table of the control.
Properties of Button
Button Definition, Control Enable, Icon, Label, Name, Render Variable, Set Variable Values, Size
Button Bar
A static button bar control. Each button requires a corresponding row in the data table of the control. User Guide 611
Button Icon
The icon used to identify each button in a data button bar control. The icons are obtained from a data item inserted into the control.
Button Label
The label used to identify each button in a data button bar control. Each label is determined by the data items inserted into the control.
Button Value
Data items that are used to determine what appears as the button labels in a data button bar control.
Calculated Measure
A data item that is a calculated member.
Calculated Member
An item, within a dimension, that represents an occurrence of schema data defined as a calculation of two or more members.
Calculated Member
A data item that is a calculated member.
Caption
The caption on a Field Set object.
Properties of Caption
Background Color, Background Image, Border, Classes, Conditional Styles, Font, Foreground Color, Margin, Padding, Style Variable
Card
A card in a static deck control.
Properties of Card
Current Card
Card Label
The label used to identify a card in a deck control.
Card Value
A data item that is used to determine the data that appears in the cards of a data deck control.
Category axis
The axis line for an ordinal, or non-numeric, axis.
Category Axis
The axis line for an ordinal, or non-numeric, axis. This object applies only to legacy charts.
Chapter 26: Report Studio Object and Property Reference Label Index, Font, Foreground Color, Gridlines, Horizontal Alignment, Label Control, Maximum Truncation Characters, Minor Gridlines, Style Variable, Truncation, Truncation Text, Visible
Category Baseline
A baseline for the category in a chart.
Chart Body
Defines the body style of the chart itself. The style of the body can be set independently of the chart itself. This object applies only to legacy charts.
Chart Body
Defines the body style of the chart itself. The style of the body can be set independently of the chart itself.
Chart Footer
A footer for the chart. This object applies only to legacy charts.
Chart Footer
A footer for the chart.
Chart Measure
The measure for the chart.
Chart Subtitle
The subtitle for a chart. This object applies only to legacy charts.
Chart Subtitle
The subtitle for a chart.
Chart Title
The title text that appears at the top of the chart. This object applies only to legacy charts.
Chart Title
The title text that appears at the top of the chart.
Check Box
A check box in a static check box group control.
Class
The HTML class name for a layout object. Use this attribute to indicate the type of styling to apply to the object when the report is rendered.
Properties of Class
Background Color, Background Effects, Background Image, Border, Box Type, Description, Floating, Font, Foreground Color, Horizontal Alignment, Label, Label, Margin, Padding, Relative Alignment, Size & Overflow, Spacing & Breaking, Table Properties, Text Flow & Justification, Vertical Alignment, Visible, White Space
Colored Region
Defines a collection of colored regions, which are rectangles drawn in the chart body to highlight parts of the chart. The regions are drawn behind the data markers and in the same order that they appear in this element. The first region is drawn first, on the bottom, and the last region is drawn on top of the other regions.
Colored Region
Defines a collection of colored regions, which are rectangles drawn in the chart body to highlight parts of the chart. The regions are drawn behind the data markers and in the same order that they appear in this element. The first region is drawn first, on the bottom, and the last region is drawn on top of the other regions.
Combination Chart
A chart that uses combinations of column charts, area charts, and line charts as data markers to plot multiple data series. This object applies only to legacy charts.
Combination Chart
A chart that uses combinations of column charts, area charts, and line charts as data markers to plot multiple data series.
Chapter 26: Report Studio Object and Property Reference Variable Values, Show Hover, Show Pointer Cursor, Size & Overflow, Subtitle, Summarize Small Items, Suppression, Title, Tooltips, Trendlines, Visible
Component Override
Overrides a child object of the Layout Component Reference object.
Conditional Block
A block that can be used for conditional display.
Conditional Block
Contains the default set of layout objects to render based on a report variable.
Crosstab
A layout object used to render the results of a query that aggregates data, and then arranges it in a two-dimensional grid.
Properties of Crosstab
Background Color, Background Image, Border, Box Type, Classes, Clickable Regions, Conditional Styles, Container Filter, Container Select, Default Measure, Drop Shadow, Fact Cells Precedence, Floating, Font, Foreground Color, Has Fact Cells, Horizontal Alignment, Margin, Master Detail User Guide 619
Chapter 26: Report Studio Object and Property Reference Relationships, Name, No Data Contents, Pagination, Query, Relative Alignment, Render Page when Empty, Render Variable, Rows Per Page, Set Variable Values, Show Hover, Show Pointer Cursor, Size & Overflow, Style Variable, Summary Text, Suppression, Table Properties, Text Flow & Justification, Visible
Crosstab Columns
Overrides the style for Crosstab Column Member objects that is defined in the GlobalReportStyles. css file.
Crosstab Columns
A list of columns in a crosstab.
Crosstab Corner
The top-left corner of a crosstab, on top of the row labels and to the left of the column labels. It is generally used to represent crosstab members.
Crosstab Intersection
An intersection in a crosstab. The cell contents of a specific intersection can be overridden and the style defined.
Crosstab Rows
Overrides the style for Crosstab Row Member objects that is defined in the GlobalReportStyles.css file.
Crosstab Rows
A list of rows in a crosstab.
Crosstab Space
Inserts an empty cell on a crosstab edge. Allows for the insertion of non-data cells on an edge.
Chapter 26: Report Studio Object and Property Reference Source Type, Source Type, Spacing & Breaking, Style Variable, Text, Text Flow & Justification, Text Source Variable, URL, URL Source Variable, Vertical Alignment, Visible, White Space
Crosstab Summary
The crosstab summary that appears in executed active reports.
Cumulation Label
A label that is rendered for the cumulation line in a Pareto chart.
Cumulation Line
The cumulation line in a Pareto chart.
Cumulation Line
A line that shows the cumulative effect of multiple series members on a measure in a Pareto chart. This object applies only to legacy charts.
Cumulation Line
A line that shows the cumulative effect of multiple series members on a measure in a Pareto chart.
Data Deck
A data-driven deck control. Each card in the deck is determined by the data items inserted into the control.
Data Item
A set of data values or members.
Date
The date when the report runs.
Properties of Date
Background Color, Classes, Data Format, Font, Foreground Color, Margin, Relative Alignment
Date Prompt
A prompt control with which you can to select a date value.
Deck
A static deck control. Each card in the deck requires a corresponding row in the data table of the control.
Properties of Deck
Container Select, Current Card, Deck Cards Definition, Default Card, Name, Render Variable, Size, Slide Animation Direction
Default Measure
A default measure for the chart. If the chart measure cannot be determined by the data series rendered on the chart edges, the default measure is used. This object applies only to legacy charts.
Default Measure
A default measure for the chart. If the chart measure cannot be determined by the data series rendered on the chart edges, the default measure is used.
Detail Filter
A set of conditions in a query that narrow the scope of the data returned. A detail filter is applied before aggregation is complete.
Dimension
A grouping of descriptive information about an aspect of a business. Dimensions contain levels, whose order defines the hierarchy of organizational structures and data. Dimensions and levels are values by which measures can be viewed, filtered, or aggregated.
Properties of Dimension
Name
Display Layer
A map layer that is there for appearance only. Display layers do not correspond to data series or measures.
Drop-Down List
A static drop-down list control. Each item in the list requires a corresponding row in the data table of the control.
Edge Summary
A summary that appears on the edge of a crosstab.
Equation Label
An equation label for a trendline displayed on a chart.
Fact
The central values that are aggregated and analyzed. Also known as measures, they are special business measurement values, such as sales or inventory levels.
Properties of Fact
Data Item, Name
Field Set
A container with a caption, into which you can insert other objects. It is similar to a block object, except that it also has a caption.
Gauge Axis
The axis on the face of the gauge that contains gauge indicators, such as data ranges, color ranges, and interval markers.
Gauge Chart
A chart that plots a data series against a measure using a dial or gauge for the measure, and needles or indicators for the series members.
Gauge Chart
A chart that plots a data series against a measure using a dial or gauge for the measure, and needles or indicators for the series members. This object applies only to legacy charts.
Gauge Labels
A label for each gauge in a multiple gauge chart.
Generated Prompt
A control that acts as a placeholder. The report server will replace this control with an appropriate generated prompt control, as if it was on a generated prompt page.
Hierarchy Set
A set of data items that define the members of a hierarchy.
HTML Item
A container into which you can add HTML, such as a link to a multimedia file. HTML items will only appear when you run the report in HTML format. When you upgrade to the next version of IBM Cognos BI, the report upgrade processes do not account for the use of undocumented and unsupported mechanisms or features such as JavaScript that refers to IBM Cognos HTML items.
Hyperlink
A hyperlink that can be defined as a static value, a query item, or as the result of a report expression. If a report expression is used, then the other values are ignored.
Properties of Hyperlink
Background Color, Background Image, Border, Box Type, Classes, Conditional Styles, Data Item Label, Data Item Label, Data Item Value, Data Item Value, Floating, Font, Foreground Color, Margin, Name, Padding, Relative Alignment, Render Variable, Report Expression, Report Expression, Size & Overflow, Source Type, Source Type, Spacing & Breaking, Style Variable, Text, Text Flow & Justification, Text Source Variable, URL, URL Source Variable, Visible
Hyperlink Button
A hyperlink that is formatted as a button. The hyperlink can be defined as a static value, a query item, or as the result of a report expression. If a report expression is used, then the other values are ignored.
Image
A link to an image file. The link can be a static value, or it can come from a report expression or query item. Use the URL source properties of the image object to define the link.
Properties of Image
Aggregate Function, Alternate Text, Background Color, Background Image, Border, Box Type, Classes, Conditional Styles, Data Item Label, Data Item Value, Drill-Through Definitions, Expression, Floating, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Margin, Member, Member Unique Name, Name, Name, Property Unique Name, Relative Alignment, Render Variable, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Size & Overflow, Source Type, Style Variable, Type, URL, URL Source Variable, Visible
Intersection (Tuple)
A data item obtained from the combination of two or more members that you specify. An intersection appears as a single, unified member instead of its component members. Each member must be from a different dimension.
Interval Prompt
An advanced prompt control that allows you to enter time duration values.
Join
A relationship between a field in one table or query and a field of the same data type in another table or query.
Properties of Join
Join Relationships
Key
An object that uniquely identifies members of a level. If the unique identifier is a primary or alternate key, you need only one key object. If the unique identifier is a composite key, you need one key object for every data item that participates in making the members of a level unique.
Properties of Key
Data Item, Name
Label
Specifies the text, or label, for the object in a chart.
Properties of Label
Conditional Styles, Data Format, Master Detail Relationships, Properties, Query, Render Variable
Legend
A key to the patterns or colors assigned to the data series in a chart. This object applies only to legacy charts.
Properties of Legend
Absolute Position, Auto Truncation, Background Color, Background Image, Border Color, Borders, Bottom Position (px), Box Type, Classes, Conditional Styles, Drill-Through Definitions, Fill Effects, Font, Font Auto-Sizing, Foreground Color, Horizontal Alignment, Left Position (px), Legend Title, Legend Title, Maximum Characters, Position, Right Position (px), Separator, Show Legend Values, Style Variable, Top Position (px), Truncation Text, Visible
Legend
A key to the patterns or colors assigned to the data series in a chart. 632 IBM Cognos Report Studio
Properties of Legend
Auto Font Size, Background Effects, Classes, Conditional Styles, Drill-Through Definitions, Font, Foreground Color, Horizontal Alignment, Legend Separator, Legend Title, Render Variable, Show Values, Text Truncation
Legend Title
The title for the legend, including the title text and text style. If this object is empty, a default title is rendered, if available. This object applies only to legacy charts.
Legend Title
The title for the legend, including the title text and text style. If this object is empty, a default title is rendered, if available.
Level
A set of members with a predefined set of similar characteristics. For example, the members Year 1999 and Year 2000 in the Time dimension form a year level, while the corresponding quarters form a quarter level.
Properties of Level
Caption, Name, Sorting
Level Hierarchy
Specifies how the levels in a dimension are logically ordered.
Level Set
A set of data items that define the members of a level.
Line
The data marker used to represent a data series in a line chart.
Properties of Line
Aggregate Function, Chart Type, Conditional Palette, Expression, Hierarchy, Hierarchy Unique Name, Label, Level, Level Unique Name, Line and Markers, Line Shape, Member, Member Unique Name, Name, Palette, Property Unique Name, Rollup Aggregate Function, Root Members Only, Series Type, Set Sorting, Show Values, Type, Value Markers
Line
The data marker used to represent a data series in a line chart. This object applies only to legacy charts.
Properties of Line
Axis Assignment, Border Color, Borders, Chart Type, Grouping Type, Line Style, Line Type, Line Weight (pt), Show Data Points, Show line, Value Location, Values, Value Type
List
A layout object that is used to present query results in a list fashion.
Properties of List
Background Color, Background Image, Border, Box Type, Classes, Clickable Regions, Column Titles, Conditional Styles, Container Filter, Container Select, Contents Height, Drop Shadow, Floating, Font, Foreground Color, Grouping & Sorting, Horizontal Alignment, Margin, Master Detail Relationships, Name, No Data Contents, Pagination, Properties, Query, Relative Alignment, Render Page when Empty, Render Variable, Rows Per Page, Set Variable Values, Share Result Set, Show Hover, Show Pointer Cursor, Size & Overflow, Style Variable, Summary Text, Suppression, Table Properties, Text Flow & Justification, Visible
List Box
A static list box control. Each item in the list requires a corresponding row in the data table of the control.
List Cell
A cell in a row, you can use for a list header or footer.
Chapter 26: Report Studio Object and Property Reference Item Label, Data Item Value, Data Item Value, Data Item Value, Data Item Value, Expression, Font, Foreground Color, Hierarchy, Hierarchy Unique Name, Horizontal Alignment, HTML, HTML Source Variable, Label, Label, Level, Level Unique Name, Member, Member Unique Name, Name, Output Aggregation Method, Padding, Property Unique Name, Report Expression, Report Expression, Report Expression, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Size & Overflow, Source Type, Source Type, Source Type, Source Type, Spacing & Breaking, Style Variable, Text, Text Flow & Justification, Text Source Variable, Type, URL, URL Source Variable, Vertical Alignment, White Space
List Column
A column in a list. Generally, the column will contain a query item, but it may also contain any number of layout objects. For example, the To column in a statement list may present the address in a table format. If the column only contains a query items, then the column will automatically span the group if the query item is grouped.
List Columns
A set of columns in a list.
List Columns
Overrides the style for List Column objects that is defined in the GlobalReportStyles.css file.
List Footer
The footer that appears at the end of a list on each page on which the list is rendered. It is useful for presenting page totals.
List Header
The header that appears at the start of a list on each page that the list is rendered. It is useful for presenting carry forward totals.
List Item
A list item in a static list box control.
List Row
A row in a list.
List Summary
A summary that is automatically added as the footer row in a list.
List Summary
The list summary that appears in executed active reports.
Map
A chart that uses a map to show data.
Properties of Map
Alternate Text, Axis Title, Background Color, Background Effects, Background Image, Border, Box Type, Classes, Clickable Regions, Conditional Styles, Container Select, Data Language, Dictionary, Drill-Through Definitions, Expand Features, Floating, Font, Footer, Foreground Color, Ignore Data with No Features, Legend, Map & Layers, Margin, Master Detail Relationships, Maximum Hotspots, Name, No Data Contents, No Data Features Size (pt), Notes, Padding, Pagination, Query, Relative Alignment, Render Page when Empty, Render Variable, Set Variable Values, Show Hover, Show Pointer Cursor, Size & Overflow, Style Variable, Subtitle, Suppression, Title, Title, Tooltips, Visible
Map Location
Associates a data series with regions on the region layer of the map.
Map Location
Associates a data series with points on the point layer of the map.
Marimekko Chart
A type of bar chart that can show three levels of data.
Marker
A marker, or symbol, that you can place at a static place in a chart. Markers can designate a point of significance that may help you analyze or understand the data.
Properties of Marker
Aggregate Function, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Label Location, Level, Level Unique Name, Marker Shape, Master Detail Relationships, Member, Member Offset (%), Member Unique Name, Name, Properties, Property Unique Name, Query, Render Variable, Rollup Aggregate Function, Root Members Only, Set Sorting, Type
Marker
A marker, or symbol, that you can place at a static place in a chart. Markers can designate a point of significance that may help you analyze or understand the data. This object applies only to legacy charts.
Properties of Marker
Aggregate Function, Axis Assignment, Bar, Line, or Area Index, Box Type, Data Item Value, Expression, Hierarchy, Hierarchy Unique Name, Label, Label, Level, Level Unique Name, Marker Color, Marker Shape, Marker Size (pt), Master Detail Relationships, Member, Member Unique Name, Name, Numeric Value, Percentile, Percent of Axis, Position type, Properties, Property Unique Name, Query, Report Expression, Report Expression, Rollup Aggregate Function, Root Members Only, Set Sorting, Standard Deviations, Type
Marker
A marker on a point chart. Point charts include scatter charts, polar charts, radar charts, and bubble charts. This object applies only to legacy charts.
Properties of Marker
Box Type, Data Item Value, Expression, Label, Marker Color, Marker Shape, Marker Size (pt), Master Detail Relationships, Numeric Value, Percentile, Percent of Axis, Position type, Position type, Properties, Query, Report Expression, Standard Deviations
MDX
A multidimensional expression (MDX) query against an OLAP data source.
Properties of MDX
Catalog, Data Source, MDX, Name
Measure
A data item that defines a measure.
Properties of Measure
Dimension, Label, Member, Member Unique Name, Name, Type
Member
A data item that defines a member.
Properties of Member
Detail, Dimension, Hierarchy, Label, Member, Member Unique Name, Name, Type
Member Hierarchy
The organization of a dimension's members into a logical tree structure, with each member having one or more "parent" members and an arbitrary number of "child" members.
Member Property
A property that is associated with members of a level. Attributes can be used to refine a search within level members, or to provide additional information about members.
Member Property
A member property from either a level or a hierarchy.
Member Set
A data item that represents a named set. Member sets supply the context for expressions that require evaluation for multiple dimensions. For example, they determine the contexts for which you can apply analytical functions such as rank.
Named Set
A reference to a named set from the model.
Note
A note on a chart. The source of the note text can be static text, a query item, or a report expression.
Properties of Note
Background Effects, Conditional Styles, Font, Foreground Color, Horizontal Alignment, Master Detail Relationships, Note Text, Position, Properties, Render Variable, Size & Overflow
Note
A note on a chart. The source of the note text can be static text, a query item, or a report expression. This object applies only to legacy charts.
Properties of Note
Bottom Position (px), Height (px), Left Position (px), Note Border, Note Text, Width (px)
Note Content
The content and style of a note.
Numerical Axis
The numeric axis for a progressive chart, including labels, titles, range, scale, and gridlines. This object applies only to legacy charts.
Numerical Axis
The numeric axis for a Pareto chart, including labels, titles, and gridlines. This object applies only to legacy charts.
Numeric Axis
The axis that displays numbers.
Numeric Baseline
The baseline on a numeric axis.
Page
A page in a layout.
Properties of Page
Background Color, Background Image, Border, Classes, Conditional Styles, Font, Foreground Color, Gradient, Horizontal Alignment, Margin, Master Detail Relationships, Name, Pagination, PDF Page Setup, Properties, Query, Render Variable, Size & Overflow, Style Variable, Text Flow & Justification
Page Body
The main body of a page.
Page Footer
The footer of a page.
Page Header
The header of a page.
Page Number
The number of a page.
Page Set
The set of pages to render according to a grouping structure.
Pareto Bars
The bars in a Pareto chart.
Pareto Chart
A chart in which data series appear as colored sections stacked in columns or bars. The maximum of each column or bar represents the series total as a percentage of the overall total of all data series in the chart. Negative values are not supported in Pareto charts.
Pareto Chart
A chart in which data series appear as colored sections stacked in columns or bars. The maximum of each column or bar represents the series total as a percentage of the overall total of all data series in the chart. This object applies only to legacy charts. Negative values are not supported in Pareto charts.
Pie Chart
A chart that uses sections of a circle as data markers to plot one or more data series. The size of each section is proportional to the value of each data series for a given category value. Each pie corresponds to a category value. This object applies only to legacy charts.
Pie Chart
A chart that uses sections of a circle as data markers to plot one or more data series. The size of each section is proportional to the value of each data series for a given category value. Each pie corresponds to a category value.
Pie Labels
The labels that will be drawn if multiple pie charts are rendered. If this object does not exist, no labels will be rendered.
Point Layer
A map layer that includes points, such as cities. The color and size of each point is determined by their respective measure.
Point Measure
The measure that determines the colors of points on a map chart.
Polar Chart
A point chart that plots one or more data series against two measures. The radius of a data series is determined by one measure and the arc is determined by the other measure. Multiple points are plotted for each category. They can be distinguished with the help of tool tips if the Tool Tip property is set to Yes.
Chapter 26: Report Studio Object and Property Reference Legend, Margin, Markers, Marker Size (pt), Marker Text Location, Master Detail Relationships, Maximum Hotspots, Name, No Data Contents, Notes, Padding, Pagination, Palette, Point Shape, Query, Radial Axis, Relative Alignment, Render Page when Empty, Render Variable, Set Variable Values, Show Hover, Show Pointer Cursor, Size & Overflow, Spider Effects, Style Variable, Subtitle, Suppression, Title, Title, Tooltips, Value Location, Values, Visible
Primary Axis
The generic numeric axis for the combination chart. This axis is normally shown as the top-left axis but can be in a different position depending on the chart orientation, as specified in the Chart Orientation property of the chart.
Progressive Chart
A chart that uses columns as data markers to plot one category across a single measure. The top of the first column represents the starting value for the second column. This chart emphasizes the positive or negative contribution of each value to the total.
Progressive Chart
A chart that uses columns as data markers to plot one category across a single measure. The top of the first column represents the starting value for the second column. This chart emphasizes the positive or negative contribution of each value to the total. This object applies only to legacy charts.
Prompt Button
A predefined button used in prompt pages. Its usage changes according to its Type property, which can be set to Cancel, Back, Next, Finish, or Reprompt.
Query
The data that is to be retrieved from the database. The query consists of a source, a selection, detailed and summary filters, and dimension information.
Properties of Query
Auto Group & Summarize, Auto-Sort, Avoid Division by Zero, Cross Product Allowed, Define Member Sets, Execution Method, Execution Optimization, Generated SQL, Maximum Execution Time, Maximum Rows Retrieved, Maximum Tables, Maximum Text Blob Characters, Name, Outer Join Allowed, Override Dimension Info, Processing, Rollup Processing, SQL Join Syntax, Suppress, Use 1.x Behavior, Use Aggregate Cache, Use for Parameter Info, Use Local Cache, User SAP Member Cache, Use SAP MUN as Business Key, Use SQL Parameters, Use SQL With Clause
Query Operation
Union, Intersect, Except (minus) operations on one or more queries that result in a projection list upon which other queries can be based.
Query Reference
A reference to another query defined in the same query set.
Radar Chart
A chart that integrates multiple axes into a single radial figure as lines or stacked areas.
Radial Axis
The radial numeric axis for a polar chart or radar chart, including labels, titles, range, and scale.
Radial Measure
The measure that determines the distance between the center of the chart and each data marker.
Radio Button
A radio button in a static radio button group control.
Region Layer
A map layer that includes regions, such as provinces.
Region Measure
The measure that determines the colors of regions on a map chart.
Chapter 26: Report Studio Object and Property Reference Name, Property Unique Name, Rollup Aggregate Function, Root Members Only, Set Sorting, Style Variable, Type
Regression Line
A regression line for a bubble chart or scatter chart.
Repeater
A table into which you can insert items that will be repeated.
Properties of Repeater
Grouping & Sorting, Master Detail Relationships, Name, No Data Contents, Pagination, Properties, Query, Render Page when Empty, Render Variable, Rows Per Page, Share Result Set, Suppression
Repeater Table
Renders query data in a table.
Row Number
Shows the row numbers in a column.
Scatter Chart
A point chart that plots one or more data series against two measures. Multiple points are plotted for each category. This object applies only to legacy charts.
Scatter Chart
A point chart that plots one or more data series against two measures. Multiple points are plotted for each category.
Scatter Marker
A marker, or symbol, that you can place at a static place in a chart. Markers can designate a point of significance that may help you analyze or understand the data.
Secondary Axis
The generic numeric axis for the combination chart. This axis is normally shown as the top-right axis but can be in a different position depending on the chart orientation, as specified in the Chart Orientation property of the chart.
Set Expression
A set of members.
Singleton
A query item that you can insert anywhere in the layout of your report where there is no query associated. When the report is run, the singleton object retrieves only the first row value for that query. Singletons are useful for adding boilerplate text to a report, such as a company name or address, to add overall calculations in a report, or to add multidimensional cell calculations in a report.
Properties of Singleton
Name, Properties, Query, Render Variable
SQL
An SQL query against a relational data source.
Properties of SQL
Data Source, Name, SQL, SQL Syntax
Summary Filter
A set of conditions in a query that narrow the scope of the data returned. A summary filter is applied after aggregation is complete.
Tab
A tab in a static tab control.
Properties of Tab
Icon, Label
Tab Control
A static tab control. Each tab requires a corresponding row in the data table of the control.
Tab Icon
The icon used to identify each tab in a data tab control. The icons are obtained from a data item inserted into the control.
Tab Label
The label used to identify each tab in a data tab control. Each label is determined by the data items inserted into the control.
Table
A collection of cells in which objects can be organized in a grid fashion.
Properties of Table
Background Color, Background Image, Border, Box Type, Classes, Conditional Styles, Drop Shadow, Floating, Font, Foreground Color, Horizontal Alignment, Margin, Name, Pagination, Relative Alignment, Render Variable, Size & Overflow, Style Variable, Summary Text, Table Properties, Text Flow & Justification, Visible
Table Cell
The cells within a row.
Table of Contents
A collection of Table of Contents Entry objects that refer the same table of contents. The table of contents is generated in the rendered output.
Table Row
The rows in a table.
Tab Value
Data items that are used to determine what appears as the tab labels in a data tab control.
Target Measure
The target measure for a bullet chart.
Target Measure
The target measure for a metrics range chart.
Text Item
A text item in a report. The content can be static text, or it can come from a query item or report expression.
Time
The time when the report runs.
Properties of Time
Background Color, Classes, Data Format, Font, Foreground Color, Margin, Relative Alignment
Time Prompt
An advanced prompt control that allows you to select a time value.
Tolerance Measure
The tolerance measure for a metrics chart.
Total Column
A column or bar representing the total cumulative value of all other columns or bars in a progressive chart.
Tree Prompt
A data-driven prompt control that shows hierarchical information and allows you to select one or more members.
Trendline
A line or curve that indicates the general direction of the data over time.
Properties of Trendline
Based on, Line Style, Render Variable, Trendline Label, Type
Trendline Label
A label that will be will be shown in the legend for the trend line.
Value Prompt
A prompt control that allows you to select one or more values from a list.
Variable
A report variable.
Properties of Variable
Name, Report Expression, Type
Win-Loss Chart
A microchart in which the value of each column is either 1 or -1, often denoting a win or a loss.
Chapter 26: Report Studio Object and Property Reference Render Page when Empty, Render Variable, Size & Overflow, Style Variable, Subtitle, Suppression, Title, Tooltips, Visible, Win Color, Win-Loss Threshold
Win-Loss Measure
The measure for a win-loss chart.
X Axis
The horizontal numeric axis for the chart, including labels, titles, range, and scale.
Properties of X Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
X Axis
The x-axis on a scatter or bubble chart.
Properties of X Axis
Axis Labels, Axis Line, Axis Range, Axis Title, Axis Title, Gridlines, Minor Gridlines
X Axis
The axis line for an ordinal, or non-numeric, axis.
Properties of X Axis
Allow 45 Rotation, Allow 90 Rotation, Allow Skip, Allow Stagger, Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Display Frequency, Drill-Through Definitions, First Label Index, Font, Foreground Color, Gridlines, Horizontal Alignment, Label Control, Maximum Truncation Characters, Minor Gridlines, Style Variable, Truncation, Truncation Text, Visible
X Axis Measure
The measure for the horizontal axis of a scatter chart or bubble chart.
Y1 Axis
The numeric axis of a metrics chart, or the primary numeric axis of a combination chart.
Properties of Y1 Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
Y2 Axis
The secondary numeric axis of a combination chart.
Properties of Y2 Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
Y Axis
The vertical numeric axis for the chart, including labels, titles, range, and scale.
Properties of Y Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
Y Axis
The y-axis on a scatter or bubble chart.
Properties of Y Axis
Axis Labels, Axis Line, Axis Range, Axis Title, Axis Title, Gridlines, Minor Gridlines
Y Axis
The axis line for an ordinal, or non-numeric, axis.
Properties of Y Axis
Allow 45 Rotation, Allow 90 Rotation, Allow Skip, Allow Stagger, Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Display Frequency, Drill-Through Definitions, First Label Index, Font, Foreground Color, Gridlines, Horizontal Alignment, Label Control, Maximum Truncation Characters, Minor Gridlines, Style Variable, Truncation, Truncation Text, Visible
Y Axis Measure
The measure for the vertical axis of a scatter chart or bubble chart.
Z Axis
The third numeric axis for a three-dimensional scatter chart, including labels, titles, range, and scale.
Properties of Z Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
Z Axis
The vertical numeric axis for a three-dimensional combination chart, including labels, titles, range, and scale.
Properties of Z Axis
Axis Labels, Axis Line, Axis Title, Axis Title, Classes, Conditional Styles, Data Format, Font, Foreground Color, Gridlines, Include Zero For Auto Scale, Maximum Value, Minimum Value, Minor Gridlines, Scale, Scale Interval, Style Variable, Use Same Range For All Instances, Visible
Z Axis Measure
The measure for the third axis of a three-dimensional scatter chart.
Applies to
3-D Combination Chart, 3-D Scatter Chart
Absolute Position
Specifies that the legend will be positioned absolutely, by setting its pixel position.
Applies to
Legend
Across
Sets the number of times across, or horizontally, that the contents of the object may be rendered. The default value depends on the setting of the Repeater Direction property. If it is set to Left to right, top to bottom, the default is one. If it is set to Top to bottom, left to right, the default is 20.
Applies to
Repeater Table
Applies to
Variable Text Item
Applies to
Dimensional Edge Summary, Edge Summary, List Summary
Aggregate Function
Specifies the type of aggregation to apply. The Automatic setting means that the application groups or summarizes based on the data type. The Summarize setting means that any setting found in the model will be used to determine the type of aggregation. The default setting is Automatic. For more information about each summary function, see the Report Studio Professional Authoring User Guide.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure,
Chapter 26: Report Studio Object and Property Reference Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Aggregation Method
Specifies the type of summary or aggregation that is applied.
Applies to
Dimensional Edge Summary, Edge Summary, List Summary
Allow 45 Rotation
Specifies whether the labels can be rotated 45 degrees if the labels are long.
Applies to
Category Axis, X Axis, Y Axis
Allow 90 Rotation
Specifies whether the labels can be rotated 90 degrees if the labels are long.
Applies to
Category Axis, X Axis, Y Axis
Allow Skip
Specifies whether some labels can be skipped if they are long.
Applies to
Category Axis, X Axis, Y Axis
Allow Sorting
Specifies whether sorting is allowed for the column.
Applies to
List Column, List Column Body, List Column Title
Allow Stagger
Specifies whether the labels can be staggered if they are long.
Applies to
Category Axis, X Axis, Y Axis
Allow Ties
Specifies whether data values that equal the Win Loss Threshold property are converted to zero and mapped on the zero line. 666 IBM Cognos Report Studio
Applies to
Win-Loss Chart
Alternate Text
Specifies a text alternative for non-text objects such as images and charts. Use to make reports accessible for people who use screen readers.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Gauge Chart, Gauge Chart, Image, Map, Marimekko Chart, Metrics Range Chart, Metric Studio Diagram, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart
Angular Axis
Specifies whether the axis is rendered.
Applies to
Polar Chart
Application
Specifies if the condition will be applied before or after aggregation and summarization. When true, the condition will apply to the summarized rows, and a fact, or aggregate, in the expression will be interpreted as the aggregated value of the summarized rows. When false, the condition will apply to the detail database rows from the tabular result set prior to aggregation or summarization, and a fact, or aggregate, in the expression will be interpreted as the individual database value before it has been summarized. This property has no effect on OLAP data sources, on references to nonaggregate items, or when automatic summarization is disabled.
Applies to
Detail Filter
Applies to
Crosstab Fact Cells User Guide 667
Area Shape
Specifies the shape of an area in an area chart.
Applies to
Area
Applies to
Axis Labels, Axis Title, Legend, Legend Title
Applies to
Query
Auto-Sort
When running the report, specifies whether to automatically sort based on data type.
Applies to
Query
Auto-Submit
Specifies whether the application submits the prompt page automatically, as soon as a value is changed.
Applies to
Value Prompt
Auto Truncation
Specifies whether to allow truncation of text.
Applies to
Legend
Applies to
Query
Applies to
Pie Chart
Axis Angles
Specifies the start and end angle and the direction of the gauge axis. All angles are measured in degrees starting from the three o'clock position.
Applies to
Gauge Axis
Axis Assignment
Specifies the numeric axis to use. This property applies only to legacy charts.
Applies to
Area, Bar, Baseline, Line, Marker
Axis Assignment
Specifies which numeric axis to use.
Applies to
Baseline
Applies to
Gauge Axis
Axis Labels
Specifies whether to show or hide axis labels.
Applies to
Category axis, Cumulation Line, Gauge Axis, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Axis Labels
Specifies whether to show or hide axis labels. This property applies only to legacy charts.
Applies to
Angular Axis, Category Axis, Cumulation Line Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Axis Line
Specifies the properties of the axis line in a chart. This property applies only to legacy charts.
Applies to
Angular Axis, Category Axis, Cumulation Line Axis, Numerical Axis, Numerical Axis, Radial Axis, Win-Loss Chart, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Axis Line
Specifies the properties of the axis line in a chart.
Applies to
Category axis, Cumulation Line, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Axis Line
Specifies the properties of the gauge axis line in a gauge chart.
Applies to
Gauge Axis
Axis Range
Specifies the appearance of the range of values on an axis.
Applies to
Cumulation Line, Gauge Axis, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Axis Title
Specifies whether an axis title is rendered.
Applies to
Angular Axis, Category axis, Category Axis, Cumulation Line, Numerical Axis, Numerical Axis, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Radial Axis, Secondary Axis, Secondary Bottom Axis, X Axis, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Y Axis, Z Axis, Z Axis
Axis Title
Specifies whether an axis title will be rendered. This property applies only to legacy charts.
Applies to
Angular Axis, Category Axis, Cumulation Line Axis, Gauge Chart, Map, Numerical Axis, Numerical Axis, Pie Chart, Radial Axis, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Axis Title
Specifies whether to show the axis titles in a chart.
Applies to
Category axis, Cumulation Line, Gauge Axis, Numeric Axis, Pareto Bars, Pie Chart, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Background Color
Specifies the background color for the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Caption, Chart Body, Chart Body, Class, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Date, Field Set, Gauge Chart, Hyperlink, Hyperlink Button, Image, Legend, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note Content, Page, Page Body, Page Break Text, Page Footer, Page Header, Page Number, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Repeater Table Cell, Row Number, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Text Box Prompt, Text Item, Time, Value Prompt, Variable Text Item, WinLoss Chart
Background Effects
Specifies the characteristics of a background. You can add background effects only to objects that have a fixed height and width; if a percentage size is given, the effects are ignored.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Chart Body, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Equation Label, Gauge Chart, Gauge Chart, Legend, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, Map, Marimekko Chart, Metrics Range Chart, Note, Page Body, Page Footer, Page Header, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater Table Cell, Scatter Chart, Scatter Chart, Table Cell, Win-Loss Chart
Background Image
Specifies an image to be used as the background for the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Caption, Chart Body, Chart Body, Class, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Field Set, Gauge Chart, Hyperlink, Hyperlink Button, Image, Legend, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page, Page Body, Page Break Text, Page Footer, Page Header, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Repeater Table Cell, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Text Item, Variable Text Item, WinLoss Chart
Applies to
Baseline, Baseline, Marker
Bar Shape
Specifies the shape of the bars in a bar chart.
Applies to
Bar
Bar Width
Specifies the width of the bars as a percentage of the space available. For example, if you specify 50 percent, the bar takes up half of the space available and the bars are separated from each other. If you specify 100 percent, there is no space between the bars.The default value is 80.
Applies to
Bar, Pareto Chart, Progressive Chart
Based on
Specifies the series data item on which the trendline is based.
Applies to
Trendline
Baselines
Adds reference lines to a chart based on numeric or statistical values, calculations, or layout calculations. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Bevel
Specifies whether the chart appears with a beveled edge.
Applies to
Bar, Bullet Chart, Pareto Chart, Pie Chart, Progressive Chart
Block Variable
Specifies a variable based on which the block can be conditionally rendered.
Applies to
Conditional Block, Conditional Block
Border
Specifies the width, style, and color for the border of the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab
Chapter 26: Report Studio Object and Property Reference Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Field Set, Gauge Chart, Gauge Chart, Hyperlink, Hyperlink Button, Image, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page, Page Body, Page Break Text, Page Footer, Page Header, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Repeater Table Cell, Scatter Chart, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Text Box Prompt, Text Item, Variable Text Item, Win-Loss Chart
Border Color
Specifies the color of the border rendered around specific chart elements, such as bars, stacks, areas, points, or pie slices.
Applies to
3-D Area, 3-D Bar, 3-D Line, 3-D Scatter Chart, Area, Area, Bar, Bar, Bubble Chart, Display Layer, Gauge Chart, Legend, Line, Marimekko Chart, Pareto Chart, Pareto Chart, Pie Chart, Point Layer, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Region Layer, Scatter Chart, WinLoss Chart
Border Color
Specifies the color of the borders around the chart body in a pie chart.
Applies to
Pie Chart
Borders
Specifies whether borders are rendered around specific chart elements, such as bars, stacks, areas, points, or pie slices.
Applies to
3-D Area, 3-D Bar, 3-D Line, 3-D Scatter Chart, Area, Bar, Bubble Chart, Display Layer, Gauge Chart, Legend, Line, Marimekko Chart, Pareto Chart, Pie Chart, Point Layer, Polar Chart, Progressive Chart, Radar Chart, Region Layer, Scatter Chart, Win-Loss Chart
Borders
Specifies whether borders appear around the chart body.
Applies to
Area, Bar, Pareto Chart, Progressive Chart
Borders
Specifies whether borders appear around the chart body in a pie chart. 674 IBM Cognos Report Studio
Applies to
Pie Chart
Bottom Position
Specifies the position of the bottom edge of the colored region.
Applies to
Colored Region
Applies to
Note
Applies to
Legend
Box Type
Specifies whether to override the default box type for the object. When Box Type is set to None, the object is not rendered and its space is not reserved in the report. You could use this property to remove an object completely from a report when a specific condition is met. When Box Type is set to Inline, you can insert other objects on the same line as the object. When Box Type is set to Block, you can insert other objects only on the lines above and below the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Field Set, Gauge Chart, Gauge Chart, Hyperlink, Image, List, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page Break Text, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater Table, Scatter Chart, Scatter Chart, Table, Table of Contents, Table of Contents Entry, Text Item, Variable Text Item, Win-Loss Chart
Box Type
Specifies whether to override the default box type for the object. When Box Type is set to None, the object is not rendered and its space is not reserved in the report.
Applies to
Axis Title, Axis Title, Baseline, Baseline, Baseline, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Date & Time Prompt, Date Prompt, Interval Prompt, Legend, Legend Title, Legend Title, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, Marker, Marker, Note Content, Page Body, Page Footer, Page Header, Regression Line, Repeater Table Cell, Select & Search Prompt, Table Cell, Table Row, Text Box Prompt, Time Prompt, Value Prompt
Bubble Size
Specifies how the bubble size is computed. Minimum-Based assigns the smallest bubble to the minimum data value. Zero-Based computes the bubble size relative to 0. This option is compatible with Excel 2002. Zero-Based with Negatives shows negative bubbles as hollow, and the bubbles get larger as they get further from 0. This option is compatible with Excel 2007.
Applies to
Bubble Chart
Applies to
Bubble Chart
Bullet Indicators
Specifies the size and shape of the bullet chart data marker that represents the actual value.
Applies to
Bullet Chart
Button Definition
Defines the button in the control.
Applies to
Button
Button Gap
Specifies the gap between buttons in the button bar.
Applies to
Button Bar, Data Button Bar, Data Toggle Button Bar, Toggle Button Bar
Buttons Definition
Defines the buttons in the button bar.
Applies to
Button Bar, Toggle Button Bar
Button Width
Specifies the width of buttons in the button bar.
Applies to
Button Bar, Data Button Bar, Data Toggle Button Bar, Toggle Button Bar
Calculation Intersection
Specifies whether to suppress calculated values that occur at the intersection of a data source calculated member and a query-defined calculated member. When values are suppressed, the characters specified for the Not Applicable characters data format appear in the cells.
Applies to
Calculated Measure, Calculated Member, Data Item, Dimensional Edge Summary, Edge Summary
Calendar Type
Specifies the type of calendar to show. The date values are mapped to the selected calendar before being formatted. The default value is inherited from the user's content language.
Applies to
Date & Time Prompt, Date Prompt
Caption
Specifies the caption for the level.
Applies to
Level
Caption
Specifies the caption.
Applies to
Calculated Member
Cardinality
Specifies the cardinality for this join operand.
Applies to
Query Reference
Cascade Source
Specifies the parameter whose value is used to filter the values displayed in this control.
Applies to
Select & Search Prompt, Tree Prompt, Value Prompt
Case Insensitive
Specifies whether to perform a case insensitive search by default.
Applies to
Select & Search Prompt
Catalog
Specifies the OLAP catalog.
Applies to
MDX
Category Axis
Specifies whether the axis is rendered.
Applies to
Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Progressive Chart, Radar Chart
Category Baselines
Adds reference lines on the category axis of a chart based on numeric or statistical values, calculations, or layout calculations.
Applies to
Combination Chart, Pareto Chart, Progressive Chart
Chart Orientation
Specifies whether the chart is rendered vertically or horizontally.
Applies to
Bullet Chart, Combination Chart, Combination Chart, Pareto Chart, Pareto Chart, Progressive Chart, Progressive Chart, Win-Loss Chart
Chart Type
Specifies whether the data may be rendered as either a bar, line, or area. This property applies only to legacy charts.
Applies to
Area, Bar, Line
Chart Type
Specifies whether the data may be rendered as either a bar, line, or area.
Applies to
Area, Bar, Line
Chart Type
Specifies whether the data may be rendered as either a bar, line or area.
Applies to
3-D Area, 3-D Bar, 3-D Line
Applies to
Check Box Group
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Value Prompt
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Value Prompt
Choices Text
Specifies the title that appears above the choices box when multiple selections are enabled. This property applies to the following prompt types: value, text box, date, date & time, time, interval, and select & search. The default title text is Choices.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Value Prompt
Classes
Specifies a class to apply to the object. The class provides a default style. If you apply more than one class, the style properties from all classes are merged together when they are applied. However, if the classes have style properties in common, the style properties from the last class applied override those from previous classes.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Axis Labels, Axis Title, Axis Title, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Category Axis, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Crosstab Summary, Cumulation Line Axis, Date, Field Set, Gauge Chart, Gauge Chart, Gauge Labels, Hyperlink, Hyperlink Button, Image, Legend, Legend, Legend Title, Legend Title, List, List Cell, List Column Body, List Column Title, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note Content, Numerical Axis, Numerical Axis, Page, Page Body, Page Break Text, Page Footer, Page Header, Page Number, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Radial Axis, Repeater Table, Repeater Table Cell, Row Number, Scatter Chart, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Text Item, Time, Variable Text Item, Win-Loss Chart, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Clickable Region
Applies to
Crosstab Fact Cells, List Column, List Column Body, List Column Title, List Row 680 IBM Cognos Report Studio
Clickable Region
Applies to
Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Crosstab Summary
Clickable Regions
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Gauge Chart, Gauge Chart, List, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart
Clock Mode
Specifies whether the arms of the clock move.
Applies to
Date & Time Prompt, Time Prompt
Color by Value
Specifies how color by value is rendered in a chart.
Applies to
Bubble Chart, Color by Value Measure, Scatter Chart
Colored Regions
Specifies rectangular colored regions drawn in the chart body to highlight parts of the chart. The regions are rendered behind the data markers. The regions are drawn in the same order that they appear in this property. The first region is drawn first, on the bottom, and the last region is drawn on top of the other regions.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Pareto Chart, Progressive Chart, Scatter Chart
Applies to
Region Layer
Applies to
Point Layer
Column Coordinate
Uniquely identifies the column of a node member or spacer on an edge of the crosstab. You cannot modify this value.
Applies to
Crosstab Intersection
Column Titles
Specifies where or whether column titles may be rendered.
Applies to
List
Column Visibility
Specifies whether a column is visible when the report is executed. You can set column visibility based on a condition.
Applies to
List Column, List Column Body, List Column Title
Combinations
Specifies which axes to show and the chart types to use for the series.
Applies to
Combination Chart
Component Reference
Specifies the layout object that is referenced. An object is a reusable component only if it has a name.
Applies to
Layout Component Reference
Component Reference
Specifies the layout object that is referenced. An object is a reusable component only if it has a name. You cannot modify this value.
Applies to
Component Override
Conditional Palette
Specifies a conditional palette for the chart.
Applies to
Area, Bar, Bubble Chart, Gauge Axis, Line, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Conditional Palette
Specifies a conditional palette for the chart. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Point Layer, Polar Chart, Progressive Chart, Radar Chart, Region Layer, Scatter Chart
Conditional Styles
Specifies the conditions and styles used to style the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Angular Measure, Axis Labels, Axis Title, Axis Title, Block, Bubble Chart, Bubble Chart, Bubble Measure, Bubble Measure, Bullet Chart, Caption, Category Axis, Chart Body, Chart Footer, Chart Footer, Chart Measure, Chart Subtitle, Chart Subtitle, Chart Text Item, Chart Text Item, Chart Title, Chart Title, Color by Value Measure, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Cumulation Label, Cumulation Line Axis, Date & Time Prompt, Date Prompt, Default Measure, Default Measure, Display Layer, Equation Label, Field Set, Gauge Chart, Gauge Chart, Gauge Labels, Gauge Numerical Axis, Hyperlink, Hyperlink Button, Image, Interval Prompt, Label, Legend, Legend, Legend Title, Legend Title, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note, Note Content, Numerical Axis, Numerical Axis, Page, Page Body, Page Break Text, Page Footer, Page Header, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Point Layer, Point Measure, Point Size Measure, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Radial Axis, Radial
Chapter 26: Report Studio Object and Property Reference Measure, Region Layer, Region Measure, Repeater Table, Repeater Table Cell, Scatter Chart, Scatter Chart, Select & Search Prompt, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Target Measure, Text Box Prompt, Text Item, Time Prompt, Tolerance Measure, Tree Prompt, Trendline Label, Value Prompt, Win-Loss Chart, X Axis, X Axis, X Axis Measure, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Y Axis Measure, Z Axis, Z Axis, Z Axis Measure
Connecting Lines
Specifies the properties of the lines that connect the segments of a stacked bar. This property is ignored for clustered bars. This property applies only to legacy charts.
Applies to
Bar, Pareto Chart, Progressive Chart
Connecting Lines
Specifies the properties of the lines that connect the segments of a stacked bar in a progressive chart. This property is ignored for clustered bars.
Applies to
Progressive Chart
Applies to
Check Box Group, Crosstab, Data Check Box Group, Data Drop-Down List, Data List Box, Data Radio Button Group, Drop-Down List, List, List Box, Radio Button Group
Container Select
Selects an item in the control or container based on the value of a variable. For example, selects a row in a list, selects a named list item from a drop down list, or selects a named tab from a tab control.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Button Bar, Check Box Group, Combination Chart, Combination Chart, Crosstab, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Deck, Drop-Down List, Gauge Chart, Gauge Chart, List, List Box, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Radio Button Group, Scatter Chart, Scatter Chart, Tab Control, Toggle Button Bar
Contents Height
Specifies the relative height of list rows. This property is used only when a list has a height defined in the Size and Overflow property. Stretched means that the rows will be evenly sized to fit in the list's height. This is default HTML behavior. Minimal means that rows will take up only as much space as they need, and be compressed at the top of the list. You can position a footer at the bottom of the list by setting the Push To Bottom property to Yes on a footer object inside the list.
Applies to
List
Control Enable
Enables the control or container based on the value of a variable.
Applies to
Button, Button Bar, Check Box Group, Data Button Bar, Data Check Box Group, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Toggle Button Bar, Drop-Down List, List Box, Radio Button Group, Toggle Button Bar
Applies to
Query
Cumulation Axis
Specifies whether the axis for the cumulation line is rendered.
Applies to
Cumulation Line
Applies to
Cumulation Line
Cumulation Label
Specifies the label that is shown with the cumulation line on a Pareto chart
Applies to
Cumulation Line
Cumulative Line
Specifies whether the cumulation line is rendered.
Applies to
Pareto Chart
Cumulative Line
Specifies whether the cumulation line is rendered in a Pareto chart.
Applies to
Pareto Chart
Current Block
Specifies which block is currently being authored.
Applies to
Conditional Block, Conditional Block
Current Card
Specifies which card to show in the report.
Applies to
Card, Deck
Current Tab
Specifies which tab to show in the report.
Applies to
Tab Control
Custom Label
Overrides the default label for the data item.
Applies to
Angular Measure, Bubble Measure, Chart Node Member, Default Measure, Point Measure, Point Size Measure, Radial Measure, Region Measure, Target Measure, Tolerance Measure, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Custom Label
Specifies the data source and format for a text item, such as a legend item, legend title, axis label, or axis title.
Applies to
Bubble Measure, Bullet Measure, Chart Measure, Color by Value Measure, Default Measure, Target Measure
Data Format
Specifies the data format of the object.
Applies to
Angular Axis, Angular Measure, Axis Labels, Bubble Measure, Bubble Measure, Bullet Measure, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Cumulation Label, Cumulation Line Axis, Date, Default Measure, Default Measure, Gauge Numerical Axis, Label, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Numerical Axis, Numerical Axis, Point Measure, Point Size Measure, Radial Axis, Radial Measure, Region Measure, Row Number, Select & Search Prompt, Target Measure, Target Measure, Text Item, Time, Tolerance Measure, Total Column, Trendline Label, Value Prompt, Win-Loss Measure, X Axis, X Axis Measure, Y1 Axis, Y2 Axis, Y Axis, Y Axis Measure, Z Axis, Z Axis, Z Axis Measure
Data Item
Specifies a reference to a data item. You cannot modify this value.
Applies to
Button Icon, Button Label, Button Value, Card Label, Card Value, Check Box Icon, Check Box Label, Check Box Value, Crosstab Node Member, Crosstab Summary, List Item Icon, List Item Label, List Item Value, List Summary, Member Set, Radio Button Icon, Radio Button Label, Radio Button Value, Tab Icon, Tab Label, Tab Value
Data Item
Specifies a reference to a data item.
Applies to
Calculated Member, Fact, Key, Member Property
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Applies to
Bookmark, Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, List Cell, List Column Body, List Column Title
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, 688 IBM Cognos Report Studio
Chapter 26: Report Studio Object and Property Reference Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item, Total Column
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Applies to
Bookmark, Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, List Cell, List Column Body, List Column Title
Applies to
Baseline, Baseline, Baseline, Baseline, Marker, Marker, Numeric Baseline
Applies to
Marker
Data Language
Specifies the language of the data.
Applies to
Map
Data Points
Specifies whether to show data points on the chart and how they are formatted.
Applies to
Cumulation Line
Data Source
Specifies the query data source.
Applies to
MDX, SQL
Days Text
Specifies the title that appears above the days box in interval prompts. The default title text is Days.
Applies to
Interval Prompt
Applies to
Deck
Default Card
Card to display when no other card matches the current variable state.
Applies to
Data Deck, Deck
Default Measure
Specifies the default measure to use for a crosstab or chart. If the measures of the crosstab or chart cannot be determined by what is being rendered on the edges, then the default measure will be rendered.
Applies to
Crosstab
Default Selections
Specifies the collection of default selections for a prompt control.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Default Title
Specifies whether the default title is generated.
Applies to
Axis Title, Legend Title
Default Title
Specifies whether the default title may be generated.
Applies to
Axis Title, Legend Title
Define Contents
Overrides the content of the selected crosstab intersection. Use this property to hide measure values for individual cells or to define custom content.
Applies to
Crosstab Intersection, Crosstab Member Fact Cells
Applies to
Query
Definition
Specifies the expression to evaluate when filtering the data.
Applies to
Detail Filter, Summary Filter
Depth
Specifies the three-dimensional depth effect of the chart. A value of zero indicates a flat chart.
Applies to
Combination Chart, Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Progressive Chart, Progressive Chart
Description
Specifies a description for the object, that is used to assist authoring.
Applies to
Class, HTML Item, Metric Studio Diagram, Rich Text Item
Deselect Text
Specifies the text for the link that deselects the items when the selection is optional. This property applies to the following prompt types: text box, date, date & time, time, interval, value, select & search, and tree. The default link text is Deselect.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Detail
Specifies whether the data item is to be used for calculating aggregates or not. When set to Yes, the data item is used to aggregate the lowest level details.
Applies to
Calculated Member, Data Item, Explicit Member Set, Hierarchy Set, Level Set, Member, Member Children Set, Named Set, Set Expression
Diagram Identifier
Identifies an impact or custom diagram in Metric Studio. Copy the identifier from Metric Studio (Diagrams tab, View the Diagram Identifier button in the Actions column) and paste it in this property. Report Studio decodes the identifier into an image URL. The diagram is imported as a static image.
Applies to
Metric Studio Diagram
Applies to
Gauge Chart
Applies to
Gauge Chart
Dictionary
Specifies the aliases to use when matching data values to feature names in the map.
Applies to
Map
Dimension
Specifies a reference to a dimension. You cannot modify this value.
Applies to
Calculated Measure, Calculated Member, Dimensional Edge Summary, Explicit Member Set, Hierarchy Set, Intersection (Tuple), Level Set, Measure, Member, Member Children Set, Member Property, Named Set, Set Expression
Applies to
List Page Header
Display Frequency
Specifies the frequency for which chart labels are to be rendered. If set to 3, for example, every third label will be rendered. This property applies only to legacy charts.
Applies to
Category Axis, X Axis, Y Axis
Display Milliseconds
Specifies whether to show the milliseconds. The format of the milliseconds can be controlled by selecting a specific format. This property is ignored if seconds are not rendered. The default value is inherited from the user's content language.
Applies to
Date & Time Prompt, Interval Prompt, Time Prompt
Display Seconds
Specifies whether to show the seconds. The format of the seconds can be controlled by selecting a specific format. The default value is inherited from the user's content language.
Applies to
Date & Time Prompt, Interval Prompt, Time Prompt
Display Value
Specifies the values rendered to the report user when the prompt is used. These values can be different than the ones that are actually used by the report.
Applies to
Select & Search Prompt, Value Prompt
Down
Specifies the number of times down, or rows, that the frame contents may be rendered. The default value depends on the setting of the Repeater Direction property. If it is set to Left to right, top to bottom, the default is 20. If it is set to Top to bottom, left to right, the default is one.
Applies to
Repeater Table
Drill-Through Definitions
Specifies report-to-report drill-through definitions, bookmarks, and drill-through text for the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Category axis, Category Axis, Combination Chart, Combination Chart, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Gauge Chart, Gauge Chart, Gauge Labels, Image, Legend, Legend, List Column Body, List Column Title, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart, Text Item, Win-Loss Chart, X Axis, Y Axis
Drop Shadow
Defines a drop shadow that is rendered around a container.
Applies to
Crosstab, List, Repeater Table, Table
Drop Shadow
Specifies whether a drop shadow appears on a chart and how it appears. 694 IBM Cognos Report Studio
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Duplicates
Specifies whether duplicate rows will be preserved or removed.
Applies to
Query Operation
Embed
Specifies how to embed the reference object. A reference, or pointer, to the object is stored, by default. Alternatively, a copy of the external object can be stored in the report.
Applies to
Layout Component Reference
End Position
Specifies the position of one edge of the colored region along the numeric axis. The region extends from the position defined in the Start Position to the position defined in this property. The value specified in this property must be greater than the value specified in the Start Position property.
Applies to
Colored Region
Execution Method
Specifies whether the query is a candidate to run concurrently. If set to Concurrent, the query may still execute sequentially based on other factors. If not explicitly set, the query will execute sequentially. Concurrent query execution may improve performance in some cases.
Applies to
Query
Execution Optimization
Specifies how much of the query processing is performed by the client and how much is performed by the database server. If the database server can perform all the query processing, it does. If All Rows is selected, the optimizer adopts a plan that retrieves all rows of the result set in the least amount of time. This value is generally used in a batch environment. If First Rows is selected, the optimizer adopts a plan that retrieves the first row as quickly as possible. This value is generally used in an interactive environment. If Incremental is selected, the optimizer retrieves the first N rows, and then retrieves the next N rows. User Guide 695
Applies to
Query
Expand Features
Specifies whether to center and expand the feature in the map chart. When set to Yes, the map feature is centered and expanded to take up all available space in the chart. When set to No, the map feature is not expanded.
Applies to
Map
Exploded Slices
Specifies the slices that appear pulled out of a pie chart and their appearance.
Applies to
Pie Chart
Expression
Specifies the expression that defines the slicer member set.
Applies to
Slicer Member Set
Expression
Specifies the numeric position for a data marker in a scatter chart.
Applies to
Marker
Expression
Specifies the expression used to populate the data item.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Calculated Measure, Calculated Member, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure 696 IBM Cognos Report Studio
Extend Width
Specifies whether the area extends to the width of the chart. This property applies only to defined areas of area charts. When the area chart is converted to a matrix of charts, this property is not supported.
Applies to
Area
Face Color
Specifies the color to show on the face of each gauge in a gauge chart.
Applies to
Gauge Chart
Applies to
Crosstab
Fill Effects
Specifies the fill effects for the object.
Applies to
Chart Body, Display Layer, Legend, Point Layer, Region Layer
Applies to
Progressive Chart
First Date
Specifies the earliest date to render in the control, and the earliest date that can be selected.
Applies to
Date & Time Prompt, Date Prompt User Guide 697
Applies to
Category Axis, X Axis, Y Axis
Applies to
Pie Chart
Floating
Specifies how objects flow around an object. Float controls the way the content that follows the selected object will flow around or below it. Clear controls where the selected object is positioned, relative to other floating objects.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Date & Time Prompt, Date Prompt, Field Set, Gauge Chart, Gauge Chart, Hyperlink, Hyperlink Button, Image, Interval Prompt, List, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page Break Text, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Scatter Chart, Scatter Chart, Select & Search Prompt, Table, Table of Contents, Table of Contents Entry, Text Box Prompt, Text Item, Time Prompt, Tree Prompt, Value Prompt, Variable Text Item, Win-Loss Chart
Font
Specifies the font family, size, weight, style, and effects used to display the object's text.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Axis Labels, Axis Title, Axis Title, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Category Axis, Chart Body, Chart Body, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Cumulation Line Axis, Date, Equation Label, Field Set, Gauge Chart, Gauge Chart, Gauge Labels, Gauge Numerical Axis, Hyperlink, Legend, Legend, Legend Title, Legend Title, List, List Cell, List Column, List Column Body, List Columns, List Columns, List 698 IBM Cognos Report Studio
Chapter 26: Report Studio Object and Property Reference Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note, Note Content, Numerical Axis, Numerical Axis, Page, Page Body, Page Break Text, Page Footer, Page Header, Page Number, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Radial Axis, Repeater Table, Repeater Table Cell, Row Number, Scatter Chart, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Text Box Prompt, Text Item, Time, Value Prompt, Variable Text Item, Win-Loss Chart, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Font Auto-Sizing
Specifies whether to allow automatic resizing of the font.
Applies to
Legend
Footer
Specifies whether a chart footer is rendered. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart, Win-Loss Chart
Footer
Specifies whether a chart footer is rendered.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Foreground Color
Specifies the color of the object's text.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Axis Labels, Axis Title, Axis Title, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Category Axis, Chart Body, Chart Body, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Cumulation Line Axis, Date, Equation Label, Field Set, Gauge Chart, Gauge Chart, Gauge Labels, Gauge Numerical Axis, Hyperlink, Hyperlink Button, Legend, Legend,
Chapter 26: Report Studio Object and Property Reference Legend Title, Legend Title, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note, Note Content, Numerical Axis, Numerical Axis, Page, Page Body, Page Break Text, Page Footer, Page Header, Page Number, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Radial Axis, Repeater Table, Repeater Table Cell, Row Number, Scatter Chart, Scatter Chart, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Text Box Prompt, Text Item, Time, Value Prompt, Variable Text Item, Win-Loss Chart, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
From Text
Specifies the label that appears beside the beginning of a range. This property applies to the following prompt types: date, date & time, time, and interval. The default label text is From.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Value Prompt
Gauge Axes
Specifies the start and end angles for the gauge axes.
Applies to
Gauge Chart
Applies to
Gauge Axis
Applies to
Gauge Axis
Applies to
Gauge Axis
Gauge Border
Specifies whether borders appear around the chart body in a gauge chart.
Applies to
Gauge Chart
Gauge Labels
Specifies whether gauge labels are rendered.
Applies to
Gauge Chart
Gauge Needle
Specifies the size and style of the gauge needle. The chart contains one needle for each row in the data series. All needles on a gauge axis use the same specified styles.
Applies to
Gauge Axis
Gauge Palette
Specifies the palette that controls the look of the dial portion of a gauge.
Applies to
Gauge Chart
Gauge Pivot
Specifies whether to show the center pivot point and its color, size, and style.
Applies to
Gauge Chart
Generated SQL
Shows the generated SQL or MDX.
Applies to
Query
Gradient
Specifies a color gradient for the page.
Applies to
Page User Guide 701
Gridlines
Specifies the properties of the major gridlines in the gauge axis of a gauge chart.
Applies to
Gauge Axis
Gridlines
Specifies the properties of the gridlines in a chart.
Applies to
Angular Axis, Category Axis, Cumulation Line Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Gridlines
Specifies the properties of the major gridlines in a chart.
Applies to
Category axis, Cumulation Line, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Applies to
List, Page Set, Repeater, Repeater Table
Grouping Type
Specifies whether the absolute, stacked, or 100 percent stacked data may be drawn.
Applies to
Area, Bar, Line
Group Span
Specifies the group that this cell should visually span.
Applies to
List Column Body
Applies to
Crosstab
Header Text
Specifies the title that appears above the list of choices in a value prompt. The default title text is the name of the level above the data items that are listed as choices; for example, Regions.
Applies to
Value Prompt
Heading Level
Specifies the heading level of the table of contents entry.
Applies to
Table of Contents Entry
Height (px)
Specifies the height of the note, in pixels.
Applies to
Note
Hide Adornments
Specifies whether to hide the asterisk (*) on required prompts and arrow (->) on type-in prompts that are in an error state.
Applies to
Date & Time Prompt, Date Prompt, Generated Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Hide Text
Specifies whether to replace characters entered in the prompt control with asterisk (*) characters.
Applies to
Text Box Prompt
Hierarchy
Specifies a reference to a hierarchy. You cannot modify this value.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Calculated Member, Category Baseline, Chart Measure, Chart Node Member,
Chapter 26: Report Studio Object and Property Reference Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Dimensional Edge Summary, Explicit Member Set, Gauge Axis, Hierarchy Set, HTML Item, Image, Intersection (Tuple), Level Set, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Member, Member Children Set, Member Property, Named Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, Hierarchy Set, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Value Prompt
Applies to
Pie Chart, Pie Chart
Horizontal Alignment
Specifies how the contents of the selected object is aligned horizontally.
Applies to
Block, Category Axis, Chart Body, Chart Body, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Class, Conditional Block, Conditional Block, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Equation Label, Field Set, Gauge Labels, Legend, Legend, Legend Title, Legend Title, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, Note, Note Content, Page, Page Body, Page Footer, Page Header, Pie Labels, Repeater Table, Repeater Table Cell, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, X Axis, Y Axis
Hours Text
Specifies the title that appears above the hours box in interval prompts. The default title text is Hrs.
Applies to
Interval Prompt
HTML
Specifies the static text used as HTML.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Icon
Specifies the image used to identify the object in the control.
Applies to
Button, Button, Check Box, List Item, Radio Button, Tab
Applies to
Map
Applies to
Angular Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
Insert Text
Specifies the label that appears on the button that is used to add items to the selected items box in all multiple selection prompts. The default label text is Insert.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Value Prompt
Join Relationships
Specifies how to join the two queries.
Applies to
Join
Keywords Text
Specifies the title that appears above the keyword search box in select & search prompts. The default title text is Keywords.
Applies to
Select & Search Prompt
Label
Specifies the static text that defines the bookmark. The value used as the bookmark reference must match this value.
Applies to
Bookmark, Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, List Cell, List Column Body, List Column Title
Label
Specifies the class label for a local class.
Applies to
Class
Label
Specifies the class label for a global class. You cannot modify this label.
Applies to
Class
Label
Specifies the name of the no value list item.
Applies to
No Value List Item
Label
Specifies the name of the object in the control.
Applies to
Button, Button, Check Box, List Item, Radio Button, Tab
Label
Specifies whether a label is rendered for the baseline.
Applies to
Baseline, Baseline
Label
Specifies whether a label is rendered for the marker.
Applies to
Marker, Marker
Label
Specifies the label of the object.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Calculated Measure, Calculated Member, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Dimensional Edge Summary, Edge Summary, Explicit Member Set, Gauge Axis, Hierarchy Set, HTML Item, Image, Intersection (Tuple), Level Set, Line, List Cell, List Column Body, List Column Title, List Summary, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Measure, Member, Member Children Set, Member Property, Named Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Label Control
Controls how the labels in a chart are rendered.
Applies to
Category Axis, X Axis, Y Axis
Label Location
Specifies whether to show the label in the legend or in the chart.
Applies to
Marker, Scatter Marker
Labels
Specifies whether labels are rendered in the chart.
Applies to
Display Layer, Point Layer, Region Layer
Labels
Specifies whether labels are rendered.
Applies to
Pie Chart
Last Date
Specifies the latest date rendered in the control, and the last date that can be selected.
Applies to
Date & Time Prompt, Date Prompt
Left Position
Specifies the position of the left edge of the colored region.
Applies to
Colored Region
Applies to
Note
Applies to
Legend
Legend
Specifies whether the legend is rendered.
Applies to
3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Radar Chart, Scatter Chart
Legend
Specifies whether a legend is rendered and where the legend is positioned in a chart.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Legend Label
Specifies whether to render the baseline in the legend.
Applies to
Baseline, Baseline
Legend Separator
Specifies the separator to use between the legend entry and the value when you show values in the legend. The default is a comma (,) followed by a space.
Applies to
Legend
Legend Title
Specifies whether a legend title is rendered. This property applies only to legacy charts.
Applies to
Legend
Legend Title
Specifies whether a legend title is rendered in a chart.
Applies to
Legend, Legend
Level
Specifies a reference to a level. You cannot modify this value.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Level Set, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Member Property, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Level Indentation
Controls the indentation of the contents of node members in a crosstab.
Applies to
Crosstab Node Member
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Level Set, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
Line
Line Shape
Specifies the shape of a line in a line chart.
Applies to
Line
Line Style
Specifies the style, color, and weight of the line in a Pareto chart.
Applies to
Cumulation Line
Line Style
Specifies the style, color, and weight of the line.
Applies to
Category Baseline, Numeric Baseline, Trendline
Line Style
Specifies the style, color, and weight of the line. This property applies only to legacy charts.
Applies to
Line
Line Styles
Specifies the style, color, and weight of the line.
Applies to
Baseline, Baseline, Baseline, Baseline, Cumulation Line, Regression Line
Line Type
Specifies the type of line used to connect data values.
Applies to
Line
Applies to
Line
Applies to
Drop-Down List, List Box
Loss Color
Specifies a color, color gradient, or pattern to apply to the loss values.
Applies to
Win-Loss Chart
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Value Prompt
Applies to
Map
Map Drills
Controls the drill definitions in a map. It is possible to define different drill targets for each region or point.
Applies to
Point Layer, Region Layer
Margin
Specifies the margin properties for the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Date, Field Set, Gauge Chart, Gauge Chart, Hyperlink, Hyperlink Button, Image, List, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page, Page Break Text, Page Number, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Row Number, Scatter Chart, Scatter Chart, Table, Table of Contents, Table of Contents Entry, Text Item, Time, Variable Text Item, Win-Loss Chart
Marimekko Totals
Specifies whether to show totals for each column at the top of the chart.
Applies to
Marimekko Chart
Marker Color
Specifies a color for the target value markers in a metrics chart.
Applies to
Metrics Range Chart
Marker Color
Specifies the color of the markers.
Applies to
Marker, Marker
Marker Label
Specifies whether the label for the Target Marker will appear in the legend.
Applies to
Metrics Range Chart
Markers
Adds reference points to a chart based on numeric or statistical values, calculations, or layout calculations. This property applies only to legacy charts.
Applies to
Bubble Chart, Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Markers
Adds reference points to a chart based on numeric or statistical values, calculations, or layout calculations.
Applies to
Bubble Chart, Combination Chart, Pareto Chart, Progressive Chart, Scatter Chart
Marker Shape
Specifies the shape of the markers.
Applies to
Cumulation Line, Marker, Marker
Marker Shape
Specifies the shape of the marker symbol.
Applies to
Marker, Scatter Marker
Applies to
3-D Scatter Chart, Cumulation Line, Marker, Marker, Polar Chart, Radar Chart, Scatter Chart, Scatter Marker
Applies to
Bubble Chart, Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Applies to
3-D Combination Chart, 3-D Scatter Chart, Axis Title, Axis Title, Baseline, Baseline, Baseline, Baseline, Bubble Chart, Bubble Chart, Bullet Chart, Category Baseline, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Colored Region, Colored Region, Combination Chart, Combination Chart, Crosstab, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Gauge Chart, Gauge Chart, Label, Legend Title, Legend Title, List, Map, Marimekko Chart, Marker, Marker, Marker, Metrics Range Chart, Note, Note Content, Numeric Baseline, Page, Page Set, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Point Color Legend Title, Point Size Legend Title, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Region Color Legend Title, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Scatter Marker, Win-Loss Chart
Material Effects
Specifies a material effect, such as plastic or metallic.
Applies to
Bubble Chart, Combination Chart, Pareto Chart, Progressive Chart, Scatter Chart
Material Effects
Specifies a material effect, such as plastic or metallic, in a pie chart.
Applies to
Pie Chart
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart User Guide 715
Maximum Characters
Specifies the maximum number of characters to show before the text is truncated.
Applies to
Legend, Text Item
Applies to
Query
Maximum Hotspots
Specifies the maximum number of hotspots generated in a chart. If specified, this value overrides the hotspot configuration settings in IBM Cognos Administration.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Gauge Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart, Win-Loss Chart
Applies to
Query
Applies to
Point Size Measure
Maximum Tables
Specifies the maximum number of tables that the query can retrieve. An error is returned if the number of tables in the generated Cognos SQL exceeds the specified value. If no value is specified, no error is returned and there is no restriction on the number of tables that can be queried.
Applies to
Query
Applies to
Query
Applies to
Category Axis, Gauge Labels, Pie Labels, X Axis, Y Axis
Maximum Value
Specifies the maximum value for the numeric scale. If no value is specified, one will be calculated based on the data.
Applies to
Angular Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
MDX
The text of the typed-in MDX. It is assumed to be appropriate for the type and data source. If it is not the query may fail or produce unexpected results.
Applies to
MDX
Member
Specifies a reference to a member. You cannot modify this value.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Measure, Member, Member Children Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
Baseline, Category Baseline, Marker
Members
Specifies the members of the intersection (tuple).
Applies to
Intersection (Tuple)
Members
Specifies the members in the member set.
Applies to
Explicit Member Set
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, 718 IBM Cognos Report Studio
Chapter 26: Report Studio Object and Property Reference List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Measure, Member, Member Children Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Milliseconds Text
Specifies the title that appears above the milliseconds box in interval prompts. The default title text is ms.
Applies to
Interval Prompt
Applies to
Point Size Measure
Minimum Value
Specifies the minimum value for the numeric scale. If no value is specified, one will be calculated based on the data.
Applies to
Angular Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
Minor Gridlines
Specifies the properties of the minor gridlines in the gauge axis of a gauge chart.
Applies to
Gauge Axis
Minor Gridlines
Specifies the properties of the minor gridlines in a chart. This property applies only to legacy charts.
Applies to
Angular Axis, Category Axis, Cumulation Line Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Minor Gridlines
Specifies the properties of the minor gridlines in a chart.
Applies to
Category axis, Cumulation Line, Numeric Axis, Pareto Bars, Primary Axis, Primary Bottom Axis, Secondary Axis, Secondary Bottom Axis, X Axis, Y Axis
Minutes Text
Specifies the title that appears above the minutes box in interval prompts. The default title text is Mins.
Applies to
Interval Prompt
Multi-Line
Specifies whether to allow multi-line editing in the text control
Applies to
Text Box Prompt
Multi-Select
Specifies whether the control allows the selection of multiple values. Note that an associated parameterized filter expression will override this objects setting. If you edit this property but do not get the expected results, check the associated expression for the presence of an operator that specifies how many items can be selected. Examples of multiple selection operators are "in" and "not in"; examples of single selection operators are equal (=), less than (<) and greater than (>). For example, if you used the prompt wizard to create a parameterized filter expression and selected one of the operators that specify selection rules, changing the value of this property is not sufficient to change this restriction. You must also edit the filters expression to remove the offending operator. To edit a filter expression, you must select the filter, which is accessible from the Query view, using the Explorer bar.
Applies to
Data List Box, Date & Time Prompt, Date Prompt, Interval Prompt, List Box, Select & Search Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Name
Specifies the name of the object.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Calculated Measure, Calculated Member, Category Baseline, Chart Measure, Chart
Chapter 26: Report Studio Object and Property Reference Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Dimension, Dimensional Edge Summary, Edge Summary, Explicit Member Set, Fact, Gauge Axis, Hierarchy Set, HTML Item, Image, Intersection (Tuple), Level, Level Set, Line, List Cell, List Column Body, List Column Title, List Summary, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Measure, Member, Member Children Set, Member Property, Member Set, Named Set, Numeric Baseline, Page, Page Set, Point Measure, Point Size Measure, Query, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Variable, WinLoss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Name
Specifies a unique name that allows layout objects to be reused, usually to take advantage of any applied styling.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Button, Button Bar, Check Box Group, Combination Chart, Combination Chart, Crosstab, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Date & Time Prompt, Date Prompt, Deck, Drop-Down List, Field Set, Gauge Chart, Gauge Chart, Generated Prompt, HTML Item, Hyperlink, Hyperlink Button, Image, Interval Prompt, List, List Box, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Radio Button Group, Repeater, Repeater Table, Rich Text Item, Scatter Chart, Scatter Chart, Select & Search Prompt, Singleton, Tab Control, Table, Text Box Prompt, Text Item, Time Prompt, Toggle Button Bar, Tree Prompt, Value Prompt, Win-Loss Chart
Name
Specifies the unique name identifier for a query operation.
Applies to
Query Operation
Name
Specifies the unique name identifier for an SQL object.
Applies to
SQL
Name
Specifies the unique name identifier for an MDX object.
Applies to
MDX
Name
Specifies a unique name that allows layout objects to be reused, usually to take advantage of any applied formatting.
Applies to
Calculated Member, Key, Level Hierarchy, Member Hierarchy, Member Property
Applies to
Progressive Chart
Applies to
Axis Labels
No Data Contents
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.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Gauge Chart, Gauge Chart, List, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Table of Contents, Win-Loss Chart
Applies to
Map
Node Coordinate
Uniquely identifies a node member or spacer on an edge of a crosstab. Used by the Crosstab Intersection object to uniquely identify the intersection of elements from each edge. You cannot modify this value.
Applies to
Crosstab Node Member, Crosstab Space, Crosstab Summary
Note Border
Specifies the properties for the border of a note.
Applies to
Note
Notes
Specifies a block of text that you can position on a chart.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Notes
Specifies whether a note is rendered in a chart.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Note Text
Specifies the text that appears in a note within a chart. To edit the note text, you must switch to Page Design view (View > Page Design)
Applies to
Note, Note
Applies to
Data Drop-Down List, Data List Box, Drop-Down List, List Box
Applies to
Regression Line
Numbers Only
Specifies whether the Text Box Prompt allows numbers only.
Applies to
Text Box Prompt
Number Style
Specifies the style to use for page numbers.
Applies to
Page Number
Numerical Axis
Specifies whether the axis is rendered.
Applies to
3-D Combination Chart
Numerical Axis
Specifies whether the numeric axis of a gauge chart is rendered.
Applies to
Gauge Chart
Numeric Baselines
Adds reference lines on the numeric axis of a chart based on numeric or statistical values, calculations, or layout calculations.
Applies to
Bubble Chart, Combination Chart, Pareto Chart, Progressive Chart, Scatter Chart
Numeric Value
Specifies the numeric position by using a number.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker 724 IBM Cognos Report Studio
Numeric Value
Specifies the value of the numeric position.
Applies to
Marker
Options Text
Specifies the text for the additional prompt options link in select & search prompts. The default label text is Options.
Applies to
Select & Search Prompt
Orientation
Specifies the orientation of the control.
Applies to
Button Bar, Check Box Group, Data Button Bar, Data Check Box Group, Data Radio Button Group, Data Toggle Button Bar, Radio Button Group, Toggle Button Bar
Applies to
Query
Applies to
Crosstab Summary, List Cell, List Summary
Applies to
Query
Overrides
Specifies whether to override child objects. Before you can override child objects, they must have a name. User Guide 725
Applies to
Layout Component Reference
Padding
Specifies the space between the object and the margin. If there is a border then it specifies the space between the object and the border.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Block, Bubble Chart, Bubble Chart, Bullet Chart, Caption, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Gauge Chart, Gauge Chart, Hyperlink, Hyperlink Button, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page Body, Page Break Text, Page Footer, Page Header, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table Cell, Scatter Chart, Scatter Chart, Table Cell, Table of Contents, Table of Contents Entry, Text Item, Variable Text Item, Win-Loss Chart
Pagination
Specifies pagination rules, such as page breaks, keep-with properties, page counts, and numbering.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Crosstab Node Member, Crosstab Space, Gauge Chart, Gauge Chart, List, List Column, List Header, Map, Marimekko Chart, Metrics Range Chart, Page, Page Set, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Table, Win-Loss Chart
Palette
Specifies the palette to use for the chart. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Palette
Specifies the color palette for a chart.
Applies to
Area, Bar, Bubble Chart, Gauge Axis, Line, Pareto Chart, Pie Chart, Scatter Chart
Palette
Map layers use the numeric palette, in which the color of a region or point is based on its numeric value.
Applies to
Point Layer, Region Layer
Parameter
Specifies the parameter that is satisfied by values chosen in the prompt control.
Applies to
Date & Time Prompt, Date Prompt, Generated Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Pareto Axis
Specifies whether the axis is rendered.
Applies to
Pareto Chart
Applies to
Page
Percentile
Specifies a position based on a data percentile value. This value must be greater than zero.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker, Marker
Percent of Axis
Specifies a position based on a percentage along the numeric axis. This value must be greater than zero.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker, Marker
Performance Pattern
Controls what portions of the range markers for tolerance and target ranges are rendered on a metrics chart.
Applies to
Metrics Range Chart
Pie Labels
Specifies whether pie labels are rendered.
Applies to
Pie Chart
Applies to
Bubble Chart, Combination Chart, Pareto Chart, Progressive Chart, Scatter Chart
Point Shape
Specifies the shape of the markers. If you choose a value of series or category, the marker shape varies accordingly.
Applies to
3-D Scatter Chart, Bubble Chart, Polar Chart, Radar Chart, Scatter Chart
Polynomial Exponent
Specifies the highest exponential value to use in the regression calculation.
Applies to
Regression Line
Position
Specifies where to position the legend.
Applies to
Legend
Position
Specifies the position of a note in a chart.
Applies to
Equation Label, Note
Position in List
Specifies the position of the no list value item in the list.
Applies to
No Value List Item
Position type
Specifies the source type for the numeric position.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker
Position type
Specifies the type of numeric position on the X-axis. This property applies only to legacy charts.
Applies to
Marker
Position type
Specifies a type of numeric position.
Applies to
Marker
Applies to
Progressive Chart
Pre-populate
Specifies whether to pre-populate the control with values, but only if the parent of this prompt control is optional. This only applies to prompt controls that have a parent in a cascade.
Applies to
Tree Prompt, Value Prompt
Pre-populate Levels
Specifies the number of levels to pre-populate the prompt with. The default value is 1, which will pre-populate the prompt with only the root members.
Applies to
Tree Prompt
Pre-Sort
Sorts the data that is used by the query to produce a temporary cube when needed, such as for a crosstab against a relational data source. This property affects the default order of members of a level populated from the data item.
Applies to
Data Item
Processing
Specifies whether the query engine will pick up a minimal amount of processing. Local processing only occurs if the database cannot handle the load. This property applies only to dimensional, or OLAP, data sources.
Applies to
Query
Progressive Axis
Specifies whether the axis is rendered.
Applies to
Progressive Chart
Progressive Palette
Specifies the color palette in a progressive chart.
Applies to
Progressive Chart
Projection List
Shows the list of projected data items for the set operation. You can automatically generate the list or manually add data items.
Applies to
Query Operation
Properties
Specifies a list of data items from the query in scope to associate to the selected object. This is necessary when you want to reference a data item that is in the associated query, but not used in the layout. For more information, see the Report Studio Professional Authoring User Guide.
Applies to
Axis Title, Axis Title, Baseline, Baseline, Baseline, Baseline, Category Baseline, Chart Footer, Chart Footer, Chart Node Member, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Colored Region, Colored Region, Crosstab Node Member, Cumulation Label, Cumulation Line, Label, Legend Title, Legend Title, List, List Footer, List Header, Marker, Marker, Marker, Note, Note Content, Numeric Baseline, Page, Page Set, Point Color Legend Title, Point Size Legend Title, Region Color Legend Title, Regression Line, Repeater, Repeater Table, Scatter Marker, Select & Search Prompt, Singleton, Total Column, Total Column Label, Trendline Label, Value Prompt
Property
Specifies a reference to a member property. You cannot modify this value.
Applies to
Member Property
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Member Property, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Push To Bottom
Specifies whether to position the footer as low as possible inside the parent object.
Applies to
List Footer, List Page Footer
Query
Specifies a reference to a query. User Guide 731
Applies to
3-D Combination Chart, 3-D Scatter Chart, Axis Title, Axis Title, Baseline, Baseline, Baseline, Baseline, Bubble Chart, Bubble Chart, Bullet Chart, Category Baseline, Chart Footer, Chart Footer, Chart Subtitle, Chart Subtitle, Chart Title, Chart Title, Colored Region, Colored Region, Combination Chart, Combination Chart, Crosstab, Cumulation Label, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Gauge Chart, Gauge Chart, Label, Legend Title, Legend Title, List, Map, Marimekko Chart, Marker, Marker, Marker, Metrics Range Chart, Note Content, Numeric Baseline, Page, Page Set, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Point Color Legend Title, Point Size Legend Title, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Region Color Legend Title, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Scatter Marker, Select & Search Prompt, Singleton, Tree Prompt, Trendline Label, Value Prompt, WinLoss Chart
Radar Type
Specifies how the radar chart is rendered.
Applies to
Radar Chart
Radial Axis
Specifies whether the axis is rendered.
Applies to
Polar Chart, Radar Chart
Applies to
Radio Button Group
Range
Specifies whether this control accepts ranges. The setting of the associated parameterized expression for this property will override the setting of this object. If you edit this property but do not get the expected results, check the associated expression for the presence or absence of an in_range operator. For example, if you created this prompt control with the prompt wizard and set up an associated parameterized filter that accepts ranges, changing the value of this property is not sufficient to change this restriction. You must also edit the filters expression and remove the in_range operator. To edit a filter expression, you must select the filter, which is accessible from the Query view, using the Explorer bar.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Value Prompt
Range Label
Specifies whether the label for the Target Range will appear in the legend.
Applies to
Metrics Range Chart
Regression Line
Specifies whether a regression line is rendered. A regression line is a straight or curved line that best approximates the data points in the series.
Applies to
Bubble Chart, Scatter Chart
Regression Type
Specifies the type of regression used.
Applies to
Regression Line
Relative Alignment
Specifies how to vertically align this object, relative to its siblings.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Class, Combination Chart, Combination Chart, Context Item Text, Crosstab, Date, Date Prompt, Field Set, Gauge Chart, Gauge Chart, Hyperlink, Hyperlink Button, Image, List, List Summary, Map, Marimekko Chart, Metrics Range Chart, Page Break Text, Page Number, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Prompt Button, Radar Chart, Repeater Table, Row Number, Scatter Chart, Scatter Chart, Table, Text Box Prompt, Text Item, Time, Value Prompt, Variable Text Item, Win-Loss Chart
Remove Text
Specifies the label that appears on the button that is used to remove items from the selected items box in all multiple selection prompts. The default label text is Remove.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Value Prompt
Render
For list reports, specifies whether to render the column in the report output. Whether set to Yes or No, the query for the column is always executed.
Applies to
List Column
Applies to
Crosstab Space
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Gauge Chart, Gauge Chart, List, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Table of Contents, Win-Loss Chart
Render Variable
Specifies a variable based on which the object can be conditionally rendered.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Axis Labels, Axis Title, Block, Bubble Chart, Bubble Chart, Bullet Chart, Button, Button Bar, Category Baseline, Chart Footer, Chart Subtitle, Chart Text Item, Chart Title, Check Box Group, Colored Region, Colored Region, Combination Chart, Combination Chart, Context Item Text, Crosstab, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Date & Time Prompt, Date Prompt, Deck, Drop-Down List, Field Set, Gauge Chart, Gauge Chart, Generated Prompt, HTML Item, Hyperlink, Hyperlink Button, Image, Interval Prompt, Label, Legend, Legend Title, List, List Box, List Column, List Summary, Map, Marimekko Chart, Marker, Metrics Range Chart, Note, Numeric Baseline, Page, Page Break Text, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Radio Button Group, Repeater, Repeater Table, Repeater Table Cell, Rich Text Item, Scatter Chart, Scatter Chart, Scatter Marker, Select & Search Prompt, Singleton, Tab Control, Table, Table of
Chapter 26: Report Studio Object and Property Reference Contents, Table of Contents Entry, Text Box Prompt, Text Item, Time Prompt, Toggle Button Bar, Tree Prompt, Trendline, Value Prompt, Variable Text Item, Win-Loss Chart
Repeater Direction
Specifies the direction in which to populate the rendered repeater cells.
Applies to
Repeater Table
Report Expression
Specifies the report expression that defines the text to render.
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item, Total Column
Report Expression
Specifies the report expression used to define the HTML to render.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Report Expression
Specifies the report expression that defines the URL.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Report Expression
Specifies the report expression that defines the bookmark. The value used as the bookmark reference must match this value.
Applies to
Bookmark, Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, List Cell, List Column Body, List Column Title
Report Expression
Specifies the numeric position by using a report expression.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker
Report Expression
Specifies the report expression for the member position.
Applies to
Baseline, Marker
Report Expression
Specifies a report expression.
Applies to
As of Time Expression
Report Expression
Specifies the expression to evaluate when determining the value for this variable.
Applies to
Variable
Report Expression
Specifies the numeric position from a report expression.
Applies to
Marker
Required
Specifies whether the prompt is required or optional. If this property is set to required, the prompt must have a value entered before the report can be run. The Usage setting of the associated parameterized filter for this property will override the setting of this object. If you edit this property, but do not get the expected results, verify the Usage setting of the associated filter. For example, if you created this prompt control with the prompt wizard and set the associated parameterized filter to be optional, changing the value of this property is not sufficient to change this setting. You must also edit the filters Required property to match the setting for this objects Required property. To edit a filter expression, you must select the filter, which is accessible from the Query view, using the Explorer bar.
Applies to
Date & Time Prompt, Date Prompt, Generated Prompt, Interval Prompt, Select & Search Prompt, Text Box Prompt, Time Prompt, Tree Prompt, Value Prompt
Applies to
Select & Search Prompt, Tree Prompt, Value Prompt
Applies to
Select & Search Prompt, Tree Prompt, Value Prompt
Results Text
Specifies the title that appears above the results box in select & search prompts. The default title text is Results.
Applies to
Select & Search Prompt
Applies to
Category axis
Right Position
Specifies the position of the right edge of the colored region.
Applies to
Colored Region
Applies to
Legend
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Gauge Axis, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Rollup Processing
Specifies where to compute aggregates. The Extended setting means that aggregates are computed using an extended aggregate operation. The Database setting means that aggregates are computed by the database software. The Local setting means that aggregates are computed by the data retrieval software in the report server, using a running aggregate.
Applies to
Query
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Gauge Axis, Hierarchy Set, HTML Item, Image, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Rotate Values
Controls whether or not the values displayed on the chart are rotated when the Chart Orientation property is set to Horizontal. May help make values easier to read on horizontal charts. This property applies only to legacy charts.
Applies to
Combination Chart, Pareto Chart, Progressive Chart
Row Coordinate
Uniquely identifies the row of a node member or spacer on an edge of the crosstab. You cannot modify this value.
Applies to
Crosstab Intersection
Applies to
Crosstab, List, Repeater, Select & Search Prompt, Tree Prompt, Value Prompt
Scale
Specifies whether the numeric scale is logarithmic or linear.
Applies to
Angular Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
Scale Interval
Specifies the interval between ticks on the numeric scale. If no value is specified, one will be calculated based on the data.
Applies to
Angular Axis, Cumulation Line Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
Scope
Specifies the scope of the filter in terms of the number of levels.
Applies to
Summary Filter
Applies to
Select & Search Prompt
Search Text
Specifies the label that appears on the Search button in select & search prompts. The default label text is Search.
Applies to
Select & Search Prompt
Seconds Text
Specifies the title that appears above the seconds box in interval prompts. The default title text is s.
Applies to
Interval Prompt
Select UI
Specifies which interface the prompt control renders.
Applies to
Date & Time Prompt, Date Prompt, Time Prompt, Value Prompt
Separator
Specifies the separator to use when showing multiple values.
Applies to
Context Item Text, Legend
Series Color
Specifies whether data marker colors are synchronized between charts when you use the same data series for multiple charts within a combination chart. For example, if you create a line chart and a bar chart using the countries data series, and you set this property to Yes, the data marker for Sweden is the same color in both charts. Use this property to eliminate redundant legend entries and help you interpret the data.
Applies to
3-D Combination Chart, Combination Chart, Combination Chart
Series Type
Specifies how the series will be rendered; for example, absolute, stacked, or stacked 100%.
Applies to
Area, Bar, Line
Set Operation
Specifies the set operation to apply to one or more queries, that results in a projection list on which other queries can be based.
Applies to
Query Operation
Set Sorting
Specifies how the set is sorted. By default, the set is not sorted.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Default Measure, Default Measure, Explicit Member Set, Gauge Axis, Hierarchy Set, HTML Item, Image, Level Set, Line, List Cell, List Column Body, List Column Title, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Member Children Set, Named Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Button, Button Bar, Check Box Group, Combination Chart, Combination Chart, Crosstab, Data Button Bar, Data Check Box Group, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Drop-Down List, Gauge Chart, Gauge Chart, List, List Box, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Radio Button Group, Scatter Chart, Scatter Chart, Tab Control, Toggle Button Bar
Applies to
List, Repeater, Repeater Table
Show Caption
Specifies whether, or where, to show the caption.
Applies to
Field Set
Applies to
Line
Applies to
Point Layer, Region Layer
Applies to
Point Layer, Region Layer
Show Feelers
Specifies whether feeler lines are rendered for each marker.
Applies to
3-D Scatter Chart
Show Hover
Specifies whether to highlight areas in the chart that are selectable.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Gauge Chart, Gauge Chart, List, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart
Show Icon
When defined, specifies whether to show the icon for each list item in the drop down list.
Applies to
Data Drop-Down List, Drop-Down List
Applies to
Legend
Show line
Specifies whether a line may be rendered. This allows you to show markers without lines.
Applies to
Line
Show Values
Specifies which values to show in a chart legend.
Applies to
Legend
Show Values
Specifies the appearance of data labels in area, bar, line, Pareto, and progressive charts.
Applies to
Area, Bar, Line, Pareto Chart, Progressive Chart
Show Values
Specifies whether to show the labels for the data markers on the cumulation line in a Pareto chart.
Applies to
Cumulation Line
Show Values
Specifies the appearance of data labels in a pie chart.
Applies to
Pie Chart
Show Values
Specifies the appearance of data labels in a scatter chart.
Applies to
Scatter Chart
Show Values
Specifies the appearance of data labels in a bubble chart.
Applies to
Bubble Chart
Size
Specifies the height and width of the control.
Applies to
Button, Data Deck, Data Drop-Down List, Data List Box, Data Tab Control, Deck, Drop-Down List, List Box, Tab Control
Applies to
Block, Class, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Field Set, Hyperlink, Hyperlink Button, Image, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Note, Page, Page Body, Page Break Text, Page Footer, Page Header, Prompt Button, Repeater Table, Repeater Table Cell, Table, Table Cell, Table of Contents, Table of Contents Entry, Text Box Prompt, Text Item, Tree Prompt, Value Prompt, Variable Text Item, Win-Loss Chart
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Gauge Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart
Applies to
Point Layer
Slice Direction
Specifies the direction in which slices appear in a pie chart.
Applies to
Pie Chart
Applies to
Data Deck, Deck
Solve Order
Specifies the solve order in the crosstab. The item with the lowest solve order value is calculated first, followed by the next lowest value, and so on. For identical values, column items are calculated first, then row items, and then the measure.
Applies to
Crosstab Summary
Solve Order
Specifies the solve order in crosstabs and charts. The item with the lowest solve order value is calculated first, followed by the next lowest value, and so on. For identical values, in crosstabs, column items are calculated first, then row items, and then the measure. In charts, x-axis items are calculated first and then legend items.
Applies to
Calculated Measure, Calculated Member, Data Item, Dimensional Edge Summary, Edge Summary
Sorting
Specifies the desired sort sequence.
Applies to
Chart Node Member, Crosstab Node Member, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Level, Select & Search Prompt, Tree Prompt, Value Prompt
Source Type
Specifies the source type of the text.
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item
Source Type
Specifies the source type of the HTML text.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, HTML Item, List Cell, List Column Body, List Column Title, Rich Text Item
Source Type
Specifies the source type of the URL.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Source Type
Specifies the source type of the bookmark.
Applies to
Bookmark, Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, List Cell, List Column Body, List Column Title
Applies to
Block, Class, Conditional Block, Conditional Block, Context Item Text, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Hyperlink, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Page Body, Page Break Text, Page Footer, Page Header, Repeater Table Cell, Table Cell, Table of Contents, Table of Contents Entry, Text Item, Variable Text Item
Spider Effects
Specifies whether the chart is rendered with web-like flat concentric circles. The Radial Axis property must be set to Show for this property to take effect.
Applies to
Polar Chart, Radar Chart
SQL
The text of the typed-in SQL. It is assumed to be appropriate for the type and data source. If it is not the query may fail, or produce unexpected results. User Guide 747
Applies to
SQL
Applies to
Query
SQL Syntax
Specifies the syntax of the SQL in the query. A value of Cognos SQL indicates that IBM Cognos extended SQL-92 syntax is used. A value of Native SQL indicates that native database SQL is used. You cannot use Cognos SQL if the Processing property for the query is set to Database Only; it must have a value of Limited Local. A value of Pass-Through indicates that a standalone query text syntax is used. The default value is Native SQL.
Applies to
SQL
Standard Deviations
Specifies a distance from the mean in standard deviations. This value can be positive or negative. A value of zero indicates the mean value.
Applies to
Baseline, Baseline, Baseline, Baseline, Marker, Marker
Start Position
Specifies the position of one edge of the colored region along the numeric axis. The region extends from the position defined in this property to the position defined in the End Position property. The value that you specify in this property must be less than the value that is specified in the End Position property.
Applies to
Colored Region
Static Choices
Represents a collection of static choices used by the prompt object.
Applies to
Select & Search Prompt, Value Prompt
Style Variable
Specifies a variable based on which the object can be conditionally styled.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Angular Measure, Axis Title, Block, Bubble Chart, Bubble Measure, Caption, Category Axis, Chart Body, Chart Footer, Chart Subtitle, Chart Text Item, Chart Title, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Cumulation Line Axis, Date & Time Prompt, Date Prompt, Default Measure, Display Layer, Field Set, Gauge Chart, Gauge Labels, Gauge Numerical Axis, Hyperlink, Hyperlink Button, Image, Interval Prompt, Legend, Legend Title, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note Content, Numerical Axis, Numerical Axis, Page, Page Body, Page Break Text, Page Footer, Page Header, Pareto Chart, Pie Chart, Pie Labels, Point Layer, Point Measure, Point Size Measure, Polar Chart, Progressive Chart, Prompt Button, Radar Chart, Radial Axis, Radial Measure, Region Layer, Region Measure, Repeater Table, Repeater Table Cell, Scatter Chart, Select & Search Prompt, Table, Table Cell, Table of Contents, Table of Contents Entry, Table Row, Target Measure, Text Box Prompt, Text Item, Time Prompt, Tolerance Measure, Tree Prompt, Value Prompt, Win-Loss Chart, X Axis, X Axis, X Axis Measure, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Y Axis Measure, Z Axis, Z Axis, Z Axis Measure
Subtitle
Specifies whether a chart subtitle is rendered. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart, Win-Loss Chart
Subtitle
Specifies whether a chart subtitle is rendered.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Pie Chart, Progressive Chart, Scatter Chart
Applies to
Combination Chart, Pareto Chart
Applies to
Pie Chart
Summary Text
Specifies summary text for table-like objects. Use to make your reports accessible for people who use screen readers. The summary text is never displayed in visual Web browsers. Summary text is used only for screen readers and speech browsers.
Applies to
Crosstab, List, Repeater Table, Table
Suppress
For SAP BW and DB2 OLAP data sources, specifies the type of suppression to apply to the query results. This property overrides the corresponding governor in the model. If unspecified, the value of the governor in the model is used.
Applies to
Query
Suppression
Specifies zero suppression options for the object.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Crosstab, Data Button Bar, Data Check Box Group, Data Deck, Data Drop-Down List, Data List Box, Data Radio Button Group, Data Tab Control, Data Toggle Button Bar, Gauge Chart, Gauge Chart, List, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Repeater, Repeater Table, Scatter Chart, Scatter Chart, Win-Loss Chart
Table Header
Specifies whether the cell is a table header. Use to make reports accessible for people who use screen readers. When set to Yes, screen readers and speech browsers programmatically create relationships between the table header and table cells.
Applies to
Table Cell
Table of Contents
Specifies the name of the table of contents to which the entry belongs.
Applies to
Table of Contents Entry
Applies to
Table of Contents
Table Properties
Specifies the properties for the table object.
Applies to
Class, Crosstab, List, Repeater Table, Table
Tab Orientation
Specifies the orientation of the tabs in the tab control.
Applies to
Data Tab Control, Tab Control
Tabs Definition
Defines the tabs in the tab control.
Applies to
Tab Control
Tab Width
Specifies the width of tabs in the tab control.
Applies to
Data Tab Control, Tab Control
Target Color
Specifies a color for the vertical lines that mark the target ranges for target measure values in a metrics chart.
Applies to
Metrics Range Chart
Target Marker
Specifies whether the status indicators will appear in the legend.
Applies to
Metrics Range Chart
Applies to
Metrics Range Chart
Applies to
Metrics Range Chart
Applies to
Metrics Range Chart
Text
Specifies the static text to render.
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item, Total Column
Text Color
Specifies the color of the text of each label.
Applies to
Check Box Group, Data Check Box Group, Data Radio Button Group, Radio Button Group
Applies to
Block, Class, Conditional Block, Conditional Block, Context Item Text, Crosstab, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, Hyperlink, List, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, List Summary, Page, Page Body, Page Break Text, Page Footer, Page Header, Repeater Table, Repeater Table Cell, Table, Table Cell, Table of Contents, Table of Contents Entry, Text Item, Variable Text Item
Text Orientation
Specifies the orientation of the text on the gauge axis.
Applies to
Gauge Axis
Applies to
Chart Node Member, Chart Text Item, Chart Text Item, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Cumulation Line Label, Hyperlink, Hyperlink Button, List Cell, List Column Body, List Column Title, Text Item
Text Truncation
Specifies whether and how legend items are truncated.
Applies to
Axis Labels, Legend
Title
Specifies whether a chart title is rendered. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart, Win-Loss Chart
Title
Specifies whether a chart title is rendered.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Bubble Chart, Bullet Chart, Combination Chart, Combination Chart, Gauge Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Scatter Chart, Scatter Chart
Tolerance Color
Specifies a color for the vertical lines that mark the tolerance ranges for target measure values in a metrics chart.
Applies to
Metrics Range Chart
Tolerance Label
Specifies whether the label for the Target Tolerance will appear in the legend.
Applies to
Metrics Range Chart
Tooltips
Specifies whether tooltips are shown in a chart when you hover over data elements.
Applies to
Bubble Chart, Bullet Chart, Combination Chart, Gauge Chart, Pareto Chart, Progressive Chart, Scatter Chart
Tooltips
Specifies whether tooltips are shown in a pie chart when you hover over data elements.
Applies to
Pie Chart
Tooltips
Specifies whether tooltips are shown in the chart when you hover over data elements. Tooltips are not supported in PDF documents. This property applies only to legacy charts.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Bubble Chart, Combination Chart, Gauge Chart, Map, Marimekko Chart, Metrics Range Chart, Pareto Chart, Pie Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart, Win-Loss Chart
Applies to
Colored Region
Applies to
Legend
Total Column
Specifies whether a total column is rendered. This property applies only to legacy charts.
Applies to
Progressive Chart
Total Column
Specifies whether a bar that shows the total cumulative value is rendered.
Applies to
Progressive Chart
Applies to
Total Column
To Text
Specifies the label that appears beside the end of a range. This property applies to the following prompt types: date, date & time, time, and interval. The default label text is To.
Applies to
Date & Time Prompt, Date Prompt, Interval Prompt, Text Box Prompt, Time Prompt, Value Prompt
Trendline Label
Specifies whether to show the default label for the trend line. When set to No, you can type your own label text.
Applies to
Trendline
Trendlines
Adds a trend line or curve that indicates the general direction of the data over time.
Applies to
Bubble Chart, Combination Chart, Scatter Chart
Truncation
Specifies whether labels can be truncated.
Applies to
Category Axis, Gauge Labels, Pie Labels, X Axis, Y Axis
Truncation Text
Specifies the text to append when a label is truncated.
Applies to
Category Axis, Gauge Labels, Legend, Pie Labels, X Axis, Y Axis
Type
Specifies the type of variable.
Applies to
Variable
Type
Specifies the type of trend line.
Applies to
Trendline
Type
Specifies the behavior of the prompt button.
Applies to
Prompt Button
Type
Specifies the type of object.
Applies to
Angular Measure, Area, Bar, Baseline, Baseline, Baseline, Baseline, Bubble Measure, Bubble Measure, Bullet Measure, Calculated Measure, Calculated Member, Category Baseline, Chart Measure, Chart Node Member, Chart Text Item, Chart Text Item, Color by Value Measure, Colored Region, Colored Region, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Cumulation Line Label, Data Item, Default Measure, Default Measure, Dimensional Edge Summary, Edge Summary, Explicit Member Set, Gauge Axis, Hierarchy Set, HTML Item, Image, Intersection (Tuple), Level Set, Line, List Cell, List Column Body, List Column Title, List Summary, Map Location, Map Location, Map Refinement Location, Map Refinement Location, Marker, Marker, Measure, Member, Member Children Set, Member Property, Named Set, Numeric Baseline, Point Measure, Point Size Measure, Radial Measure, Region Measure, Rich Text Item, Scatter Marker, Set Expression, Target Measure, Target Measure, Text Item, Tolerance Measure, Total Column, Win-Loss Measure, X Axis Measure, Y Axis Measure, Z Axis Measure
Applies to
Metrics Range Chart
URL
Specifies the URL, using static text.
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Applies to
Chart Node Member, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Space, Hyperlink, Hyperlink Button, Image, List Cell, List Column Body, List Column Title
Usage
Specifies whether the usage of this object is Optional, Required, or Disabled. When Optional, this condition applies if all parameters referenced by the expression are provided with values. If the expression does not refer to any parameters, then this condition is always applied. When Disabled, this condition is never applied, which is useful for authoring and testing purposes.
Applies to
Detail Filter, Summary Filter
Applies to
Query
Applies to
Query
Applies to
Text Item
Applies to
Query
Applies to
Query
Applies to
Query
Applies to
Angular Axis, Gauge Numerical Axis, Numerical Axis, Numerical Axis, Radial Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Z Axis, Z Axis
Applies to
Query
Applies to
Dimensional Edge Summary, Edge Summary
Applies to
Query
Applies to
Query
Applies to
Text Box Prompt
Use Value
Specifies the values used by the prompt object.
Applies to
Tree Prompt
Use Value
Specifies the values used by the prompt object. These values can be different than the ones that are rendered to the user.
Applies to
Select & Search Prompt, Value Prompt
Value Location
Specifies where values and labels are to be rendered in the chart. This property applies only to legacy charts.
Applies to
Area, Bar, Bubble Chart, Combination Chart, Cumulation Line, Line, Metrics Range Chart, Pareto Chart, Polar Chart, Progressive Chart, Radar Chart, Scatter Chart
Value Markers
Specifies whether to show special value markers and how they are formatted.
Applies to
Line
Value Representation
Specifies whether values are rendered as percentages.
Applies to
Pie Chart
Values
Specifies what values to show in the chart and whether to show the corresponding measure, series, or category label.
Applies to
3-D Scatter Chart, Bubble Chart, Polar Chart, Scatter Chart
Values
Specifies whether values are rendered in the chart.
Applies to
3-D Area, 3-D Bar, 3-D Line, Area, Bar, Cumulation Line, Line, Marimekko Chart, Pareto Chart, Point Layer, Progressive Chart, Radar Chart, Region Layer
Values
Specifies whether values are rendered.
Applies to
Pie Chart
Value Type
Specifies whether absolute values are rendered rather than cumulative values.
Applies to
Area, Bar, Line
Vertical Alignment
Specifies how objects contained in this object are vertically aligned.
Applies to
Class, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, Page Body, Page Footer, Page Header, Repeater Table Cell, Table Cell, Table Row
Visible
Specifies whether a column or row is visible when the report is executed.
Applies to
Crosstab Node Member, Crosstab Space, Crosstab Summary
Visible
Specifies whether to display the object. When set to No, the object is hidden but a fixed space is reserved in the report.
Applies to
3-D Combination Chart, 3-D Scatter Chart, Angular Axis, Axis Title, Block, Bubble Chart, Bubble Chart, Bullet Chart, Category Axis, Chart Footer, Chart Subtitle, Chart Title, Class, Combination Chart, Combination Chart, Conditional Block, Conditional Block, Context Item Text, Crosstab, Cumulation Line Axis, Date & Time Prompt, Date Prompt, Field Set, Gauge Chart, Gauge Chart, Gauge Labels, Gauge Numerical Axis, Hyperlink, Image, Interval Prompt, Legend, Legend Title, List, List Summary, Map, Marimekko Chart, Metrics Range Chart, Note Content, Numerical Axis, Numerical Axis, Page Break Text, Pareto Chart, Pareto Chart, Pie Chart, Pie Chart, Pie Labels, Polar Chart, Progressive Chart, Progressive Chart, Radar Chart, Radial Axis, Repeater Table, Scatter Chart, Scatter Chart, Select & Search Prompt, Table, Table of Contents, Table of Contents Entry, Text Box Prompt, Text Item, Time Prompt, Tree Prompt, Value Prompt, Variable Text Item, Win-Loss Chart, X Axis, X Axis, Y1 Axis, Y2 Axis, Y Axis, Y Axis, Z Axis, Z Axis
Visual Angle
Specifies the angle, in degrees, in which the chart objects will be displayed when the chart has 3-D effects. This property applies only to legacy charts.
Applies to
Combination Chart, Marimekko Chart, Metrics Range Chart, Pareto Chart, Progressive Chart
White Space
Specifies whether the text in the object is wrapped or appears all on one line. The term white space refers to the characters at which text can be wrapped, the spaces between words. The default for this property is to wrap text.
Applies to
Block, Class, Conditional Block, Conditional Block, Crosstab Columns, Crosstab Columns, Crosstab Corner, Crosstab Fact Cells, Crosstab Intersection, Crosstab Member Fact Cells, Crosstab Node Member, Crosstab Rows, Crosstab Rows, Crosstab Space, Crosstab Summary, List Cell, List Column, List Column Body, List Columns, List Columns, List Columns Body Style, List Columns Title Style, List Column Title, List Footer, List Header, List Row, List Row Cells Style, Page Body, Page Footer, Page Header, Repeater Table Cell, Table Cell, Table of Contents, Table of Contents Entry
Width (px)
Specifies the width of the note, in pixels.
Applies to
Note
Win Color
Specifies a color, color gradient, or pattern to apply to the win values.
Applies to
Win-Loss Chart
Win-Loss Threshold
Specifies the win-loss value in a win-loss chart. It represents values that are ties, which are mapped on the zero line.
Applies to
Win-Loss Chart
X Axis
Specifies whether the axis is rendered.
Applies to
3-D Combination Chart, Bubble Chart, Scatter Chart
Applies to
Scatter Marker
Y1 Axis
Specifies whether the axis is rendered.
Applies to
Combination Chart, Metrics Range Chart
Y2 Axis
Specifies whether the axis is rendered.
Applies to
Combination Chart
Y2 Axis Position
Specifies how the second Y axis is rendered. When Y2 Axis Position is set to Dual, the Y2 axis appears across from the Y1 numeric axis. When Y2 Axis Position is set to Bipolar, the Y2 axis appears below the Y1 axis. For example, in a combination chart showing Revenue and Quantity sold by Retailer type, with the Y2 Axis Position set to Dual, the Revenue columns and the Quantity sold line overlap because the Revenue axis (Y1) and the Quantity sold axis (Y2) are across from each other. However, with the Y2 Axis Position set to Bipolar, the Revenue columns appear above the Quantity sold line, and the data does not overlap. This property applies only to legacy charts.
Applies to
Combination Chart
Y Axis
Specifies whether the axis is rendered.
Applies to
3-D Combination Chart, Bubble Chart, Marimekko Chart, Scatter Chart
Applies to
Scatter Marker
Calendar Type
Specifies the type of calendar to be displayed. The date values will be mapped to the selected calendar before being formatted. The default value is inherited from the user's content language. Note that the Japanese Imperial setting is only applicable for Japanese languages.
Clock
Specifies whether to display the time in 12-hour or 24-hour format. The default value is inherited from the user's content language.
Currency
Specifies the currency to be used. The default currency symbol will be displayed unless the values of the Currency Display and Currency Symbol properties are changed. The default value is inherited from the model.
Currency Display
Specifies whether to display the international or local currency symbol. By default, the local currency symbol is displayed.
Currency Symbol
Specifies a character or characters to use as the symbol to identify the local currency. This symbol will precede the number and any sign, even if it is a leading sign. A space between the symbol and the numeric value can be specified by entering it in this property, after the symbol. The default value is inherited from the user's content language.
Date Ordering
Specifies the order in which to display the day, month, and year. The default value is inherited from the user's content language.
Date Separator
Specifies the character to be displayed between the year, month, and day. The default value is inherited from the user's content language.
Date Style
Specifies the date style. The results rendered are determined by the language. Generally, Short uses only numbers, Medium uses some abbreviated words, Long uses complete words, and Full includes all available details.
Decimal Separator
Specifies the character that will separate non-decimal numbers from decimals. This property is ignored if no decimals are displayed. The default value is inherited from the user's content language.
Display AM / PM Symbols
Specifies whether to display the AM or PM symbols. The default value is inherited from the user's content language.
Display As Exponent
Specifies whether to render values in scientific notation, using exponents. If this property is set to No, scientific notation will not be used. If this property is not specified, scientific notation will be used only when values exceed the maximum number of digits. The default value is inherited from the user's content language.
Display Days
Specifies whether to display the day. The format of the day can be controlled by selecting one of the specific formats. Selecting Julian means that the 3-digit day of the year will be displayed. The default value is inherited from the user's content language.
Display Eras
Specifies whether to display the era. The default value is inherited from the user's content language.
Display Hours
Specifies whether to display the hours. The default value is inherited from the user's content language.
Display Milliseconds
Specifies whether to display the milliseconds. The format of the milliseconds can be controlled by selecting one of the specific formats. This property is ignored if seconds are not displayed. The default value is inherited from the user's content language.
Display Minutes
Specifies whether to display the minutes. The format of the minutes can be controlled by selecting one of the specific formats. The default value is inherited from the user's content language.
Display Months
Specifies whether to display the month. The format of the month can be controlled by selecting one of the specific formats. The default value is inherited from the user's content language.
Display Months
Specifies whether to display the month.
Display Seconds
Specifies whether to display the seconds. The format of the seconds can be controlled by selecting one of the specific formats. The default value is inherited from the user's content language.
Display Weekdays
Specifies whether to display the weekday. The format of the weekday can be controlled by selecting one of the specific formats. The default value is inherited from the user's content language.
Display Years
Specifies whether to display the year. The first two digits of the year, which indicate the century, can be controlled by selecting one of the associated property values. The default value is inherited from the user's content language.
Display Years
Specifies whether to display the year.
Exponent Symbol
Specifies the character to be displayed to identify exponents if the scientific notation is used. The symbol will be rendered after the number, separated by a space. The default value is inherited from the user's content language.
Mantissa (digits)
Specifies the number of digits to be displayed following the exponent symbol if the scientific notation is used.
Negative Pattern
Specifies a presentation format, based on patterns, for negative numbers. Some restrictions exist. The numerical part of the negative pattern is ignored. Only the suffix and the prefix are used. For example, in the pattern ABC#,##0.#EFG, ABC is the prefix, EFG is the suffix and #,##0.# is the numerical part of the pattern.
Padding Character
Specifies the character that will be used to pad values that have fewer digits than the minimum number of digits. The default value is inherited from the user's content language.
Pattern
Specifies a presentation format that is based on patterns. The pattern format overrides formats specified in other properties. For example, to format the date as 2009/12/31 23:59:59 PM, use the pattern yyyy/mm/dd hh:mm:ss aa. For example, to format thousands using the letter K, set the Format Type to Number, set the Scale to -3 (to remove 000), and then use the pattern to ####K.
Percentage Symbol
Specifies whether to display the values per hundred (percent) or per thousand. The symbol will be appended to the number and any trailing sign. A space between the numeric value and the symbol can be specified by entering it in this property, after the symbol. The default value is inherited from the user's content language.
Scale
Specifies how many digits to move the decimal delimiter for formatting purposes. For example, move the decimal three spaces to present values in thousands. The default value is inherited from the database field.
Thousands Separator
Specifies how to delimit digit groups, such as thousands. This property is only used if the Use Thousands Separator property is set to Yes. The default value is inherited from the user's content language.
Time Separator
Specifies the character to be displayed between the hour, minute, and second. The default value is inherited from the user's content language.
Time Style
Specifies the time style to be displayed. The exact results that will be rendered are determined by the language. Generally, Short means that the minimum details will be displayed, Long adds seconds, and Full means that all details are displayed, including the time zone. The default value is inherited from the user's content language.
Time Unit
Specifies the unit of measure of the value. This property will be ignored if any day or time components are shown. The default value is inherited from the user's content language.
773
Operators
Operators specify what happens to the values on either side of the operator. Operators are similar to functions, in that they manipulate data items and return a result.
(
Identifies the beginning of an expression.
Syntax
( expression )
)
Identifies the end of an expression.
Syntax
( expression )
*
Multiplies two numeric values.
Syntax
value1 * value2
,
Separates expression components.
Syntax
expression ( parameter1, parameter2 )
/
Divides two numeric values.
Syntax
value1 / value2
||
Concatenates, or joins, strings.
Syntax
string1 || string2
+
Adds two numeric values.
Syntax
value1 + value2
Syntax
value1 - value2 or - value
<
Compares the values that are represented by "value1" against "value2" and retrieves the values that are less than "value2".
Syntax
value1 < value2
<=
Compares the values that are represented by "value1" against "value2" and retrieves the values that are less than or equal to "value2".
Syntax
value1 <= value2
<>
Compares the values that are represented by "value1" against "value2" and retrieves the values that are not equal to "value2".
Syntax
value1 <> value2
=
Compares the values that are represented by "value1" against "value2" and retrieves the values that are equal to "value2".
Syntax
value1 = value2
>
Compares the values that are represented by "value1" against "value2" and retrieves the values that are greater than "value2".
Syntax
value1 > value2
->
Separates the components in a literal member expression.
Syntax
[namespace].[dimension].[hierarchy].[level]->[L1]
>=
Compares the values that are represented by "value1" against "value2" and retrieves the values that are greater than or equal to "value2".
Syntax
value1 >= value2
and
Returns "true" if the conditions on both sides of the expression are true.
Syntax
argument1 and argument2
auto
Works with summary expressions to define the scope to be adjusted based on the grouping columns in the query. The scope is context-dependent.
Syntax
aggregate_function ( expression AUTO )
between
Determines if a value falls in a given range.
Syntax
expression between value1 and value2
Example
[Revenue] between 200,000 and 300,000
Result: Returns the number of results with revenues between 200,000 and 300,000. Revenue ---$332,986,338.06 $230,110,270.55 $107,099,659.94 Between ---false true false
case
Works with when, then, else, and end. Case identifies the beginning of a specific situation, in which when, then, and else actions are defined.
Syntax
case expression { when expression then expression } [ else expression ] end
contains
Determines if "string1" contains "string2".
Syntax
string1 contains string2
currentMeasure
Keyword that can be used as the first argument of member summary functions. This function appears in the Total Revenue by Country sample report in the GO Data Warehouse (query) package.
Syntax
aggregate_function ( currentMeasure within set expression )
default
Works with the lookup construct.
Syntax
lookup (....) in (....) default (....)
distinct
A keyword used in an aggregate expression to include only distinct occurrences of values. See also the function unique.
Syntax
distinct dataItem
Example
count ( distinct [OrderDetailQuantity] )
Result: 1704
else
Works with the if or case constructs. If the if condition or the case expression are not true, then the else expression is used. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
if ( condition ) then .... else ( expression ) , or case .... else ( expression ) end
end
Indicates the end of a case or when construct.
Syntax
case .... end
ends with
Determines if "string1" ends with "string2".
Syntax
string1 ends with string2
for
Works with summary expressions to define the scope of the aggregation in the query.
Syntax
aggregate_function ( expression for expression { , expression } )
for all
Works with summary expressions to define the scope to be all the specified grouping columns in the query. See also the for clause.
Syntax
aggregate_function ( expression for ALL expression { , expression } )
for any
Works with summary expressions to define the scope to be adjusted based on a subset of the grouping columns in the query. Equivalent to the for clause.
Syntax
aggregate_function ( expression for ANY expression { , expression } )
for report
Works with summary expressions to set the scope to be the whole query. See also the for clause. This function appears in the Customer Returns and Satisfaction sample report in the GO Data Warehouse (analysis) package.
Syntax
aggregate_function ( expression for report )
if
Works with the then and else constructs. If defines a condition; when the if condition is true, the then expression is used. When the if condition is not true, the else expression is used. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
if ( condition ) then ( expression ) else ( expression )
in
Determines if "expression1" exists in a given list of expressions.
Syntax
expression1 in ( expression_list )
in_range
Determines if "expression1" exists in a given list of constant values or ranges.
Syntax
expression1 in_range { constant : constant [ , constant : constant ] }
Example 1
[code] in_range { 5 }
Example 2
[code] in_range { 5: }
Example 3
[code] in_range { :5 }
Example 4
[code] in_range { 5:10 }
Example 5
[code] in_range { :5,10,20: }
is missing
Determines if "value" is undefined in the data.
Syntax
value is missing
is null
Determines if "value" is undefined in the data.
Syntax
value is null
is not missing
Determines if "value" is defined in the data.
Syntax
value is not missing
is not null
Determines if "value" is defined in the data.
Syntax
value is not null
like
Determines if "string1" matches the pattern of "string2".
Syntax
string1 LIKE string2
lookup
Finds and replaces data with a value you specify. It is preferable to use the case construct.
Syntax
lookup ( name ) in ( value1 --> value2 ) default ( expression )
Example
lookup ( [Country]) in ( 'Canada'--> ( [List Price] * 0.60), 'Australia'--> ( [List Price] * 0.80 ) ) default ( [List Price] )
not
Returns TRUE if "argument" is false or returns FALSE if "argument" is true.
Syntax
NOT argument
or
Returns TRUE if either of "argument1" or "argument2" are true.
Syntax
argument1 or argument2
prefilter
Performs a summary calculation before applying the summary filter.
Syntax
summary ([expression] prefilter)
rows
Counts the number of rows output by the query. Use with Count ().
Syntax
count ( ROWS )
starts with
Determines if "string1" starts with "string2".
Syntax
string1 starts with string2
then
Works with the if or case constructs. When the if condition or the when expression are true, the then expression is used. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
if ( condition ) then ..., or case expression when expression then .... end
when
Works with the case construct. You can define conditions to occur when the when expression is true.
Syntax
case [expression] when ... end
Summaries
This list contains predefined functions that return either a single summary value for a group of related values or a different summary value for each instance of a group of related values.
aggregate
Returns a calculated value using the appropriate aggregation function, based on the aggregation type of the expression. This function appears in the Budget vs. Actual sample report in the GO Data Warehouse (analysis) package.
Syntax
aggregate ( expression [ auto ] ) aggregate ( expression for [ all|any ] expression { , expression } ) aggregate ( expression for report )
average
Returns the average value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
Syntax
average ( [ distinct ] expression [ auto ] ) average ( [ distinct ] expression for [ all|any ] expression { , expression } ) average ( [ distinct ] expression for report )
Example
average ( Sales )
count
Returns the number of selected data items excluding null values. Distinct is an alternative expression that is compatible with earlier versions of the product.
Syntax
count ( [ distinct ] expression [ auto ] ) count ( [ distinct ] expression for [ all|any ] expression { , expression } ) count ( [ distinct ] expression for report )
Example
count ( Sales )
maximum
Returns the maximum value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
Syntax
maximum ( [ distinct ] expression [ auto ] ) maximum ( [ distinct ] expression for [ all|any ] expression { , expression } ) maximum ( [ distinct ] expression for report )
Example
maximum ( Sales )
Appendix A: Calculation Components Result: Returns the maximum value out of all Sales values.
median
Returns the median value of selected data items.
Syntax
median ( expression [ auto ] ) median ( expression for [ all|any ] expression { , expression } ) median ( expression for report )
minimum
Returns the minimum value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
Syntax
minimum ( [ distinct ] expression [ auto ] ) minimum ( [ distinct ] expression for [ all|any ] expression { , expression } ) minimum ( [ distinct ] expression for report )
Example
minimum ( Sales )
moving-average
Returns a moving average by row for a specified set of values of over a specified number of rows. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
moving-average ( numeric_expression , numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) moving-average ( numeric_expression , numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
moving-average ( Qty , 3 )
Result: For each row, returns the quantity and a moving average of the current row and the preceding two rows.
moving-total
Returns a moving total by row for a specified set of values over a specified number of rows. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
moving-total ( numeric_expression , numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) moving-total ( numeric_expression , numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
moving-total ( Qty , 3 )
Result: For each row, returns the quantity and a moving total of the current row and the preceding two rows. Qty -----200 700 400 200 200 500 Moving-Total (Qty, 3) -------------------------------200 900 1300 1300 800 900
percentage
Returns the percent of the total value for selected data items. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources. This function appears in the Percentage Calculation (by year) interactive sample report.
Syntax
percentage ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) percentage ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
percentage ( Sales 98 )
Result: Returns the percentage of the total sales for 1998 that is attributed to each sales representative. Sales Rep Sales 98 Percentage ------------7.11% 7.35% 2.63%
percentile
Returns a value, on a scale of one hundred, that indicates the percent of a distribution that is equal to or below the selected data items. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
percentile ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) percentile ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
percentile ( Sales 98 )
Result: For each row, returns the percentage of rows that are equal to or less than the quantity value of that row. Qty -----800 700 600 500 400 400 200 200 Percentile (Qty) ----------------1 0.875 0.75 0.625 0.5 0.5 0.25 0.25
quantile
Returns the rank of a value within a range that you specify. It returns integers to represent any range of ranks, such as 1 (highest) to 100 (lowest). The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
quantile ( numeric_expression , numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) quantile ( numeric_expression , numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
quantile ( Qty , 4 )
Result: Returns the quantity, the rank of the quantity value, and the quantity values broken down into 4 quantile groups (quartiles). Qty -----800 700 600 500 400 400 200 200 Rank (Qty) Quantile (Qty, 4) --------1 2 3 4 5 5 7 7 --------------1 1 2 2 3 3 4 4
quartile
Returns the rank of a value, represented as integers from 1 (highest) to 4 (lowest), relative to a group of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
quartile ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) quartile ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
quartile ( Qty )
Result: Returns the quantity and the quartile of the quantity value represented as integers from 1 (highest) to 4 (lowest).
rank
Returns the rank value of selected data items. The sort order is optional; descending order (DESC) is assumed by default. If two or more rows tie, then there is a gap in the sequence of ranked values (also known as Olympic ranking). The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources. Distinct is an alternative expression that is compatible with earlier versions of the product. Null values are ranked last. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
rank ( expression [ ASC|DESC ] { , expression [ ASC|DESC ] } [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) rank ( [ distinct ] expression [ ASC|DESC ] { , expression [ ASC|DESC ] } [ <for-option>] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
rank ( Sales 98 )
Result: For each row, returns the rank value of sales for 1998 that is attributed to each sales representative. Some numbers are skipped when a tie between rows occurs. Sales Rep --------Gibbons Flertjan Cornel Smith Sales 98 --------60000 50000 50000 48000 Rank -----------1 2 2 4
running-average
Returns the running average by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-average ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-average ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-average ( Qty )
Result: For each row, returns the quantity and a running average of the current and the previous rows. Name ------Smith Smith Smith Smith Wong Wong Qty -----7 3 6 4 3 5 Avg -----5 5 5 5 4 4 Running-Average for name ----------------------7 5 5.33 5 3 4
running-count
Returns the running count by row (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-count ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-count ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-count ( Qty )
Result: For each row, returns the quantity and a running count of the position of the current row.
Qty -----7 3 6 4 3 5
Count --------4 4 4 4 3 3
running-difference
Returns a running difference by row, calculated as the difference between the value for the current row and the preceding row, (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-difference ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-difference ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-difference ( Qty )
Result: For each row, returns the quantity and a running difference between the value for the current row and the preceding row. Name ------Smith Smith Smith Smith Wong Wong Qty -----7 3 6 4 3 5 Running-Difference for name --------------------------NULL -4 3 -2 -1 2
running-maximum
Returns the running maximum by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-maximum ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-maximum ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-maximum ( Qty )
Result: For each row, returns the quantity and a running maximum of the current and previous rows. Name ------Smith Smith Smith Smith Wong Wong Qty -----2 3 6 7 3 5 Max -----7 7 7 7 5 5 Running-Maximum (Qty) for name ------------------------2 3 6 7 3 5
running-minimum
Returns the running minimum by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-minimum ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-minimum ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-minimum ( Qty )
Result: For each row, returns the quantity and a running minimum of the current and previous rows.
Qty ----7 3 6 2 4 5
Min -----2 2 2 2 3 3
running-total
Returns a running total by row (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
Syntax
running-total ( numeric_expression [ at expression { , expression } ] [ <for-option> ] [ prefilter ] ) running-total ( numeric_expression [ <for-option> ] [ prefilter ] ) <for-option> ::= for expression { , expression }|for report|auto
Example
running-total ( Qty )
Result: For each row, returns the quantity and a running total of the current and previous rows. Name ------Smith Smith Smith Smith Wong Wong Qty -----2 3 6 7 3 5 Total -------18 18 18 18 12 12 Running-Total (Qty) for name ------------------------2 5 11 18 3 8
standard-deviation
Returns the standard deviation of selected data items.
Syntax
standard-deviation ( standard-deviation ( standard-deviation ( expression [ auto ] ) expression for [ all|any ] expression { , expression } ) expression for report )
Example
standard-deviation ( ProductCost )
Result: Returns a value indicating the deviation between product costs and the average product cost.
standard-deviation-pop
Computes the population standard deviation and returns the square root of the population variance.
Syntax
standard-deviation-pop ( standard-deviation-pop ( { , expression } ) standard-deviation-pop ( expression [ auto ] ) expression for [ all|any ] expression expression for report )
Example
standard-deviation-pop ( ProductCost )
total
Returns the total value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product. This function appears in the Budget vs. Actual sample report in the GO Data Warehouse (analysis) package.
Syntax
total ( [ distinct ] expression [ auto ] ) total ( [ distinct ] expression for [ all|any ] expression { , expression } ) total ( [ distinct ] expression for report )
Example
total ( Sales )
variance
Returns the variance of selected data items.
Syntax
variance ( variance ( variance ( expression [ auto ] ) expression for [ all|any ] expression { , expression } ) expression for report )
Example
variance ( Product Cost )
Result: Returns a value indicating how widely product costs vary from the average product cost.
variance-pop
Returns the population variance of a set of numbers after discarding the nulls in this set.
Syntax
variance-pop ( variance-pop ( variance-pop ( expression [ auto ] ) expression for [ all|any ] expression { , expression } ) expression for report )
Example
variance-pop ( Qty )
Result: For each row, returns the population variance of a set of numbers after discarding the nulls in this set.
Member Summaries
This list contains predefined functions that return either a single summary value for a set of members or a different summary value for each member of a set of members.
aggregate
Returns a calculated value using the appropriate aggregation function based on the aggregation type of the expression.
Syntax
aggregate ( < currentMeasure|numeric_expression > within set set_expression ) aggregate ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
average
Returns the average value of the selected data items.
Syntax
average ( < currentMeasure|numeric_expression > within set set_expression ) average ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
Example
average ( Sales )
count
Returns the number of selected data items excluding null values.
Syntax
count ( < currentMeasure|numeric_expression > within set set_expression ) count ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
Example
count ( Sales )
Result: Returns the total number of entries under Sales. User Guide 793
maximum
Returns the maximum value of selected data items.
Syntax
maximum ( < currentMeasure|numeric_expression > within set set_expression ) maximum ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
Example
maximum ( Sales )
median
Returns the median value of selected data items.
Syntax
median ( < currentMeasure|numeric_expression > within set set_expression ) median ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
minimum
Returns the minimum value of selected data items.
Syntax
minimum ( < currentMeasure|numeric_expression > within set set_expression ) minimum ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
Example
minimum ( Sales )
percentage
Returns the percent of the total value for the selected data items.
Syntax
percentage ( numeric_expression [ tuple member_expression { , member_ expression } ] within set set_expression )
Example
percentage ( [gosales].[sales measures].[quantity] tuple [gosales].[Staff].[]. [department] -> [West] within set children ( [gosales].[Staff].[].[Staff] ) )
percentile
Returns a value, on a scale from 0 to 100, that indicates the percent of a distribution that is equal to or below the selected data items.
Syntax
percentile ( numeric_expression [ tuple member_expression { , member_ expression } ] within set set_expression )
quantile
Returns the rank of a value for the specified range. It returns integers to represent any range of ranks, such as 1 (highest) to 100 (lowest).
Syntax
quantile ( numeric_expression , numeric_expression [ tuple member_expression { , member_expression } ] within set set_expression )
quartile
Returns the rank of a value, represented as integers from 1 (highest) to 4 (lowest), relative to a group of values.
Syntax
quartile ( numeric_expression [ tuple member_expression { , member_expression } ] within set set_expression )
rank
Returns the rank value of the selected data items. The type of ranking returned (Olympic, dense, or serial) is data source dependent. The sort order is optional; DESC is assumed by default.
Syntax
rank ( numeric_expression [ ASC|DESC ] [ tuple member_expression { , member_ expression } ] within set set_expression )
Example
rank ( [gosales].[sales measures].[quantity] tuple [gosales].[Staff].[]. [department] -> [West] within set children ( [gosales].[Staff].[].[Staff] ) )
standard-deviation
Returns the standard deviation of the selected data items.
Syntax
standard-deviation ( < currentMeasure|numeric_expression > within set set_expression ) standard-deviation ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
standard-deviation-pop
Returns the standard deviation population of the selected data items.
Syntax
standard-deviation-pop ( < currentMeasure|numeric_expression > within set set_expression )
total
Returns the total value of the selected data items.
Syntax
total ( < currentMeasure|numeric_expression > within set set_expression ) total ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
variance
Returns the variance of the selected data items.
Syntax
variance ( < currentMeasure|numeric_expression > within set set_expression ) variance ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
variance-pop
Returns the variance population of the selected data items.
Syntax
variance-pop ( < currentMeasure|numeric_expression > within set set_expression ) variance-pop ( < currentMeasure|numeric_expression > within < detail|aggregate > expression )
Constants
A constant is a fixed value that you can use in an expression.
date
Inserts the current system date.
date-time
Inserts the current system date and time.
interval
Inserts a zero interval: 000 00:00:00.000.
interval year
Inserts a zero year interval: 0 year.
interval month
Inserts a zero month interval: 0 month.
interval day
Inserts a zero day interval: 0 day.
interval hour
Inserts a zero hour interval: 0 hour.
interval minute
Inserts a zero minute interval: 0 minute.
interval second
Inserts a zero second interval: 0 second.
null
Inserts "null" if the expression conditions are not met.
number
Inserts the number 0, which can be replaced with a new numeric value.
string
Inserts an empty string as two single quotation marks between which you can type a string.
time
Inserts the current system time.
Constructs
This list contains constructs and templates that can be used to create an expression. Templates combine multiple functions into a group. For example, the search case template includes the case, when, else, and end functions.
if then else
This construct is the template for an if...then...else statement. This construct appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
IF ([Country] = 'Canada') THEN ([List Price] * 0.60) ELSE ([List Price])
in_range
This is the template for an in_range expression.
Syntax
[code] IN_RANGE { :30 , 40, 50, 999: }
Example 1
[code] IN_RANGE { 5 }
Example 2
[code] IN_RANGE { 5: }
Example 3
[code] IN_RANGE { :5 }
Example 4
[code] IN_RANGE { 5:10 }
Example 5
[code] IN_RANGE { :5,10,20: }
search case
This construct is the template for a search case, including the case, when, else, and end functions.
Syntax
CASE WHEN [Country] = 'Canada' THEN ([List Price] * 0.60) WHEN [CountryCode] > 100 THEN [List Price] * 0.80 ELSE [List Price] END
simple case
This construct is the template for a simple case, including the case, when, else, and end functions.
Syntax
CASE [Country] WHEN 'Canada' THEN ([List Price] * 0.60) WHEN 'Australia' THEN [List Price] * 0.80 ELSE [List Price] END
_add_days
Returns the date or datetime, depending on the format of "date_expression", that results from adding "integer_expression" days to "date_expression".
Syntax
_add_days ( date_expression, integer_expression )
Example 1
_add_days ( 2002-04-30 , 1 )
Result: 2002-05-01
Example 2
_add_days ( 2002-04-30 12:10:10.000, 1 )
Example 3
_add_days ( 2002-04-30 00:00:00.000, 1/24 ) Note that the second argument is not a whole number. This is supported by some database technologies and increments the time portion.
_add_months
Returns the date or datetime, depending on the format of "date_expression", that results from the addition of "integer_expression" months to "date_expression".
Syntax
_add_months ( date_expression, integer_expression )
Example 1
_add_months ( 2002-04-30 , 1 )
Result: 2002-05-30
Example 2
_add_months ( 2002-04-30 12:10:10.000, 1 )
_add_years
Returns the date or datetime, depending on the format of "date_expression", that results from the addition of "integer_expression" years to "date_expression".
Syntax
_add_years ( date_expression, integer_expression )
Example 1
_add_years ( 2002-04-30 , 1 )
Result: 2003-04-30
Example 2
_add_years ( 2002-04-30 12:10:10.000 , 1 )
_age
Returns a number that is obtained from subtracting "date_expression" from today's date. The returned value has the form YYYYMMDD, where YYYY represents the number of years, MM represents the number of months, and DD represents the number of days.
Syntax
_age ( date_expression )
Example
_age ( 1990-04-30 ) (if today's date is 2003-02-05)
_day_of_week
Returns the day of week (1 to 7), where 1 is the first day of the week as indicated by the second parameter (1 to 7, 1 being Monday and 7 being Sunday). Note that in ISO 8601 standard, a week begins with Monday being day 1.
Syntax
_day_of_week ( date_expression, integer )
Example
_day_of_week ( 2003-01-01 , 1 )
Result: 3
_day_of_year
Returns the day of year (1 to 366) in "date_ expression". Also known as Julian day.
Syntax
_day_of_year ( date_expression )
Example
_day_of_year ( 2003-03-01 )
Result: 61
_days_between
Returns a positive or negative number representing the number of days between "date_expression1" and "date_expression2". If "date_expression1" < "date_expression2", then the result will be a negative number.
Syntax
_days_between ( date_expression1 , date_expression2 )
Example
_days_between ( 2002-04-30 , 2002-06-21 )
Result: -52
_days_to_end_of_month
Returns a number representing the number of days remaining in the month represented by "date_expression". User Guide 801
Syntax
_days_to_end_of_month ( date_expression )
Example
_days_to_end_of_month ( 2002-04-20 14:30:22.123 )
Result: 10
_first_of_month
Returns a date or datetime, depending on the argument, by converting "date_expression" to a date with the same year and month but with the day set to 1.
Syntax
_first_of_month ( date_expression )
Example 1
_first_of_month ( 2002-04-20 )
Result: 2002-04-01
Example 2
_first_of_month ( 2002-04-20 12:10:10.000 )
_last_of_month
Returns a date or datetime, depending on the argument, that is the last day of the month represented by "date_expression".
Syntax
_last_of_month ( date_expression )
Example 1
_last_of_month ( 2002-01-14 )
Result: 2002-01-31
Example 2
_last_of_month ( 2002-01-14 12:10:10.000 )
_make_timestamp
Returns a timestamp constructed from "integer_expression1" (the year), "integer_expression2" (the month), and "integer_expression3" (the day). The time portion defaults to 00:00:00.000 .
Syntax
_make_timestamp ( integer_expression1, integer_expression2, integer_ expression3 )
Example
_make_timestamp ( 2002 , 01 , 14 )
_months_between
Returns a positive or negative integer number representing the number of months between "date_expression1" and "date_expression2". If "date_expression1" is earlier than "date_expression2", then a negative number is returned.
Syntax
_months_between ( date_expression1, date_expression2 )
Example
_months_between ( 2002-04-03 , 2002-01-30 )
Result: 2
_week_of_year
Returns the number of the week of the year of "date_expression" according to the ISO 8601 standard. Week 1 of the year is the first week of the year to contain a Thursday, which is equivalent to the first week containing January 4th. A week starts on Monday (day 1) and ends on Sunday (day 7).
Syntax
_week_of_year ( date_expression )
Example
_week_of_year ( 2003-01-01 )
Result: 1
_years_between
Returns a positive or negative integer number representing the number of years between "date_expression1" and "date_expression2". If "date_expression1" < "date_expression2" then a negative value is returned.
Syntax
_years_between ( date_expression1, date_expression2 )
Example
_years_between ( 2003-01-30 , 2001-04-03 )
Result: 1
_ymdint_between
Returns a number representing the difference between "date_expression1" and "date_expression2". The returned value has the form YYYYMMDD, where YYYY represents the number of years, MM represents the number of months, and DD represents the number of days.
Syntax
_ymdint_between ( date_expression1 , date_expression2 )
Example
_ymdint_between ( 1990-04-30 , 2003-02-05 )
Block Functions
This list contains functions used to access members of a set, usually in the context of Analysis Studio.
_firstFromSet
Returns the first members found in the set up to "numeric_expression_maximum" + "numeric_ expression_overflow". If "numeric_expression_maximum" + "numeric_expression_overflow" is exceeded, then only the maximum number of members are returned. For a set that has only a few members more than the specified numeric_expression_maximum, the numeric_expression_overflow allows the small set of extra members to be included. If the set has more members than the overflow allows, then only the numeric_expression_maximum members will be returned.
Syntax
_firstFromSet ( set_expression , numeric_expression_maximum , numeric_expression_ overflow )
Example 1
_firstFromSet ( [great_outdoors_company].[Products].[Products].[Product line] , 2 , 8 )
Result: Returns the five members in the Product line set. The first two members are returned within the maximum and the following three members are returned as the overflow.
Camping Equipment Golf Equipment Mountaineering Equipment Outdoor Protection Personal Accessories
Example 2
_firstFromSet ( [great_outdoors_company].[Products].[Products].[Product line] , 2 , 2 )
_remainderSet
Returns the set containing "member_expression" when the size of "set_expression" is greater than "numeric_expression"; i.e., a new member will be generated if the number of members in "set_expression" is larger than the specified "numeric_expression".
Syntax
_remainderSet ( member_expression, set_expression , numeric_expression )
Example
_remainderSet ( member ( aggregate ( currentMeasure within set [great_outdoors_ company].[Products].[Products].[Product line] ) , 'Product Aggregate' , 'Product Aggregate' , [great_outdoors_company].[Products].[Products] ) , [great_outdoors_ company].[Products].[Products].[Product line] , 1 )
Macro Functions
This list contains functions that can be used within a macro. A macro may contain one or more macro functions. A macro is delimited by a number sign (#) at the beginning and at the end. Everything between the number signs is treated as a macro expression and is executed at run time. For macro functions that accept expressions of datatype timestamp with time zone as arguments, the accepted format is 'yyyy-mm-dd hh:mm:ss[.ff]+hh:mm' where fractional seconds are optional and can be represented by 1 to 9 digits. In lieu of a space separating the date portion to the time portion, the character 'T' is also accepted. Also, in lieu of the time zone '+hh:mm', the character 'Z' is accepted and will be processed internally as '+00:00'. The macro functions that return expressions of datatype timestamp with time zone return 9 digits by default for their fractional seconds. The macro function timestampMask () can be used to trim the output if required.
+
Concatenates two strings.
Syntax
value1 + value2
Example
# '{ ' + $runLocale + ' }' #
Result: {en-us}
_add_days
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of days to "string_expression", where "string_expression" represents a timestamp with time zone.
Syntax
_add_days ( string_expression , integer_expression )
Example 1
# _add_days ( '2005-11-01 12:00:00.000-05:00' , -1 ) #
Example 2
# _add_days ( $current_timestamp , 1 ) #
Example 3
# timestampMask ( _add_days ( $current_timestamp , 1 ) , 'yyyy-mm-dd' ) #
Result: 2005-11-02
_add_months
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of months to "string_expression", where "string_expression" represents a timestamp with time zone.
Syntax
_add_months ( string_expression , integer_expression )
Example 1
# _add_months ( '2005-11-01 12:00:00.000-05:00' , -1 ) #
Example 2
# _add_months ( $current_timestamp , 1 ) #
Example 3
# timestampMask ( _add_months ( $current_timestamp , 1 ) , 'yyyy-mm-dd' ) #
Result: 2005-12-01
_add_years
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of years to "string_expression", where "string_expression" represents a timestamp with time zone.
Syntax
_add_years ( string_expression , integer_expression )
Example 1
# _add_years ( '2005-11-01 12:00:00.000-05:00' , -1 ) #
Example 2
# _add_years ( $current_timestamp , 1 ) #
Example 3
# timestampMask ( _add_years ( $current_timestamp , 1 ) , 'yyyy-mm-dd' ) #
Result: 2006-11-01
array
Constructs an array out of the list of parameters.
Syntax
array ( string_expression|array_expression { , string_expression|array_ expression } )
Example
# csv ( array ( 'a1' , array ( 'x1' , 'x2' ) , 'a2' ) ) #
csv
Constructs a string from the elements of the array where the values are separated by commas. Optionally, the separator and quote strings can be specified. The default separator is a comma ( , ) and the default quote character is a single quote ( ' ).
Syntax
csv ( array_expression [ , separator_string [ , quote_string ] ] )
Example
# csv ( array ( 'a1' , 'a2' ) ) #
dq
Surrounds "string_expression" with double quotes.
Syntax
dq ( string_expression )
Example
# dq ( 'zero' ) #
Result: "zero"
getConfigurationEntry
Get an entry from the IBM Cognos configuration file. The force_decode_flag is optional and must be one of: 'true' , '1', 1 , 'false', '0', 0. The default is 'true'. When true, the value of the configuration entry will be decrypted into plain text if it is encrypted.
Syntax
getConfigurationEntry ( entry_string , force_decode_flag )
Example
# getConfigurationEntry ( 'serverLocale' ) #
Result: en
grep
Searches for and returns elements of an array that match the pattern specified in "pattern_string".
Syntax
grep ( pattern_string , array_expression )
Example
# csv ( grep ( 's' , array ( 'as', 'an', 'arts' ) ) ) #
_first_of_month
Returns a timestamp with time zone (as a string) by converting the day value in "string_expression" to 1, where "string_expression" is a timestamp with time zone.
Syntax
_first_of_month ( string_expression )
Example 1
# _first_of_month ( '2005-11-11 12:00:00.000-05:00' ) #
Example 2
# timestampMask ( _first_of_month ( '2005-11-11 12:00:00.000-05: 00' ) , 'yyyymmdd' ) #
Result: 20051101
_last_of_month
Returns a timestamp with time zone (as a string) that is the last day of the month represented by "string_expression", where "string_expression" is a timestamp with time zone.
Syntax
_last_of_month ( string_expression )
Example 1
# _last_of_month ( '2005-11-11 12:00:00.000-05:00' ) #
Example 2
# timestampMask ( _last_of_month ( '2005-11-11 12:00:00.000-05:00' ) , 'yyyymm-dd' ) #
Result: 2005-11-30
join
Joins the elements of an array using "separator_string".
Syntax
join ( separator_string , array_expression )
Example
# sq ( join ( ' | | ' , array ( 'as', 'an', 'arts' ) ) ) #
prompt
Prompts the user for a single value. Only "prompt_name" is required. The datatype defaults to "string" when it is not specified. The prompt is optional when "defaultText" is specified. "Text", when specified, will precede the value. "QueryItem" can be specified to take advantage of the prompt information properties of "queryItem". "Trailing_text", when specified, will be appended to the value.
Syntax
prompt ( prompt_name , datatype , defaultText , text , queryItem , trailing_ text )
Example 1
select . . . where COUNTRY_MULTILINGUAL.COUNTRY_CODE CountryCode' , 'integer' , '10' ) # > #prompt ( 'Starting
Example 2
[gosales].[COUNTRY].[COUNTRY] = # prompt ( 'countryPrompt' , 'string' , '''Canada''' ) #
Notes
The "defaultText" parameter must be specified such that it is literally valid in the context of the macro since no formatting takes place on this value. The default string '''Canada''' in Example 2 is specified as a string using single quotes, in which the embedded single quotes are doubled up, thus 3 quotes. This results in the string being properly displayed within single
Appendix A: Calculation Components quotes in the expression. As a general rule for the string datatype, "defaultText" should always be specified like this, except in the context of a stored procedure parameter. For "defaultText" of types 'date' or 'datetime', a special format should be used in the context of SQL. Examples of these formats are 'DATE ''2001-12-25''' and 'DATETIME ''2001-12-25 12:00:00'''. In all other contexts, use the date/datetime without the keyword and escaped single quotes (e.g., '2001-12-25').
promptmany
Prompts the user for one or more values. Only "prompt_name" is required. The datatype defaults to string when it is not specified. The prompt is optional when "defaultText" is specified. "Text", when specified, will precede the list of values. "QueryItem" can be specified to take advantage of the prompt information properties of "queryItem". "Trailing_text", when specified, will be appended to the list of values.
Syntax
promptmany ( prompt_name , datatype , defaultText , text , queryItem , trailing_ text )
Example 1
select . . . where COUNTRY_MULTILINGUAL.COUNTRY in ( # promptmany ( 'CountryName' ) # )
Example 2
select . . . from gosales.gosales.dbo.COUNTRY_MULTILINGUAL COUNTRY_ MULTILINGUAL , gosales.gosales.dbo.COUNTRY XX where COUNTRY_MULTILINGUAL.COUNTRY_ CODE = XX.COUNTRY_CODE # promptmany ( 'Selected CountryCodes' , 'integer' , ' ' , ' and COUNTRY_MULTILINGUAL.COUNTRY_CODE in ( ' , '' , ' ) ' ) #
Result: select . . . from gosales.gosales.dbo.COUNTRY_MULTILINGUAL COUNTRY_MULTILINGUAL , gosales.gosales.dbo.COUNTRY XX where COUNTRY_MULTILINGUAL.COUNTRY_ CODE = XX.COUNTRY_CODE and COUNTRY_MULTILINGUAL.COUNTRY_CODE in ( 'Canada' , 'The Netherlands' , 'Russia' )
sb
Surrounds "string_expression" with square brackets.
Syntax
sb ( string_expression )
Example
# sb ( 'abc' ) #
Result: [abc]
sq
Surrounds "string_expression" with single quotes.
Syntax
sq ( string_expression )
Example
# sq ( 'zero' ) #
Result: 'zero'
sort
Sorts the elements of the array in alphabetical order. Duplicates are retained.
Syntax
sort ( array_expression )
Example
# csv ( sort ( array ( 's3', 'a', 'x' ) ) ) #
split
Splits a string or string elements of the array into separate elements.
Syntax
split ( pattern_string, string_expression|array_expression )
Example 1
# csv ( split ( '::', 'ab=c::de=f::gh=i' ) ) #
Example 2
# csv ( split ( '=' , split ( '::', 'ab=c::de=f::gh=i' ) ) ) #
substitute
Searches for a pattern in a string or in the string elements of an array and substitutes the first occurrence of "pattern_string" with "replacement_string".
Syntax
substitute ( pattern_string, replacement_string, string_expression|array_ expression )
Example 1
#sq ( substitute ( '^cn=', '***', 'cn=help' ) )#
Example 2
# csv ( substitute ( '^cn=', '***', array ( 'cn=help' , 'acn=5' ) ) ) #
Example 3
# csv ( substitute ( 'cn=', '', array ( 'cn=help' , 'acn=5' ) ) ) #
timestampMask
Returns "string_expression1", representing a timestamp with time zone, trimmed to the format specified in "string_expression2". The format in "string_expression2" must be one of the following: 'yyyy', 'mm', 'dd', 'yyyy-mm', 'yyyymm', 'yyyy-mm-dd', 'yyyymmdd', 'yyyy-mm-dd hh:mm:ss', 'yyyy-mm-dd hh:mm:ss+hh:mm', 'yyyy-mm-dd hh:mm:ss.ff3', 'yyyy-mm-dd hh:mm:ss.ff3+hh:mm', 'yyyy-mm-ddThh:mm:ss', 'yyyy-mm-ddThh:mm:ss+hh:mm', 'yyyy-mm-ddThh:mm:ss.ff3+hh:mm', or 'yyyy-mm-ddThh:mm:ss.ff3+hh:mm'. The macro functions that return a string representation of a timestamp with time zone show a precision of 9 digits for the fractional part of the seconds by default. The format options allow this to be trimmed down to a precision of 3 or 0.
Syntax
timestampMask ( string_expression1 , string_expression2 )
Example 1
# timestampMask ( $current_timestamp , 'yyyy-dd-mm' ) #
Result: 2005-11-01
Example 2
# timestampMask ( '2005-11-01 12:00:00.000-05:00' , 'yyyy-mm-dd hh:mm:ss+hh:mm' ) #
Example 3
# timestampMask ( '2005-11-01 12:00:00.123456789-05:00' , 'yyyy-mm-ddThh:mm: ss+hh:mm.ff3+hh:mm' ) #
Result: 2005-11-01T12:00:00.123-05:00
toLocal
Returns the string representing a timestamp with time zone resulting from adjusting "string_expression" to the time zone of the operating system. Note that the macro function timestampMask () can be used to trim the output.
Syntax
toLocal ( string_expression )
Example 1
# toLocal ( '2005-11-01 17:00:00.000-00:00' ) # where OS local time zone is -05:00
Example 2
# timestampMask ( toLocal ( '2005-11-01 17:00:00.000-00:00' ) , 'yyyy-mm-dd hh:mm:ss+hh:mm' ) # where OS local time zone is -05:00
Example 3
# toLocal ( '2005-11-01 13:30:00.000-03:30' ) # where OS local time zone is -05:00
toUTC
Returns the string representing a timestamp with time zone resulting from adjusting "string_expression" to the zero-point reference UTC time zone, also known as GMT time. Note that the macro function timestampMask () can be used to trim the output.
Syntax
toUTC ( string_expression )
Example 1
# toUTC ( '2005-11-01 12:00:00.000-05:00' ) #
Example 2
# timestampMask( toUTC ( '2005-11-01 12:00:00.000-05:00' ) , 'yyyy-mm-dd hh:mm: ss.ff3+hh:mm' ) #
Example 3
# toUTC ( $current_timestamp ) #
unique
Removes duplicate entries from the array. The order of the elements is retained.
Syntax
unique ( array_expression )
Example
# csv ( unique ( array ( 's3', 'a', 's3', 'x' ) ) ) #
urlencode
URL-encodes the passed argument. This function is useful when specifying XML connection strings.
Syntax
urlencode ( prompt ( 'userValue' ) )
Example
urlencode ( prompt ( 'some_val' ) )
Result: %27testValue%27
CSVIdentityName
Uses the identity information of the current authenticated user to look up values in the specified parameter map. Each individual piece of the user's identity (account name, group names, role names) is used as a key into the map. The unique list of values that is retrieved from the parameter map is then returned as a string, where each value is surrounded by single quotes and where multiple values are separated by commas.
Syntax
CSVIdentityName ( %parameter_map_name [ , separator_string ] )
Example
# CSVIdentityName ( %security_clearance_level_map ) #
CSVIdentityNameList
Returns the pieces of the user's identity (account name, group names, role names) as a list of strings. The unique list of values is returned as a string, where each value is surrounded by single quotes and where multiple values are separated by commas.
Syntax
CSVIdentityNameList ( [ separator_string ] )
Example
# CSVIdentityNameList ( ) #
CAMPassport
Returns the Cognos Access Manager passport.
Syntax
CAMPassport ( )
Example
# CAMPassport ( ) #
CAMIDList
Returns the pieces of the user's Cognos Access Manager ID (CAMID), such as account name, group names, or role names, as a list of values separated by commas.
Syntax
CAMIDList ( [ separator_string ] )
Example
#CAMIDList ( ) #
Result: CAMID ( "::Everyone" ) , CAMID ( ":Authors" ) , CAMID ( ":Query Users" ) , CAMID ( ":Consumers" ) , CAMID ( ":Metrics Authors" )
CAMIDListForType
Returns an array of the user's Cognos Access Manager IDs (CAMIDs) based on the identity type (account, group, or role). CAMIDListForType can be used with the macro functions csv or join.
Syntax
CAMIDListForType ( identity type )
Example
[qs].[userRole] in ( # csv ( CAMIDListForType ( 'role' ) ) # )
Common Functions
abs
Returns the absolute value of "numeric_expression". Negative values are returned as positive values.
Syntax
abs ( numeric_expression )
Example 1
abs ( 15 )
Result: 15
Example 2
abs ( -15 )
Result: 15
cast
Converts "expression" to a specified data type. Some data types allow for a length and precision to be specified. Make sure that the target is of the appropriate type and size. The following can be used for "datatype_specification": character, varchar, char, numeric, decimal, integer, smallint, real, float, date, time, timestamp, time with time zone, timestamp with time zone, and interval. When type casting to an interval type, one of the following interval qualifiers must be specified: year, month, or year to month for the year-to-month interval datatype; day, hour, minute, second, day to hour, day to minute, day to second, hour to minute, hour to second, or minute to second for the day-to-second interval datatype. Notes: When you convert a value of type timestamp to type date, the time portion of the timestamp value is ignored. When you convert a value of type timestamp to type time, the date portion of the timestamp is ignored. When you convert a value of type date to type timestamp, the time components of the timestamp are set to zero. When you convert a value of type time to type timestamp, the date component is set to the current system date. It is invalid to convert one interval datatype to the other (for instance because the number of days in a month is variable). Note that you can specify the number of digits for the leading qualifier only, i.e. YEAR(4) TO MONTH, DAY(5). Errors will be reported if the target type and size are not compatible with the source type and size.
Syntax
cast ( expression , datatype_specification )
Example 1
cast ( '123' , integer )
Result: 123
Example 2
cast ( 12345 , varchar ( 10 ) )
ceil
Returns the smallest integer that is greater than or equal to "numeric_expression".
Syntax
ceil ( numeric_expression )
ceiling
Returns the smallest integer that is greater than or equal to "numeric_expression".
Syntax
ceiling ( numeric_expression )
Example 1
ceiling ( 4.22 )
Result: 5
Example 2
ceiling ( -1.23 )
Result: -1
char_length
Returns the number of logical characters in "string_expression". The number of logical characters can be distinct from the number of bytes in some East Asian locales.
Syntax
char_length ( string_expression )
Example
char_length ( 'Canada' )
Result: 6
character_length
Returns the number of characters in "string_expression".
Syntax
character_length ( string_expression )
Example
character_length ( 'Canada' )
Result: 6
coalesce
Returns the first non-null argument (or null if all arguments are null). Requires two or more arguments in "expression_list".
Syntax
coalesce ( expression_list )
Example
coalesce ( [Unit price], [Unit sale price] )
Result: Returns the unit price, or the unit sale price if the unit price is null.
current_date
Returns a date value representing the current date of the computer that the database software runs on.
Syntax
current_date
Example
current_date
Result: 2003-03-04
current_time
Returns a time with time zone value, representing the current time of the computer that runs the database software if the database supports this function. Otherwise, it represents the current time of the computer that runs IBM Cognos BI software.
Syntax
current_time
Example
current_time
Result: 16:33:11+05:00
current_timestamp
Returns a datetime with time zone value, representing the current time of the computer that runs the database software if the database supports this function. Otherwise, it represents the current time of the computer that runs IBM Cognos BI software.
Syntax
current_timestamp
Example
current_timestamp
exp
Returns 'e' raised to the power of "numeric_expression". The constant 'e' is the base of the natural logarithm.
Syntax
exp ( numeric_expression )
Example
exp ( 2 )
Result: 7.389056
extract
Returns an integer representing the value of datepart (year, month, day, hour, minute, second) in "datetime_expression".
Syntax
extract ( datepart , datetime_expression )
Example 1
extract ( year , 2003-03-03 16:40:15.535 )
Result: 2003
Example 2
extract ( hour , 2003-03-03 16:40:15.535 )
Result: 16
floor
Returns the largest integer that is less than or equal to "numeric_expression".
Syntax
floor ( numeric_expression )
Example 1
floor ( 3.22 )
Result: 3
Example 2
floor ( -1.23 )
Result: -2
ln
Returns the natural logarithm of "numeric_expression".
Syntax
ln ( numeric_expression )
Example
ln ( 4 )
Result: 1.38629
localtime
Returns a time value, representing the current time of the computer that runs the database software.
Syntax
localtime
Example
localtime
Result: 16:33:11
localtimestamp
Returns a datetime value, representing the current timestamp of the computer that runs the database software.
Syntax
localtimestamp
Example
localtimestamp
lower
Returns "string_expression" with all uppercase characters shifted to lowercase.
Syntax
lower ( string_expression )
Example
lower ( 'ABCDEF' )
Result: abcdef
mod
Returns the remainder (modulus) of "integer_expression1" divided by "integer_expression2". "Integer_expression2" must not be zero or an exception condition is raised.
Syntax
mod ( integer_expression1, integer_expression2 )
Example
mod ( 20 , 3 )
Result: 2
nullif
Returns null if "expression1" equals "expression2", otherwise returns "expression1".
Syntax
nullif ( expression1, expression2 )
octet_length
Returns the number of bytes in "string_expression".
Syntax
octet_length ( string_expression )
Example 1
octet_length ( 'ABCDEF' )
Result: 6
Example 2
octet_length ( '' )
Result: 0
position
Returns the integer value representing the starting position of "string_expression1" in "string_ expression2" or 0 when the "string_expression1" is not found.
Syntax
position ( string_expression1 , string_expression2 )
Example 1
position ( 'C' , 'ABCDEF' )
Result: 3
Example 2
position ( 'H' , 'ABCDEF' )
Result: 0
power
Returns "numeric_expression1" raised to the power "numeric_expression2". If "numeric_expression1" is negative, then "numeric_expression2" must result in an integer value.
Syntax
power ( numeric_expression1 , numeric_expression2 )
Example
power ( 3 , 2 )
Result: 9
_round
Returns "numeric_expression" rounded to "integer_expression" places to the right of the decimal point. Notes: "integer_expression" must be a non-negative integer. Rounding takes place before data formatting is applied.
Syntax
_round ( numeric_expression , integer_expression )
Example
_round ( 1220.42369, 2 )
sqrt
Returns the square root of "numeric_expression". "Numeric_expression" must be non-negative.
Syntax
sqrt ( numeric_expression )
Example
sqrt ( 9 )
Result: 3
substring
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is omitted. The first character in "string_expression" is at position 1.
Syntax
substring ( string_expression , integer_expression1 [ , integer_expression2 ] )
Example
substring ( 'abcdefg' , 3 , 2 )
Result: cd
trim
Returns "string_expression" trimmed of leading and trailing blanks or trimmed of a certain character specified in "match_character_expression". "Both" is implicit when the first argument is not stated and blank is implicit when the second argument is not stated.
Syntax
trim ( [ [ trailing|leading|both ] [ match_character_expression ] , ] string_ expression )
Example 1
trim ( trailing 'A' , 'ABCDEFA' )
Result: ABCDEF
Example 2
trim ( both , ' ABCDEF ' )
Result: ABCDEF
upper
Returns "string_expression" with all lowercase characters converted to uppercase.
Syntax
upper ( string_expression )
Example
upper ( 'abcdef' )
Result: ABCDEF
Dimensional Functions
ancestor
Returns the ancestor of "member" at "level" or at "integer" number of levels above "member". Note: The result is not guaranteed to be consistent when there is more than one such ancestor.
Syntax
ancestor ( member, level|integer )
Example 1
ancestor ( [TrailChef Water Bag] , 1 )
Example 2
ancestor ( [TrailChef Water Bag] , 2 )
Example 3
ancestor ( [TrailChef Water Bag] , [great_outdoors_company].[Products]. [Products].[Product type] )
ancestors
Returns all the ancestors of "member" at "level" or "index" distance above the member. (Most data sources support only one ancestor at a specified level. If the data source supports more than one ancestor, the result is a member set.)
Syntax
ancestors ( member , level|index )
Example 1
ancestors ( [TrailChef Water Bag] , 1 )
Example 2
ancestors ( [TrailChef Water Bag] , 2 )
Example 3
ancestors ( [TrailChef Water Bag] , [great_outdoors_company].[Products]. [Products].[Product type] )
bottomCount
Sorts a set according to the value of "numeric_expression" evaluated at each of the members of "set_expression" and returns the bottom "index_expression" members.
Syntax
bottomCount ( set_expression , index_expression , numeric_expression )
Example
bottomCount ( [great_outdoors_company].[Products].[Products].[Product line] , 2 , [Revenue] )
Result: Returns the bottom two members of the set sorted by revenue. Product line ------Outdoor Protection Mountaineering Equipment Revenue ------$3,171,114.92 $20,891,350.60
bottomPercent
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the bottommost elements whose cumulative total is equal to or less than "numeric_ expression1" percent of the total.
Syntax
bottomPercent ( set_expression , numeric_expression1 , numeric_expression2 )
Example
bottomPercent ( set ( [Camping Equipment] , [Golf Equipment] , [Mountaineering Equipment] ) , 40 , [2006] )
Result: For the set of Camping Equipment, Golf Equipment, and Mountaineering Equipment, returns the members whose percentage total are less than or equal to 40% for 2006.
bottomSum
Sorts "numeric_expression2", evaluated at the corresponding member of "set_expression", and picks up the bottommost elements whose cumulative total is equal to or less than "numeric_ expression1".
Syntax
bottomSum ( set_expression , numeric_expression1 , numeric_expression2 )
Example
bottomSum ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) , 6000000 , tuple ( [2006] , [great_outdoors_company].[Measures].[Gross profit] ) )
caption
Returns the caption values of "level", "member", or "set_expression". The caption is the string display name for an element and does not necessarily match the unique identifier used to generate the business key or member unique name (MUN) for the element. The caption is not necessarily unique; for example, the caption for a month may return the month name without further year details to make the value unique.
Syntax
caption ( level|member|set_expression )
Example 1
caption ( [TrailChef Water Bag] )
Example 2
caption ( [great_outdoors_company].[Products].[Products].[Product line] )
children
Returns the set of children of a specified member.
Syntax
children ( member )
Example
children ( [Camping Equipment] )
closingPeriod
Returns the last sibling member among the descendants of a member at "level". This function is typically used with a time dimension.
Syntax
closingPeriod ( level [ , member ] )
Example 1
closingPeriod ( [great_outdoors_company].[Years].[Years].[Month] )
Result: 2006/Dec
Example 2
closingPeriod ( [great_outdoors_company].[Years].[Years].[Year] )
Result: 2006
Example 3
closingPeriod ( [great_outdoors_company].[Years].[Years].[Month] , [2006 Q 4] )
Result: 2006/Dec
cousin
Returns the child member of "member2" with the same relative position as "member1" to its parent. This function appears in the Revenue by GO Subsidiary 2005 sample report in the GO Data Warehouse (analysis) package.
Syntax
cousin ( member1 , member2 )
Example 1
cousin ( [Irons] , [Camping Equipment] )
Example 2
cousin ( [Putters] , [Camping Equipment] )
completeTuple
Identifies a cell location (intersection) based on the specified members, each of which must be from a different dimension. However, completeTuple () implicitly includes the default member from all dimensions not otherwise specified in the arguments, rather than the current member. CompleteTuple will use the default measure rather than the currentMeasure in the query if the measure is not defined in the completetuple function. This function appears in the Planned Headcount sample report in the GO Data Warehouse (analysis) package.
Syntax
completeTuple ( member { , member } )
Example 1
completeTuple ( [Mountaineering Equipment] , [Fax] )
Appendix A: Calculation Components Result: The completeTuple does not pick up the currentMember by default as the tuple function does. The values in the first column are identical across each year because the default member of the Years dimension, the root member, is used rather than the current member. Likewise, the first column displays Revenue rather than Quantity Sold because the Revenue measure is the default from the Measures dimension. CompleteTuple will use the default measure rather than the currentMeasure in the query if the measure is not defined in the completetuple function. Quantity Sold --------------2004 2005 2006 Mountaineering Sales by Fax -------------$1,220,329.38 $1,220,329.38 $1,220,329.38
Example 2
completeTuple ( [Mountaineering Equipment] , [Fax] , [Quantity sold] , currentMember ( [great_outdoors_company].[Years].[Years] ) )
Result: The completeTuple function uses the currentMember of the Years dimension and the Quantity sold measure. Quantity Sold --------------2004 2005 2006 Mountaineering Sales by Fax -------------0 8,746 7,860
currentMember
Returns the current member of the hierarchy during an iteration. If "hierarchy" is not present in the context in which the expression is being evaluated, its default member is assumed. This function appears in the Rolling and Moving Averages interactive sample report.
Syntax
currentMember ( hierarchy )
defaultMember
Returns the default member of "hierarchy".
Syntax
defaultMember ( hierarchy )
Example 1
defaultMember ( [great_outdoors_company].[Products].[Products] )
Result: Products
Example 2
defaultMember ( [great_outdoors_company].[Years].[Years] )
Result: Year
Example 3
defaultMember ( hierarchy ( [great_outdoors_company].[Measures].[Quantity sold] ) )
Result: Revenue
descendants
Returns the set of descendants of "member" or "set_expression" at "level" (qualified name) or "distance" (integer 0..n) from the root. Multiple options may be specified (separated by a space) to determine which members are returned. self: Only the members at the specified level are included in the final set (this is the default behaviour in the absence of any options). before: If there are any intermediate levels between the member's level and the one specified, members from those levels are included. If the level specified is the same as the member upon which the function is applied, the member is included in the final set. beforewithmember: If there are any intermediate levels between the member's level and the one specified, members from those levels are included. The member upon which the function is applied is also included in the final set. after: If other levels exist after the specified level, members from those levels are included in the final set. This function appears in the Sales Commissions for Central Europe sample report in the GO Data Warehouse (analysis) package.
Syntax
descendants ( member|set_expression , level|distance [ , { self|before| beforewithmember|after } ] )
Example 1
descendants ( [great_outdoors_company].[Products].[Products].[Products] , [great_ outdoors_company].[Products].[Products].[Product type] )
Result: Returns the set of descendants of the Products set at the Product type level. Note: [great_ outdoors_company].[Products].[Products].[Products] is the root member of the Products hierarchy.
Cooking Gear Sleeping Bags Packs Tents ... Eyewear Knives Watches
Example 2
descendants ( [great_outdoors_company].[Products].[Products].[Products] , 1 )
Result: Returns the set of descendants of the Products set at the first level.
Camping Equipment Golf Equipment Mountaineering Equipment Outdoor Protection Personal Accessories
Example 3
descendants ( [great_outdoors_company].[Products].[Products]. [Products] , 3 , before )
Result: Returns the descendants of the Products set before the third level.
Camping Equipment Cooking Gear Sleeping Bags Packs Tents ... Eyewear Knives Watches
Example 4
descendants ( [great_outdoors_company].[Products].[Products]. [Products] , 2 , self before )
Result: Returns the set of descendants of the Products set before and including the second level.
Camping Equipment Cooking Gear Sleeping Bags Packs Tents ... Eyewear Knives Watches
except
Returns the members of "set_expression1" that are not also in "set_expression2". Duplicates are retained only if the optional keyword all is supplied as the third argument.
Syntax
except ( set_expression1 , set_expression2 [ , all ] )
Example
except ( set ( [Camping Equipment] , [Mountaineering Equipment] ) , set ( [Camping Equipment] , [Golf Equipment] ) )
filter
Returns the set resulting from filtering a specified set based on the Boolean condition. Each member is included in the result if and only if the corresponding value of "Boolean_expression" is true.
Syntax
filter ( set_expression , Boolean_expression )
Example
filter ( [Product line] , [Gross margin] > .30 )
firstChild
Returns the first child of "member".
Syntax
firstChild ( member )
Example 1
firstChild ( [By Product Lines] )
Example 2
firstChild ( [Camping Equipment] )
firstSibling
Returns the first child of the parent of "member".
Syntax
firstSibling ( member )
Example 1
firstSibling ( [Outdoor Protection] )
Example 2
firstSibling ( [Camping Equipment] )
_format
Associates a format with the expression. The format_keyword can be PERCENTAGE_0, PERCENTAGE_1, or PERCENTAGE_2. PERCENTAGE_1 returns a percentage with one digit to the right of the decimal point, PERCENTAGE_2 returns a percentage with two digits to the right of the decimal point, and PERCENTAGE_3 returns a percentage value out of one with three digits to the right of the decimal point (for example, 0.965).
Syntax
_format ( expression , format_keyword )
Example
_format ( [Unit Sale Price] / [Unit Price] , PERCENTAGE_2 )
Result: 75.12%
emptySet
Returns an empty member set for "hierarchy". This is most often used as a placeholder during development or with dynamic report design (either with the IBM Cognos Software Development Kit or via report design). By creating a data item that contains the emptyset function, it is possible to build complex expressions that can later be revised by redefining the emptyset data item.
Syntax
emptySet ( hierarchy )
Example
except ( [great_outdoors_company].[Products].[Products].[Product line] , emptyset ( [great_outdoors_company].[Products].[Products] ) )
Result: Returns the Product line set and an empty set for the Products set.
Camping Equipment Golf Equipment Mountaineering Equipment Outdoor Protection Personal Accessories
generate
Evaluates "set_expression2" for each member of "set_expression1" and joins the resulting sets by union. The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
Syntax
generate ( set_expression1 , set_expression2 [ , all ] )
Example
generate ( [Product line] , topCount ( descendants ( currentMember ( [great_ outdoors_company].[Products].[Products] ) , [great_outdoors_company].[Products]. [Products].[Product name] ) , 2 , [Revenue] ) )
Result: Returns the top two products by revenue for each product line.
head
Returns the first "index_expression" elements of "set_expression". The default for "index_expression" is 1.
Syntax
head ( set_expression [ , index_expression ] )
Example 1
head ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) )
Example 2
head ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) , 2 )
Result: Returns the top two members of the Product line set.
Camping Equipment Mountaineering Equipment
hierarchize
Orders the members of "set_expression" in a hierarchy. Members in a level are sorted in their natural order. This is the default ordering of the members along a dimension when no other sort conditions are specified.
Syntax
hierarchize ( set_expression )
Example
hierarchize ( set ( [Golf Equipment] , [Mountaineering Equipment] , [Camping Equipment] ) )
hierarchy
Returns the hierarchy that contains "level", "member", or "set_expression".
Syntax
hierarchy ( level|member|set_expression )
Example 1
hierarchy ( [Cooking Gear] )
Result: Returns every member in the hierarchy that contains Cooking Gear.
Products Camping Equipment Cooking Gear TrailChef Water Bag TrailChef Canteen ... Mountain Man Extreme Mountain Man Deluxe
Example 2
hierarchy ( [great_outdoors_company].[Products].[Products].[Product line] )
Result: Returns every member in the hierarchy that contains the Product line.
Products Camping Equipment Cooking Gear TrailChef Water Bag TrailChef Canteen ... Mountain Man Extreme Mountain Man Deluxe
item
Returns a member from the "index" location within "set_expression". The index into the set is zero based.
Syntax
item ( set_expression , index )
Example
item ( children ( [Camping Equipment] ) , 2 )
intersect
Returns the intersection of "set_expression1" and "set_expression2". The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
Syntax
intersect ( set_expression1 , set_expression2 [ , all ] )
Example
intersect ( set ( [Camping Equipment] , [Mountaineering Equipment] ) , set ( [Camping Equipment] , [Outdoor Protection] , ) , all )
lag
Returns the sibling member that is "index_expression" number of positions prior to "member".
Syntax
lag ( member , index_expression )
Example 1
lag ( [Tents] , 1 )
Example 2
lag ( [Tents] , -2 )
Result: Packs
lastChild
Returns the last child of a specified member.
Syntax
lastChild ( member )
Example 1
lastChild ( Cooking Gear )
Example 2
lastChild ( [By Product Line] )
lastPeriods
Returns the set of members from the same level that ends with "member". The number of members returned is the absolute value of "integer_expression". If "integer_expression" is negative, members following and including the specified member are returned. Typically used with a time dimension. This function appears in the Rolling and Moving Averages interactive sample report.
Syntax
lastPeriods ( integer_expression , member )
Example 1
lastPeriods ( 2 , [2006 Q 4] )
Result: Returns the last two members from the level that ends with 2006 Q 4.
2006 Q 3 2006 Q 4
Example 2
lastPeriods ( -3 , [2006 Q 4] )
Result: Returns the last three members from the level that starts with 2006 Q 4.
2006 Q 4 2007 Q 1 2007 Q 2
lastSibling
Returns the last child of the parent of a specified member.
Syntax
lastSibling ( member )
Example
lastSibling ( [Camping Equipment] )
lead
Returns the sibling member that is "index_expression" number of positions after "member". If "index_expression" is negative, returns the sibling member that is "index_expression" number of positions before "member".
Syntax
lead ( member , index_expression )
Example 1
lead ( [Outdoor Protection] , 1 )
Example 2
lead ( [Outdoor Protection] , -2 )
level
Returns the level of "member".
Syntax
level ( member )
Example
level ( [Golf Equipment] )
levels
Returns the level in "hierarchy" whose distance from the root is specified by "index".
Syntax
levels ( hierarchy , index )
Example 1
levels ( [great_outdoors_company].[Products].[Products] , 2 )
Result: Returns the members two levels from the root Products hierarchy.
Cooking Gear Sleeping Bags Packs Tents ... Irons Putters Woods Golf Accessories
Example 2
levels ( [great_outdoors_company].[Products].[Products] , 1 )
Result: Returns the members one level from the root Products hierarchy.
Camping Equipment Mountaineering Equipment Personal Accessories
linkMember
Returns the corresponding member in "level" or "hierarchy" (of the same dimension). For levelbased hierarchies, a level must be specified as the second argument, and for parent-child hierarchies, a hierarchy must be specified. An exception is thrown when the second parameter does not resolve to a hierarchy of the member's dimension. Note that calculated members are not supported as the first argument.
Syntax
linkMember ( member , level|hierarchy )
members
Returns the set of members in "hierarchy" or "level". In the case of a hierarchy, the order of the members in the result is not guaranteed. If a predictable order is required, an explicit ordering function (such as hierarchize) must be used.
Syntax
members ( hierarchy|level )
Example 1
members ( [great_outdoors_company].[Years].[Years] )
Example 2
members ( [great_outdoors_company].[Products].[Products].[Product line] )
nextMember
Returns the next member in the "member" level.
Syntax
nextMember ( member )
Example
nextMember ( [Outdoor Protection] )
openingPeriod
Returns the first sibling member among the descendants of a member at "level". This function is typically used with a time dimension.
Syntax
openingPeriod ( level [ , member ] )
Example 1
openingPeriod ( [great_outdoors_company].[Years].[Years].[Month] )
Result: 2004/Jan
Example 2
openingPeriod ( [great_outdoors_company].[Years].[Years].[Year] )
Result: 2004
Example 3
openingPeriod ( [great_outdoors_company].[Years].[Years].[Month] , [2006 Q 4] )
Result: 2006/Oct
order
Arranges the members of "set_expression" according to their "value_expression" and the third parameter. ASC and DESC arrange members in ascending or descending order, respectively, according to their position in the set hierarchy. Then the children of each member are arranged according to "value_expression". BASC and BDESC arrange members in the set without regard to the hierarchy. In the absence of an explicit specification, ASC is the default.
Syntax
order ( set_expression , value_expression [ , ASC|DESC|BASC|BDESC ] )
Example 1
order ( members ( [Great Outdoors Company].[Product].[Product].[Product type] ) , [Quantity sold] , BASC )
Result: Returns the quantity sold for each product type in no particular order. Product Line ------------Woods Irons Safety ... Sunscreen Insect Repellents Lanterns Quantity ------------13,924 14,244 22,332 ... 215,432 270,074 345,096
Example 2
order ( members ( [Great Outdoors Company].[Product].[Product].[Product type] ) , [Quantity sold] , ASC )
Result: Returns the quantity sold for each product type in ascending order.
Product Line ------------Woods Irons Putters ... Tents Cooking Gear Lanterns
ordinal
Returns the zero-based ordinal value (distance from the root level) of "level".
Syntax
ordinal ( level )
Example 1
ordinal ( [great_outdoors_company].[Products].[Products].[Product line] )
Result: 1
Example 2
ordinal ( [great_outdoors_company].[Products].[Products].[Product type] )
Result: 2
parallelPeriod
Returns a member from a prior period in the same relative position as "member". This function is similar to the cousin function, but is more closely related to time series. It takes the ancestor of "member" at "level" (called "ancestor") and the sibling of "ancestor" that lags by "integer_ expression" positions, and returns the parallel period of "member" among the descendants of that sibling. When unspecified, "integer_expression" defaults to 1 and "member" defaults to the current member.
Syntax
parallelPeriod ( level [ , integer_expression [ , member ] ] )
Example 1
parallelPeriod ( [great_outdoors_company].[Years].[Years].[Quarter] , -1 , [2006/Aug] )
Result: 2006/Nov
Example 2
parallelPeriod ( [great_outdoors_company].[Years].[Years].[Quarter] , 1 , [2006/ Aug] )
Result: 2006/May
Example 3
parallelPeriod ( [great_outdoors_company].[Years].[Years].[Year] , 2 , [2006/ Aug] )
Result: 2004/Aug
parent
Returns the member that is the parent of "member" or "measure".
Syntax
parent ( member|measure )
Example
parent ( [Cooking Gear] )
periodsToDate
Returns a set of sibling members from the same level as "member", as constrained by "level". It locates the ancestor of "member" at "level" and returns that ancestor's descendants at the same level as "member" (up to and including "member"). Typically used with a time dimension. This function appears in the Rolling and Moving Averages interactive sample report.
Syntax
periodsToDate ( level , member )
Example
periodsToDate ( [great_outdoors_company].[Years].[Years].[Year] , [2004/Mar] )
prevMember
Returns the member that immediately precedes "member" in the same level. This function appears in the Sales Growth Year Over Year sample report in the GO Data Warehouse (analysis) package.
Syntax
prevMember ( member )
Example 1
prevMember ( [Outdoor Protection] )
Example 2
prevMember ( [2005] )
Result: 2004
member
Defines a member based on "value_expression" in "hierarchy". "String1" identifies the member created by this function. It must be unique in the query and different from any other member in the same hierarchy. "String2" is the caption of the member; if it is absent, the caption is empty. To ensure predictable results, it is recommended that you supply the "hierarchy". Note: All calculations used as grouping items whose sibling items are other calculations or member sets should be explicitly assigned to a hierarchy using this function. The results are not predictable otherwise. The only exception is where the calculation involves only members of the same hierarchy as the siblings. In this case, the calculation is assumed to belong to that hierarchy.
Syntax
member ( value_expression [ , string1 [ , string2 [ , hierarchy ] ] ] )
Example
member ( total ( currentMeasure within set filter ( [great_outdoors_company]. [Products].[Products].[Product name] , caption ( [great_outdoors_company]. [Products].[Products].[Product name] ) starts with 'B' ) ) , 'BProducts' , 'B Products' , [great_outdoors_company].[Products].[Products] )
Result: Returns the quantity sold and revenue for all products that start with the letter B.
nestedSet
Returns the set of members of "set_expression2" evaluated in the context of the current member of "set_expression1".
Syntax
nestedSet ( set_expression1 , set_expression2 )
Example
nestedSet ( members ( [Product line] ) , topCount ( descendants ( currentMember ( [great_outdoors_company].[Products].[Products] ) , [great_outdoors_company]. [Products].[Products].[Product name] ) , 2 , [Revenue] ) )
Result: Returns the top two products by revenue for each product line.
set
Returns the list of members defined in the expression. The members must belong to the same hierarchy.
Syntax
set ( member { , member } )
Example
set ( [Golf Equipment] , [Irons] , [TrailChef Cup] )
Appendix A: Calculation Components Result: Returns Golf Equipment, Irons, and TrailChef Cup.
siblings
Returns the children of the parent of the specified member.
Syntax
siblings ( member )
Example
siblings ( [Golf Equipment] )
tail
Returns the last "index_expression" elements of "set expression". The default for "index_expression" is 1.
Syntax
tail ( set_expression [ , index_expression ] )
Example 1
tail (members ( [great_outdoors_company].[Products].[Products].[Product line] ) )
Example 2
tail ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) , 2 )
Result: Returns the last two members of the Product line set.
Outdoor Protection Personal Accessories
topCount
Sorts a set according to the values of "numeric_expression" evaluated at each of the members of "set_expression" and returns the top "index_expression" members.
Syntax
topCount ( set_expression , index_expression , numeric_expression )
Example
topCount ( [great_outdoors_company].[Products].[Products].[Product line] , 2 , [Revenue] )
Appendix A: Calculation Components Result: Returns the top two revenues for the Product line set. Product line ------Camping Equipment Personal Accessories Revenue ------$89,713,990.92 $31,894,465.86
topPercent
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the topmost elements whose cumulative total is at least "numeric_expression1" percent of the total.
Syntax
topPercent ( set_expression , numeric_expression1 , numeric_expression2 )
Example
topPercent ( set ( [Camping Equipment] , [Golf Equipment] , [Mountaineering Equipment] ) , 40 , [2006] )
Result: For the set of Camping Equipment, Golf Equipment, and Mountaineering Equipment, returns the members whose percentage totals are greater than or equal to 40% for 2006.
topSum
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the topmost elements whose cumulative total is at least "numeric_expression1".
Syntax
topSum ( set_expression , numeric_expression1 , numeric_expression2 )
Example
topSum ( children ( [Products] ) , 16000000 , tuple ( [2006] , [great_outdoors_ company].[Measures].[Gross profit] ) )
tuple
Identifies a cell location (intersection) based on the specified members, each of which must be from a different dimension. This function implicitly includes the current member from all dimensions that are not otherwise specified in the arguments. The current member of any dimension not specified in the evaluating context is assumed to be the default member of that dimension. The value of this cell can be obtained with the "value" function.
Syntax
tuple ( member { , member } )
Example
tuple ( [Mountaineering Equipment] , [Fax] )
Appendix A: Calculation Components Result: Returns the Mountaineering Equipment sales by fax.
union
Returns data for "set_expression1" and "set_expression2". The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
Syntax
union ( set_expression1 , set_expression2 [ , all ] )
Example 1
union ( set ( [Camping Equipment] , [Golf Equipment] ) , set ( [Golf Equipment] , [Mountaineering Equipment] ) )
Result: Returns data for both sets as one new set, showing the Golf Equipment column only once.
Example 2
union ( set ( [Camping Equipment] , [Golf Equipment] ) , set ( [Golf Equipment] , [Mountaineering Equipment] ) , all )
Result: Returns data for both sets as one new set, showing the Golf Equipment column twice.
roleValue
Returns the value of the attribute that is associated with the role whose name is specified by "string" within the specified context. "Member" or "set_expression" is optional only in a number of limited circumstances, where it can be derived from another context. Applications can be made portable across different data sources and models by accessing attributes by role rather than by query item ID. For dimensionally-modeled relational (DMR) data sources, assignment of roles is the modeler's responsibility. Intrinsic roles that are defined for members of all data source types include: '_businessKey', '_memberCaption', '_memberDescription', '_memberUniqueName'. Additional roles can be defined in Framework Manager for each level in a hierarchy. For example, a Product type level may have an attribute column called "Type Shipping Container", and the Product level may have a "Product Shipping Container" attribute. Each of these could be assigned a custom role in Framework Manager called "Container". The property could then be referenced independently of the actual column name by using the roleValue function.
Syntax
roleValue ( string [ , member|set_expression ] )
Example 1
roleValue ( '_memberCaption' , [Sales].[Product].[Product].[Product line] -> [all].[1] )
Example 2
roleValue ( '_businessKey' , [great_outdoors_company].[Years].[Years].[Year] )
Result: Returns the value of the attribute that is associated with the business key role.
Example 3
roleValue ( '_memberUniqueName' , [great_outdoors_company].[Years].[Years]. [Year] )
Result: Returns the value of the attribute that is associated with the MUN role.
[great_outdoors_company].[Years].[Years].[Year] ->:[PC].[Years (Root)].[2004010120041231] [great_outdoors_company].[Years].[Years].[Year] ->:[PC].[Years (Root)].[2005010120051231] [great_outdoors_company].[Years].[Years].[Year] ->:[PC].[Years (Root)].[2006010120061231]
rootMember
Returns the root member of a single-root hierarchy. This function appears in the Promotion Success sample report in the GO Data Warehouse (analysis) package.
Syntax
rootMember ( hierarchy )
rootMembers
Returns the root members of a hierarchy.
Syntax
rootMembers ( hierarchy )
Example
rootMembers ( [great_outdoors_company].[Years].[Years] )
Result: By Time
subset
Returns a subset of members in "set_expression" starting at "index_expression1" from the beginning. If the count "index_expression2" is specified, that many members are returned (if available). Otherwise, all remaining members are returned.
Syntax
subset ( set_expression, index_expression1 [ , index_expression2 ] )
Example 1
subset ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) , 2 )
Result: Returns the members of the Product line set starting at the second member.
Mountaineering Equipment Outdoor Protection Personal Accessories
Example 2
subset ( members ( [great_outdoors_company].[Products].[Products].[Product line] ) , 2 , 2 )
Result: Returns two members of the Product line set starting at the second member.
Mountaineering Equipment Outdoor Protection
unique
Removes all duplicates from "set_expression". The remaining members retain their original order.
Syntax
unique ( set_expression )
value
Returns the value of the cell identified by "tuple". Note that the default member of the Measures dimension is the Default Measure.
Syntax
value ( tuple )
Example 1
value ( tuple ( [great_outdoors_company].[Years].[Years].[Year] ->:[PC].[Years (Root)].[20040101-20041231] , [great_outdoors_company].[Measures].[Revenue] ) )
Result: $34,750,563.50
Example 2
value ( tuple ( [2004] , [Camping Equipment] , [Revenue] ) )
Result: $20,471,328.88
DB2
ascii
Returns the ASCII code value of the leftmost character of the argument as an integer.
Syntax
ascii ( string_expression )
Example
ascii ( a )
ceiling
Returns the smallest integer greater than or equal to "numeric_expression".
Syntax
ceiling ( numeric_expression )
Example
ceiling ( 0.75 )
char
Returns a string representation of a date/time value or a decimal number.
Syntax
char ( expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
Example
chr ( 65 )
Result: Returns a, the character for the ASCII code value of 65.
concat
Returns a string that is the result of concatenating "string_expression1" with "string_expression2".
Syntax
concat ( string_expression1, string_expression2 )
Example
concat ( [Sales target (query)].[Sales staff].[First name], [Sales target (query)].[Sales staff].[Last name] )
Result: Returns the first name and last name; e.g., Bob Smith.
date
Returns a date from a single input value. "Expression" can be a string or integer representation of a date.
Syntax
date ( expression )
Example
date ( '1998-01-08' )
day
Returns the day of the month (1-31) from "date_expression". "Date_expression" can be a date value or a string representation of a date.
Syntax
day ( date_expression )
Example
day ( '1998-01-08' )
Result: Returns 8.
dayname
Returns a character string containing the data source-specific name of the day (for example, Sunday through Saturday or Sun. through Sat. for a data source that uses English, or Sonntag through Samstag for a data source that uses German) for the day portion of "date_expression". "Date_expression" can be a date value or a string representation of a date.
Syntax
dayname ( date_expression )
Example
dayname ( '1998-01-08' )
dayofweek
Returns the day of the week in "date_expression" as an integer in the range 1 to 7, where 1 represents Sunday. "date_expression" can be a date value or a string representation of a date.
Syntax
dayofweek ( date_expression )
Example
dayofweek ( '1998-01-08' )
Result: Returns 5.
dayofweek_iso
Returns the day of the week in "date_expression" as an integer in the range 1 to 7, where 1 represents Monday. "date_expression" can be a date value or a string representation of a date.
Syntax
dayofweek_iso ( date_expression )
Example
dayofweek_iso ( '1998-01-08' )
Result: Returns 4.
dayofyear
Returns the day of the year in "date_expression" as an integer in the range 1 to 366. "Date_expression" can be a date value or a string representation of a date.
Syntax
dayofyear ( date_expression )
Example
dayofyear ( current_date )
Result: Returns the day of the year for the current date; e.g., if it was January 28, the expression would return 28.
days
Returns an integer representation of a date. "Expression" can be a date value or a string representation of a date.
Syntax
days ( expression )
dec
Returns the decimal representation of "string_expression1" with precision "numeric_expression1", scale "numeric_expression2", and decimal character "string_expression2". "String_expression1" must be formatted as an SQL Integer or Decimal constant.
Syntax
dec ( string_expression1 [ , numeric_expression1 [ , numeric_expression2 [ , string_expression2 ] ] ] )
decimal
Returns the decimal representation of "string_expression1" with precision "numeric_expression1", scale "numeric_expression2" and decimal character "string_expression2". "String_expression1" must be formatted as an SQL Integer or Decimal constant.
Syntax
decimal ( string_expression1 [ , numeric_expression1 [ , numeric_expression2 [ , string_expression2 ] ] ] )
difference
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value returned
Appendix A: Calculation Components ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
Syntax
difference ( string_expression1 , string_expression2 )
Example 1
difference ([Sales target (query)].[Sales staff].[First name],[Sales (query)]. [Retailers].[Contact first name])
Result: 0
Example 2
difference ([Sales target (query)].[Sales staff].[First name],[Sales target (query)].[Sales staff].[First name])
Result: 4
digits
Returns the character string representation of a non-floating point number.
Syntax
digits ( numeric_expression )
double
Returns the floating-point representation of an expression. "Expression" can either be a numeric or string expression.
Syntax
double ( expression )
event_mon_state
Returns the operational state of a particular state monitor.
Syntax
event_mon_state ( string_expression )
float
Returns the floating-point representation of a number.
Syntax
float ( numeric_expression )
hex
Returns the hexadecimal representation of a value.
Syntax
hex ( expression )
hour
Returns the hour, an integer from 0 (midnight) to 23 (11:00 pm), from "time_expression". "Time_expression" can be a time value or a string representation of a time.
Syntax
hour ( time_expression )
Example
hour ( 01:22:45 )
Result: Returns 1.
insert
Returns a string where "integer_expression2" characters have been deleted from "string_expression1" beginning at "integer_expression1" and where "string_expression2" has been inserted into "string_ expression1" at its start. The first character in the string is at position 1.
Syntax
insert ( string_expression1, integer_expression1, integer_expression2, string_ expression2 )
integer
Returns the integer representation of an expression. "Expression" can be a numeric value or a string representation of a number.
Syntax
integer ( expression )
Example
integer ( 84.95 )
Result: 85
int
Returns the integer representation of an expression. "Expression" can be a numeric value or a string representation of a number.
Syntax
int ( expression )
Example
int ( 84.95 )
Result: 85
julian_day
Returns an integer value representing the number of days from January 1, 4712 BC (the start of the Julian date calendar) to the date value specified in "expression". "Expression" can be a date value or a string representation of a date.
Syntax
julian_day ( expression )
Example
julian_day ( '2009-06-29' )
Result: 2455012.22130739595741034
lcase
Returns "string_expression" with all uppercase characters shifted to lowercase.
Syntax
lcase ( string_expression )
Example
lcase ( [Sales (query)].[Sales staff].[Last name] )
left
Returns the leftmost "integer_expression" characters of "string_expression".
Syntax
left ( string_expression, integer_expression )
Example
left ( [Sales (query)].[Sales staff].[Last name] , 3 )
length
Returns the length of the operand in bytes. Exception: double byte string types return the length in characters.
Syntax
length ( expression )
Example
length ( [Sales (query)].[Sales staff].[Record start date] )
locate
Returns the starting position of the first occurrence of "string_expression1" within "string_ expression2". The search starts at position start "integer_expression" of "string_expression2". The first character in a string is at position 1. If "string_expression1" is not found, zero is returned.
Syntax
locate ( string_expression1, string_expression2 [ , integer_expression ] )
Example
locate ( A, [Sales (query)].[Sales staff].[Last name] , 2 )
Result: Returns the position of the character A in the last names starting at the second character of the last name.
long_varchar
Returns a long string.
Syntax
long_varchar ( string_expression )
ltrim
Returns "string_expression" with leading spaces removed.
Syntax
ltrim ( string_expression )
Example
ltrim ( [Sales (query)].[Sales staff].[Last name] )
microsecond
Returns the microsecond (time-unit) part of a value. "Expression" can be a timestamp or a string representation of a timestamp.
Syntax
microsecond ( expression )
Example
microsecond ( 01:45:34.056 )
midnight_seconds
Returns an integer value in the range 0 to 86400 representing the number of seconds between midnight and time value specified in the argument. "Expression" can be a time value, a timestamp or a string representation of a time. 852 IBM Cognos Report Studio
Syntax
midnight_seconds ( expression )
Example
midnight_seconds ( 01:45:34.056 )
minute
Returns the minute (an integer from 0-59) from "time_expression". "Time_expression" can be a time value, a timestamp, or a string representation of a time.
Syntax
minute ( time_expression )
Example
minute ( 01:45:34.056 )
month
Returns the month (an integer from 1-12) from "date_expression".
Syntax
month ( date_expression )
Example
month ( 2005-11-01 )
monthname
Returns a character string containing the data source-specific name of the month (for example, January through December or Jan. through Dec. for an English data source, or Januar through Dezember for a German data source) for the month portion of "date_expression".
Syntax
monthname ( date_expression )
Example
monthname ( 2005-11-01 )
Result: November
quarter
Returns the quarter in "date_expression" as a number in the range 1 to 4, where 1 represents January 1 through March 31.
Syntax
quarter ( date_expression )
Example
quarter ( 2005-11-01 )
Result: Returns 4.
radians
Returns the number of radians converted from "numeric_expression" degrees.
Syntax
radians ( numeric_expression )
repeat
Returns a string consisting of "string_expression" repeated "integer_expression" times.
Syntax
repeat ( string_expression, integer_expression )
Example
repeat ( XYZ, 3 )
replace
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3".
Syntax
replace ( string_expression1, string_expression2, string_expression3 )
Example
replace ( [Sales (query)].[Sales staff].[Position code], A, a )
Result: Returns position codes with all occurrences of "A" replaced by "a".
right
Returns the rightmost "integer_expression" characters of "string_expression".
Syntax
right ( string_expression, integer_expression )
Example
right ( [Sales (query)].[Sales staff].[Position code], 3 )
round
Returns "numeric_expression" rounded to "integer_expression" places to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression, integer_expression )
Example
round ( 3.14159265, 3 )
rtrim
Returns "string_expression" with trailing spaces removed.
Syntax
rtrim ( string_expression )
Example
rtrim ( [Sales (query)].[Sales staff].[Last name] )
Result: Returns last names with any spaces at the end of the name removed.
second
Returns the second (an integer from 0-59) from "time_expression".
Syntax
second ( time_expression )
Example
second ( 01:45:34.056 )
sign
Returns an indicator of the sign of "numeric_expression": +1 if "numeric_expression" is positive, 0 if zero, or -1 if negative.
Syntax
sign ( numeric_expression )
Example
sign ( [Revenue] )
smallint
Returns the small integer representation of a number.
Syntax
smallint ( expression )
soundex
Returns a 4 character string code obtained by systematically abbreviating words and names in "string_expression" according to phonetics. Can be used to determine if two strings sound the same. For example, does sound-of ('SMITH') = sound-of ('SMYTH').
Syntax
soundex ( string_expression )
space
Returns a string consisting of "integer_expression" spaces.
Syntax
space ( integer_expression )
Example
space ( 5 )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1.
Syntax
substr ( string_expression , integer_expression1 [ , integer_expression2 ] )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
table_name
Returns an unqualified name of a table or view based on the object name in "string_expression1" and the schema name given in "string_expression2". It is used to resolve aliases.
Syntax
table_name ( string_expression1 [ , string_expression2 ] )
table_schema
Returns the schema name portion of the two-part table or view name based on the object name in "string_expression1" and the schema name in "string_expression2". It is used to resolve aliases.
Syntax
table_schema ( string_expression1 [ , string_expression2 ] )
time
Returns a time from a value.
Syntax
time ( expression )
timestamp
Returns a timestamp from a value or a pair of values. "Expression1" must represent a date value, and "expression2" must represent a time value.
Syntax
timestamp ( expression1 [ , expression2 ] )
Example
timestamp ( 11 November 2005 , 12:00:00.000000 )
timestamp_iso
Returns a datetime in the ISO format (yyyy-mm-dd hh:mm:ss.nnnnnn) converted from the IBM format (yyyy-mm-dd-hh.mm.ss.nnnnnn). If "expression" is a time, it inserts the value of the CURRENT DATE for the date elements and zero for the fractional time element.
Syntax
timestamp_iso ( expression )
Example
timestamp_iso ( 11 November 2005 , 12:00:00.000000 )
timestampdiff
Returns an estimated number of intervals of type "expression1" based on the difference between two timestamps. "Expression2" is the result of subtracting two timestamp types and converting the result to CHAR. Valid values of "expression1" are: 1 Fractions of a second; 2 Seconds; 4 Minutes; 8 Hours; 16 Days; 32 Weeks; 64 Months; 128 Quarters; 256 Years.
Syntax
timestampdiff ( expression1, expression2 )
to_char
Returns the string representation of a timestamp with the format of "string_expression".
Syntax
to_char ( timestamp_expression , string_expression )
translate
Returns "string_expression1" in which characters from "string_expression3" are translated to the equivalent characters in "string_expression2". "String_expression4" is a single character that is used to pad "string_expression2" if it is shorter than "string_expression3". If only "string_expression1" is present, then this function translates it to uppercase characters.
Syntax
translate ( string_expression1 [ , string_expression2, string_expression3 [ , string_expression4 ] ] )
Example 1
translate ( 'abcdefg' )
Example 2
translate ( 'mnlop' , n, m , - )
trunc
Returns "numeric_expression1" truncated to "numeric_expression2" places to the right of the decimal point. If "numeric_expression2" is negative, "numeric_expression1" is truncated to the absolute value of "numeric_expression2" places to the left of the decimal point.
Syntax
trunc ( numeric_expression1, numeric_expression2 )
Example
trunc ( 3.14159265, 3 )
truncate
Returns "numeric_expression1" truncated to "numeric_expression2" places to the right of the decimal point. If "numeric_expression2" is negative, "numeric_expression1" is truncated to the absolute value of "numeric_expression2" places to the left of the decimal point.
Syntax
truncate ( numeric_expression1, numeric_expression2 )
Example
truncate ( 3141.59265, -3 )
Result: Returns 3.
ucase
Returns "string_expression" with all lowercase characters shifted to uppercase.
Syntax
ucase ( string_expression )
Example
ucase ( XY896Zbced789 )
value
Returns the first non-null argument (or null if all arguments are null). The Value function takes two or more arguments.
Syntax
value ( expression_list )
Example
value ( [Unit cost], [Unit price], [Unit sale price] )
varchar
Returns a VARCHAR representation of expression, with length numeric_expression.
Syntax
varchar ( expression [ , numeric_expression ] )
week
Returns the week of the year in "date_expression" as an integer value in the range 1 to 53.
Syntax
week ( date_expression )
Example
week ( 11 November 2005 )
year
Returns the year from "date_expression".
Syntax
year ( date_expression )
Example
year ( 11 November 2005 )
DB2 Math
log
Returns the natural logarithm of "numeric_expression".
Syntax
log ( numeric_expression )
log10
Returns the base ten logarithm of "numeric_expression".
Syntax
log10 ( numeric_expression )
rand
Generates a random number using "integer_expression" as a seed value.
Syntax
rand ( integer_expression )
DB2 Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression". 860 IBM Cognos Report Studio
Syntax
atan ( numeric_expression )
atanh
Returns the hyperbolic arctangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
atanh ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 , numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cosh
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cosh ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns "numeric_expression" radians converted to degrees.
Syntax
degrees ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
sinh
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sinh ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
tanh
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tanh ( numeric_expression )
Informix
cardinality
Returns the number of elements in a collection column (SET, MULTISET, LIST).
Syntax
cardinality ( string_expression )
char_length
Returns the number of logical characters in "string_expression". The number of logical characters can be distinct from the number of bytes in some East Asian locales.
Syntax
char_length ( string_expression )
concat
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
Syntax
concat ( string_expression1 , string_expression2 )
Example
concat ( [Sales (query)].[Sales staff].[First name], [Sales (query)].[Sales staff].[Last name] )
Result: Returns the first name and last name; e.g., Bob Smith.
date
Returns the date value of "string_expression", "date_expression", or "integer_expression".
Syntax
date ( string_expression|date_expression|integer_expression )
day
Returns an integer that represents the day of the month (1-31).
Syntax
day ( date_expression )
extend
Adjusts the precision of a datetime or date expression. The expression cannot be a quoted string representation of a date value. If you do not specify first and last qualifiers, the default qualifiers are year to fraction (3). If the expression contains fields that are not specified by the qualifiers, the unwanted fields are discarded. If the first qualifier specifies a larger (more significant) field than what exists in the expression, the new fields are filled in with values returned by the current function. If the last qualifier specifies a smaller (less significant) field than what exists in the expression, the new fields are filled in with constant values. A missing month or day field is filled in with 1, and missing hour to fraction fields are filled in with 0.
Syntax
extend ( date_expression , ' { ' year to second ' } ' )
Example
extend ( some_date_column , { year to second } )
hex
Returns the hexadecimal encoding of "integer_expression".
Syntax
hex ( integer_expression )
initcap
Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. A word begins after any character other than a letter. Thus, in addition to a blank space, symbols such as commas, periods, and colons can introduce a new word.
Syntax
initcap ( string_expression )
length
Returns the number of bytes in "string_expression", not including any trailing blank spaces. For byte or text "string_expression", length returns the full number of bytes, including any trailing blank spaces.
Syntax
length ( string_expression )
lpad
Returns "string_expression1" left-padded by "string_expression2" to the total number of characters specified by "integer_expression". The sequence of "string_expression2" occurs as many times as necessary to make the return string the length specified by "integer_expression".
Syntax
lpad ( string_expression1 , integer_expression , string_expression2 )
mdy
Returns a type date value with three expressions that evaluate to integers that represent the month (integer_expression1), day (integer_expression2), and year (integer_expression3).
Syntax
mdy ( integer_expression1 , integer_expression2 , integer_expression3 )
month
Returns an integer corresponding to the month portion of "date_expression".
Syntax
month ( date_expression )
nvl
Returns the value of "expression1" if "expression1" is not NULL. If "expression1" is NULL, then returns the value of "expression2".
Syntax
nvl ( expression1 , expression2 )
Example
nvl ( [Unit sale price] , [Unit price] )
Result: Returns the unit sale price, or returns the unit price if the unit sale price is NULL.
octet_length
Returns the number of bytes in "string_expression", including any trailing spaces.
Syntax
octet_length ( string_expression )
replace
Returns "string_expression1" in which every occurrence of "string_expression2" is replaced by "string_expression3". If you omit the "string_expression3" option, every occurrence of "string_ expression2" is omitted from the return string.
Syntax
replace ( string_expression1 , string_expression2 [ , string_expression3 ] )
Example
replace ( [Sales (query)].[Products].[Product line code] , - )
Result: Returns all product line codes without the character "-"
round
Returns the rounded value of "numeric_expression". If you omit "integer_expression", the value is rounded to zero digits or to the units place. The digit range of 32 (+ and -) refers to the entire decimal value. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression [ , integer_expression ] )
Example
round (125, -1)
Result: 130
rpad
Returns "string_expression1" right-padded by "string_expression2" to the total number of characters specified by "integer_expression". The sequence of "string_expression2" occurs as many times as necessary to make the return string the length specified by "integer_expression".
Syntax
rpad ( string_expression1 , integer_expression , string_expression2 )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1. If you omit "integer_expression2", returns the substring of "string_expression" that starts at position "integer_expression1" and ends at the end of "string_expression".
Syntax
substr ( string_expression , integer_expression1 [ , integer_expression2 ] )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
to_char
Returns the character string "date_expression" with the specified "string_expression" formatting. You can use this function only with built-in data types.
Syntax
to_char ( date_expression , string_expression )
to_date
Returns "string_expression1" as a date according to the date format you specify in "string_ expression2". If "string_expression1" is NULL, then a NULL value is returned.
Syntax
to_date ( string_expression1 , string_expression2 )
trunc
Returns the truncated value of "numeric_expression". If you omit "integer_expression", then "numeric_expression" is truncated to zero digits or to the units place. The digit limitation of 32 (+ and -) refers to the entire decimal value.
Syntax
trunc ( numeric_expression [ , integer_expression ] )
weekday
Returns an integer that represents the day of the week of "date_expression". Zero (0) represents Sunday, one (1) represents Monday, and so on.
Syntax
weekday ( date_expression )
year
Returns a four-digit integer that represents the year of "date_expression".
Syntax
year ( date_expression )
Informix Math
log10
Returns the logarithm of "numeric_expression" to base 10.
Syntax
log10 ( numeric_expression )
logn
Returns the natural logarithm of "numeric_expression".
Syntax
logn ( numeric_expression )
root
Returns the root value of "numeric_expression1". Requires at least one numeric argument (the radians argument). If only "numeric_expression1" is supplied, 2 is used as a default value for "numeric_expression2". Zero cannot be used as the value of "numeric_expression2".
Syntax
root ( numeric_expression1 [ , numeric_expression2 ] )
Informix Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression1".
Syntax
atan2 ( numeric_expression1 , numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
MS Access
ascii
Returns the ascii code value of the leftmost character of "string_expression".
Syntax
ascii ( string_expression )
ceiling
Returns the smallest integer greater than or equal to "numeric_expression".
Syntax
ceiling ( numeric_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
concat
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
Syntax
concat ( string_expression1 , string_expression2 )
Example
concat ( [Sales (query)].[Sales staff].[First name], [Sales (query)].[Sales staff].[Last name] )
Result: Returns the first name and last name; e.g., Bob Smith.
curdate
Returns a date value representing the current date of the computer that the database software runs on.
Syntax
curdate ()
curtime
Returns a time value representing the current time of the computer that the database software runs on.
Syntax
curtime ()
dayname
Returns a character string containing the data source-specific name of the day (for example, Sunday through Saturday or Sun. through Sat. for an English data source, or Sonntag through Samstag for a German data source) for the day portion of "date_expression".
Syntax
dayname ( date_expression )
dayofmonth
Returns the day of the month (1-31) from "date_expression". Returns the days field (a signed integer) from "interval_expression".
Syntax
dayofmonth ( date_expression|interval_expression )
dayofweek
Returns the day of the week in "date_expression" as an integer (1-7), where 1 represents Monday.
Syntax
dayofweek ( date_expression )
dayofyear
Returns the day of the year in "date_expression" as an integer (1-366).
Syntax
dayofyear ( date_expression )
hour
Returns the hour from "time_expression" as an integer from 0 (midnight) to 23 (11:00 pm).
Syntax
hour ( time_expression )
instr
Searches "string_expression1" for the first occurrence of "string_expression2" and returns an integer specifying the position of "string_expression2". "Integer_expression1" sets the starting position for the search. If "integer_expression1" is omitted, the search begins at the first character position of "string_expression1". "Integer_expression2" specifies the type of string comparison. "Integer_expression1" is required if "integer_expression2" is specified.
Syntax
instr ( [ integer_expression1 , ] string_expression1 , string_expression2 [ , integer_expression2 ] )
lcase
Returns "string_expression" with all uppercase characters converted to lowercase.
Syntax
lcase ( string_expression )
left
Returns the leftmost "integer_expression" characters of "string_expression".
Syntax
left ( string_expression , integer_expression )
Example
left ( [Sales (query)].[Sales staff].[Last name] , 3 )
length
Returns the number of characters in "string_expression", excluding trailing blanks and the string termination character.
Syntax
length ( string_expression )
locate
Returns the starting position of the first occurrence of "string_expression1" within "string_ expression2". The search starts at position "integer_expression" of "string_expression2". The first character in a string is at position 1. If "string_expression1" is not found, then zero is returned.
Syntax
locate ( string_expression1 , string_expression2 [ , integer_expression ] )
ltrim
Returns "string_expression" with leading spaces removed.
Syntax
ltrim ( string_expression )
minute
Returns the minute (an integer from 0-59) from "time_expression".
Syntax
minute ( time_expression )
month
Returns the month (an integer from 1-12) from "date_expression".
Syntax
month ( date_expression )
monthname
Returns a character string containing the data source-specific name of the month (for example, January through December or Jan. through Dec. for an English data source, or Januar through Dezember for a German data source) for the month portion of "date_expression".
Syntax
monthname ( date_expression )
Example
monthname ( 2005-11-01 )
Result: November
now
Returns a datetime value representing the current date and time of the computer that the database software runs on.
Syntax
now ()
position
Returns the starting position of "string_expression1" in "string_expression2". The first character in a string is at position 1.
Syntax
position ( string_expression1 , string_expression2 )
quarter
Returns the quarter in "date_expression" as a number (1-4), where 1 represents January 1 through March 31.
Syntax
quarter ( date_expression )
right
Returns the rightmost "integer_expression" characters of "string_expression".
Syntax
right ( string_expression , integer_expression )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the
Appendix A: Calculation Components nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression , integer_expression )
Example
round (125, -1)
Result: 130
rtrim
Returns "string_expression" with trailing spaces removed.
Syntax
rtrim ( string_expression )
Example
rtrim ( [Sales (query)].[Sales staff].[Last name] )
Result: Returns last names with any spaces at the end of the name removed.
sign
Returns an indicator of the sign of "numeric_expression", +1 if positive, 0 if zero, or -1 if negative.
Syntax
sign ( numeric_expression )
space
Returns a string consisting of "integer_expression" spaces.
Syntax
space ( integer_expression )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1.
Syntax
substr ( string_expression , integer_expression1 , integer_expression2 )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
substring
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1.
Syntax
substring ( string_expression , integer_expression1 , integer_expression2 )
Example
substring ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
truncate
Returns "string_expression" with trailing spaces removed.
Syntax
truncate ( string_expression )
ucase
Returns "string_expression" with all lowercase characters converted to uppercase.
Syntax
ucase ( string_expression )
week
Returns the week of the year in "date_expression" as an integer value (1-53), where 1 represents the first week of the year.
Syntax
week ( date_expression )
year
Returns the year from "date_expression".
Syntax
year ( date_expression )
MS Access Cast
cast_decimal
Returns the value of "expression" cast as a decimal.
Syntax
cast_decimal ( expression )
cast_float
Returns the value of "expression" cast as a float.
Syntax
cast_float ( expression )
cast_integer
Returns the value of "expression" cast as an integer.
Syntax
cast_integer ( expression )
Example
cast_integer ( 84.95 )
Result: 84
cast_numeric
Returns "string_expression" cast as a numeric value.
Syntax
cast_numeric ( string_expression )
cast_real
Returns the value of "expression" cast as a real value.
Syntax
cast_real ( expression )
cast_smallint
Returns "expression" cast as a small integer.
Syntax
cast_smallint ( expression )
cast_varchar
Returns the value of "expression" cast as a variable character field.
Syntax
cast_varchar ( expression )
MS Access Math
log
Returns the natural logarithm of "numeric_expression".
Syntax
log ( numeric_expression )
rand
Generates a random number using "integer_expression" as a seed value.
Syntax
rand ( integer_expression )
MS Access Trigonometry
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Netezza
ascii
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
Syntax
ascii ( string_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
decode
Compares "expr" to each search value one by one. If "expr" is equal to a search, then it returns the corresponding result. If no match is found, it returns "default". If "default" is omitted, it returns null.
Syntax
decode ( expr , search , result [ , search , result]... [ , default] )
initcap
Returns "string_expression", with the first letter of each word in uppercase, all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
Syntax
initcap ( string_expression )
instr
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative then the search is backwards from the end of "string_expression1". Returns an integer indicating the position of "string_expression2".
Syntax
instr ( string_expression1 , string_expression2 [ , integer_expression1 [ , integer_expression2 ] ] )
lpad
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1 , integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
months_between
Returns the number of months from "date_expression1" to "date_expression2". If "date_expression1" is later than "date_expression2" then the result will be a positive number. The days and time portions of the difference are ignored, i.e., the months are not rounded, except if "date_expression1" and "date_expression2" are the last days of a month.
Syntax
months_between ( date_expression1 , date_expression2 )
next_day
Returns the datetime of the first weekday named by "string_expression" that is later than "datetime_ expression". The return value has the same hours, minutes, and seconds as "datetime_expression".
Syntax
next_day ( datetime_expression , string_expression )
nvl
Returns "expression" if not null, otherwise returns "constant". Valid for "numeric_expression", "string_expression", "date_expression", and "time_expression".
Syntax
nvl ( expression , constant )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point; for example, round (125, -1) rounds to 130.
Syntax
round ( numeric_expression [ , integer_expression ] )
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used. 878 IBM Cognos Report Studio
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1". The first character in "string_expression" is at position 1. "Integer_expression2" can be used to select fewer characters; by default it selects characters to the end of the string.
Syntax
substr ( string_expression , integer_expression1 [ , integer_expression2 ] )
{current_db}
Syntax
{current_db}
{current_user}
Syntax
{current_user}
{session_user}
Syntax
{session_user}
to_char
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
Syntax
to_char ( expression [ , string_expression ] )
to_date
Converts "string_expression1" to a datetime value as specified by the format "string_expression2".
Syntax
to_date ( string_expression1 , string_expression2 )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
Syntax
to_number ( string_expression1 , string_expression2 )
translate
Returns "string_expression1", with all occurrences of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
date_trunc
Truncates "date_expression1" to a value as specified by the format "string_expression1".
Syntax
date_trunc ( string_expression1 , date_expression1 )
trunc
Truncates digits from "numeric_expression1" using "numeric_expression2" as the precision.
Syntax
trunc ( numeric_expression1 [ , numeric_expression2 ] )
version
Returns the "string_expression1" value of the database version.
Syntax
version ()
Netezza Math
log
Returns the logarithm of "numeric_expression2" to the base "numeric_expression1".
Syntax
log ( numeric_expression1 , numeric_expression2 )
Netezza Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 , numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
degrees
Returns the degrees where "numeric_expression" is an angle expressed in radians.
Syntax
degrees ( numeric_expression )
radians
Returns the radians where "numeric_expression" is an angle expressed in degrees. User Guide 881
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Netezza Fuzzy
le_dst
Returns a value indicating how different the two input strings are, calculated according to the Levenshtein edit distance algorithm.
Syntax
le_dst ( string_expression1 , string_expression2 )
dle_dst
Returns a value indicating how different the two input strings are, calculated according to the Damerau-Levenshtein distance algorithm
Syntax
dle_dst ( string_expression1 , string_expression2 )
Netezza Phonetic
nysiis
Returns a Soundex representation of "string_expression" using the New York State Identification and Intelligence System (NYSIIS) variation of Soundex.
Syntax
nysiis ( string_expression )
dbl_mp
Returns a composite 32-bit value of "string_expression".
Syntax
dbl_mp ( string_expression )
pri_mp
Returns the 4 character primary metaphone string from "numeric_expression" returned by dbl_mp.
Syntax
pri_mp ( numeric_expression )
sec_mp
Returns the 4 character secondary metaphone string from "numeric_expression" returned by dbl_mp.
Syntax
sec_mp ( numeric_expression )
score_mp
Returns a score for how closely "numeric_expression" and "numeric_expression2" match.
Syntax
score_mp ( numeric_expression , numeric_expression2 , numeric_expression3 , numeric_expression4 , numeric_expression5 , numeric_expression6 )
Oracle
add_months
Returns the datetime resulting from adding "integer_expression" months to "date_expression".
Syntax
add_months ( date_expression , integer_expression )
ascii
Returns a number representing the ASCII code value of the leftmost character of "string_expression".
Syntax
ascii ( string_expression )
Example
ascii ( 'A' )
ceil
Returns the smallest integer greater than or equal to "numeric_expression".
Syntax
ceil ( numeric_expression )
char_length
Returns the number of logical characters in "string_expression". The number of logical characters can be distinct from the number of bytes in some East Asian locales.
Syntax
char_length ( string_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
concat
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
Syntax
concat ( string_expression1 , string_expression2 )
Example
concat ( [Sales (query)].[Sales staff].[First name], [Sales (query)].[Sales staff].[Last name] )
Result: Returns the first name and last name; e.g., Bob Smith.
decode
Compares "expression" to each search value one by one. If "expression" is equal to a search, then it returns the corresponding result. If no match is found, it returns "default", or if "default" is omitted, it returns null.
Syntax
decode ( expression , search , result [ , search , result ]... [ , default ] )
dump
Returns internal representation of "expression" with the format of "numeric_expression1" starting from position "numeric_expression2" for "numeric_expression3" characters.
Syntax
dump ( expression [ , numeric_expression1 [ , numeric_expression2 [ , numeric_ expression3 ] ] ] )
greatest
Returns the greatest value in "expression_list".
Syntax
greatest ( expression_list )
initcap
Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
Syntax
initcap ( string_expression )
instr
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative, then the search occurs backwards from the end of "string_expression1". Returns an integer indicating the position of "string_expression2".
Syntax
instr ( string_expression1, string_expression2 [ , integer_expression1 [ , integer_expression2 ] ] )
instrb
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative, then the search occurs backwards from the end of "string_expression1". Returns the position (byte number) where "string_expression2" was found.
Syntax
instrb ( string_expression1, string_expression2 [ , integer_expression1 [ , integer_expression2 ] ] )
least
Returns the least value in "expression_list".
Syntax
least ( expression_list )
length
Returns the number of characters in "string_expression".
Syntax
length ( string_expression )
lengthb
Returns the number of bytes in "string_expression".
Syntax
lengthb ( string_expression )
lpad
Returns "string_expression1" left-padded to the length defined by "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1, integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1" with leading characters removed up to the first character not in "string_expression2".
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
Example
ltrim ( 'xyxXxyAB' , 'xy' )
Result: XxyAB
months_between
Returns the number of months from "date_expression1" to "date_expression2". If "date_expression1" is later than "date_expression2" then the result will be a positive number. The days and time portion of the difference are ignored, so the months are not rounded unless "date_expression1" and "date_expression2" are the last days of a month.
Syntax
months_between ( date_expression1 , date_expression2 )
new_time
Returns the datetime in "new_timezone" for "datetime_expression" in "old_timezone". "Old_timezone" and "new_timezone" can be one of 'AST', 'ADT', 'BST', 'BDT', 'CST', 'CDT', 'EST', 'EDT', 'HST', 'HDT', 'MST', 'MDT', 'NST', 'PST', 'PDT', 'YST', or 'YDT'.
Syntax
new_time ( datetime_expression , old_timezone , new_timezone )
next_day
Returns the datetime of the first weekday named by "string_expression" that is later than "datetime_ expression". The return value has the same format as "datetime_expression".
Syntax
next_day ( datetime_expression , string_expression )
nls_initcap
Returns "string_expression1" with the first letter of each word in uppercase and all other letters in lowercase. A word begins after any character other than a letter. Thus, in addition to a blank space, symbols such as commas, periods, and colons can introduce a new word. "String_expression2" specifies the sorting sequence.
Syntax
nls_initcap ( string_expression1 [ , string_expression2 ] )
nls_lower
Returns "string_expression1" with all letters in lowercase. "String_expression2" specifies the sorting sequence.
Syntax
nls_lower ( string_expression1 [ , string_expression2 ] )
nls_upper
Returns "string_expression1" with all letters in uppercase. "String_expression2" specifies the sorting sequence.
Syntax
nls_upper ( string_expression1 [ , string_expression2 ] )
nvl
Returns "expression" unless it is null. If "expression" is null, returns "constant". Valid for "numeric_ expression", "string_expression", "date_expression", and "time_expression".
Syntax
nvl ( expression , constant )
Example
nvl ( [Unit sale price] , [Unit price] )
Result: Returns the unit sale price, or returns the unit price if the unit sale price is NULL.
replace
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3". If "string_expression3" is not specified, then it removes all occurrences of "string_expression2".
Syntax
replace ( string_expression1 , string_expression2 [ , string_expression3 ] )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression [ , integer_expression ] )
Example
round ( 125 , -1 )
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then occurrences of "string_expression2" are replaced with spaces.
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1" with the final characters removed after the last character not in "string_expression2". If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
Example
rtrim ( 'ABxXxyx' , 'xy' )
sign
Returns an indicator of the sign of "numeric_expression", +1 if positive, 0 if zero, or -1 if negative.
Syntax
sign ( numeric_expression )
soundex
Returns a character string containing the phonetic representation of "string_expression".
Syntax
soundex ( string_expression )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is omitted. The first character in "string_expression" is at position 1.
Syntax
substr ( string_expression , integer_expression1 [ , integer_expression2 ] )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
substrb
Returns the substring of "string_expression" that starts at position "numeric_expression1" and ends after "numeric_expression2" bytes. The first byte in "string_expression" is at position 1. If you omit "numeric_expression2", returns the substring of "string_expression" that starts at position "numeric_expression1" and ends at the end of "string_expression".
Syntax
substrb ( string_expression , numeric_expression1 [ , numeric_expression2 ] )
Example
substrb ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
{sysdate}
Returns a datetime value representing the current date and time of the computer that the database software runs on.
Syntax
{ sysdate }
to_char
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value. User Guide 889
Syntax
to_char ( expression [ , string_expression ] )
to_date
Converts "string_expression1" to a datetime value as specified by the format "string_expression2". "String_expression3" specifies the format elements, such as language.
Syntax
to_date ( string_expression1 [ , string_expression2 [ , string_expression3 ] ] )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2". "String_expression3" specifies the format elements, such as currency information.
Syntax
to_number ( string_expression1 , string_expression2 , string_expression3 )
translate
Returns "string_expression1" with all occurrences of each character in "string_expression2" replaced by the corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
trunc
Truncates "date_expression" using the format specified by "string_expression". For example, if "string_expression" is 'year', then "date_expression" is truncated to the first day of the year.
Syntax
trunc ( date_expression , string_expression )
Example
trunc ( 2003-08-22 , 'year' )
trunc
Truncates digits from "numeric_expression1" using "numeric_expression2" as the precision.
Syntax
trunc ( numeric_expression1 , numeric_expression2 )
{user}
Returns the username of the current Oracle user.
Syntax
{ user }
vsize
Returns the number of bytes in the internal representation of "expression". "Expression" must be a string expression.
Syntax
vsize ( expression )
Oracle Math
log
Returns the logarithm of "numeric_expression2" to the base "numeric_expression1".
Syntax
log ( numeric_expression1 , numeric_expression2 )
Oracle Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 ,numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cosh
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cosh ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
sinh
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sinh ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
tanh
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tanh ( numeric_expression )
Red Brick
ceil
Returns the smallest integer greater than or equal to "numeric_expression" or "string_expression". Note that "string_expression" must represent a valid numeric value.
Syntax
ceil ( numeric_expression|string_expression )
concat
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
Syntax
concat ( string_expression1 , string_expression2 )
Example
concat ( [Sales (query)].[Sales staff].[First name], [Sales (query)].[Sales staff].[Last name] )
Result: Returns the first name and last name; e.g., Bob Smith.
{current_user}
Returns the database username (authorization ID) of the current user.
Syntax
{ current_user }
date
Returns a date value. "Expression" can be either characters or a timestamp.
Syntax
date ( expression )
dateadd
Adds "interval" to "datetime_expression" and returns a result that is the same datetime data type as "datetime_expression". "Datepart" refers to the year, month, day, hour, minute, second. "Interval" must be an integer and "datetime_expression" can be a date, time, or timestamp.
Syntax
dateadd ( { datepart } , interval, datetime_expression )
datediff
Determines the difference between two datetime expressions and returns an integer result in "datepart" units. "Datepart" refers to a year, month, day, hour, minute, or second. "Datetime_ expression1" and "datetime_expression2" can be dates, times, or timestamps.
Syntax
datediff ( { datepart } , datetime_expression1, datetime_expression2 )
datename
Extracts "datepart" of "datetime_expression" and returns its value as a character string. "Datepart" refers to a year, month, day, hour, minute, or second. "Datetime_expression" can be a date, a time, or a timestamp.
Syntax
datename ( { datepart } , datetime_expression )
dec
Converts "expression" to a decimal value with the data type decimal (precision, scale). The default value of precision is 9. The default value of scale is 0.
Syntax
dec ( expression , [ precision , scale ] )
decimal
Converts "expression" to a decimal value with the data type decimal (precision, scale). The default value of precision is 9. The default value of scale is 0.
Syntax
decimal ( expression , [ precision , scale ] )
decode
Compares and converts "expression" to another value. If "expression" matches "target", it is replaced, otherwise it is replaced by "default" or null if no default is specified. The expressions can be any data type as long as they are all the same data type.
Syntax
decode ( expression , target , replacement [ ,default ] )
float
Converts "numeric_expression" into a double-precision floating-point value.
Syntax
float ( numeric_expression )
ifnull
Tests "expression" for missing values and replaces each one with "substitute". If "expression" is null, "substitute" is returned, otherwise it returns the value of "expression". The expressions can be any data type as long as they are all the same data type.
Syntax
ifnull ( expression, substitute )
int
Converts "numeric_expression" into an integer value and returns an integer value. If "numeric_ expression" is null, it returns null.
Syntax
int ( numeric_expression )
integer
Converts "numeric_expression" into an integer value and returns an integer value. If "numeric_ expression" is null, it returns null.
Syntax
integer ( numeric_expression )
Example
integer ( 84.95 )
Result: 85
length
Returns an integer result specifying the number of characters in "string_expression". If "string_expression" is null, it returns null.
Syntax
length ( string_expression )
lengthb
Returns an integer result specifying the number of bytes in "string_expression". If "string_expression" is null, it returns null.
Syntax
lengthb ( string_expression )
ltrim
Removes leading blanks from "string_expression". If "string_expression" is null, it returns null.
Syntax
ltrim ( string_expression )
nullif
Returns null if both "expression1" and "expression2" have the same value. If they have different values, the value of "expression1" is returned. "Expression1" and "expression2" can be any data type as long as they are the same data type.
Syntax
nullif ( expression1 , expression2 )
positionb
Returns an integer that is relative to the beginning byte position of "string_expression1" in "string_ expression2". If "string_expression1" is not located, the result is 0. If "string_expression1" is of zero length, the result is 1. If "string_expression1" is null, an error message is returned. If "string_ expression2" is null, the result is 0.
Syntax
positionb ( string_expression1, string_expression2 )
real
Returns a real value. If "numeric_expression" is null, it returns null.
Syntax
real ( numeric_expression )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression , integer_expression )
Example
round (125, -1)
Result: 130
rtrim
Removes trailing blanks from "string_expression". If "string_expression" is null, it returns null.
Syntax
rtrim ( string_expression )
Example
rtrim ( [Sales (query)].[Sales staff].[Last name] )
Result: Returns last names with any spaces at the end of the name removed.
sign
Determines the sign of "numeric_expression", and returns 1 for a positive value, 1 for a negative value, and 0 for zero.
Syntax
sign ( numeric_expression )
string
Converts "expression" to a character string. "Expression" can be either numeric or datetime.
Syntax
string ( expression [ , length [ , scale ] ] )
substr
Returns a substring of "string_expression" that begins at position "start_integer" and continues for "length_integer" characters. If "length_integer" is not specified, a substring from "start_integer" to the end of "string_expression" is returned.
Syntax
substr ( string_expression , start_integer , length_integer )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
substrb
Returns a substring of "string_expression" that begins at position "start_integer" and continues for "length_integer" bytes. If "length_integer" is not specified, a substring from "start_integer" to the end of "string_expression" is returned.
Syntax
substrb ( string_expression , start_integer , length_integer )
time
Creates a time value from "expression", which can be a character string or a time-stamp data type expression.
Syntax
time ( expression )
timestamp
Creates a time-stamp value from "timestamp_expression", which is a character string.
Syntax
timestamp ( timestamp_expression )
timestamp
Creates a time-stamp value from "time_expression" and "date_expression". If either "time_expression" or "date_expression" is null, the resulting time-stamp expression is also null.
Syntax
timestamp ( date_expression , time_expression )
to_char
Converts "source_date" to the character string specified by "format_string". "Source_date" can be a date, time, or timestamp data type.
Syntax
to_char ( source_date, format_string )
SQL Server
ascii
Returns a number representing the ascii code value of the leftmost character of "string_expression".
Syntax
ascii ( string_expression )
Example
ascii ( 'A' )
Result: 65
char
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
char ( integer_expression )
Example
char ( 65 )
Result: A
charindex
Searches "string_expression2" for the first occurrence of "string_expression1" and returns an integer. "Start_location" is the character position to start searching for "string_expression1" in "string_expression2". If "start_location" is not specified, is a negative number, or is zero, the search starts at the beginning of "string_expression2".
Syntax
charindex ( string_expression1 , string_expression2 [ , start_location ] )
{current_user}
Returns the name of the current user.
Syntax
{ current_user }
datalength
Returns the length in bytes of "string_expression".
Syntax
datalength ( string_expression )
dateadd
Returns the date resulting from the addition of "integer_expression" units (indicated by "datepart" (day, month, year)) to "date_expression".
Syntax
dateadd ( { datepart } , integer_expression , date_expression )
datediff
Returns the number of "datepart" (day, month, year) units between "date_expression1" and "date_expression2".
Syntax
datediff ( {datepart} , date_expression1 , date_expression2 )
Example
datediff ( {yy} , 1984-01-01 , 1997-01-01 )
Result: 13
datename
Returns "datepart" from "date_expression", which can be a datetime, smalldatetime, date, or time value as an ASCII string. Note that "datepart" must be a keyword representing a datepart or its abbreviation recognized by Microsoft SQL Server and must be enclosed in curly brackets.
Syntax
datename ( ' { ' datepart ' } ' , date_expression )
Example
datename ( {mm} , 2000-01-01 )
Result: January
datepart
Returns part of "date_expression" (for example, the month) as an integer. "date_expression" can be a datetime, smalldatetime, date, or time value. Note that "datepart" must be a keyword representing a datepart or its abbreviation recognized by Microsoft SQL Server and must be enclosed in curly brackets.
Syntax
datepart ( ' { ' datepart ' } ' , date_expression )
Example
datepart ( {wk} , 2000-01-01 )
day
Returns the day portion of "date_expression". Same as extract (day from date_expression).
Syntax
day ( date_expression )
difference
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value returned ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
Syntax
difference ( string_expression1 , string_expression2 )
Example 1
difference ([Sales target (query)].[Sales Staff].[First name],[Sales (query)]. [Retailers].[Contact first name])
Result: 0
Example 2
difference ([Sales target (query)].[Sales Staff].[First name],[Sales target (query)].[Sales Staff].[First name])
Result: 4
getdate
Returns a datetime value representing the current date and time of the computer that the database software runs on.
Syntax
getdate ()
left
Returns the leftmost "integer_expression" characters of "string_expression".
Syntax
left ( string_expression , integer_expression )
Example
left ( [Sales (query)].[Sales staff].[Last name] , 3 )
ltrim
Returns "string_expression" with leading spaces removed.
Syntax
ltrim ( string_expression )
month
Returns the month portion of "date_expression". Same as extract (month from date_expression).
Syntax
month ( date_expression )
patindex
Returns an integer that represents the starting position of the first occurrence of "string_expression1" in the "string_expression2". Returns 0 if "string_expression1" is not found. The % wildcard character must precede and follow "string_expression1", except when searching for first or last characters.
Syntax
patindex ( string_expression1 , string_expression2 )
Example
patindex ( '%po%', 'Report' )
Result: 3
replace
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3".
Syntax
replace ( string_expression1 , string_expression2 , string_expression3 )
replicate
Returns a string consisting of "string_expression" repeated "integer_expression" times.
Syntax
replicate ( string_expression , integer_expression )
reverse
Returns "string_expression" in reverse order.
Syntax
reverse ( string_expression )
right
Returns the rightmost "integer_expression" characters of "string_expression".
Syntax
right ( string_expression , integer_expression )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression , integer_expression )
Example
round (125, -1)
Result: 130
rtrim
Returns "string_expression" with trailing spaces removed.
Syntax
rtrim ( string_expression )
Example
rtrim ( [Sales (query)].[Sales staff].[Last name] )
Appendix A: Calculation Components Result: Returns last names with any spaces at the end of the name removed.
sign
Returns an indicator of the sign "numeric_expression": +1 if "numeric_expression" is positive, 0 if zero or -1 if negative.
Syntax
sign ( numeric_expression )
soundex
Returns a four character string representing the sound of the words in "string_expression".
Syntax
soundex ( string_expression )
space
Returns a string consisting of "integer_expression" spaces.
Syntax
space ( integer_expression )
str
Returns a string representation of "numeric_expression" where "integer_expression1" is the length of the string returned and "integer_expression2" is the number of decimal digits.
Syntax
str ( numeric_expression [ , integer_expression1 [ , integer_expression2 ] ] )
stuff
Returns a string where "integer_expression2" characters have been deleted from "string_expression1" beginning at "integer_expression1", and where "string_expression2" has been inserted into "string_ expression1" at its start. The first character in a string is at position 1.
Syntax
stuff ( string_expression1 , integer_expression1 , integer_expression2 , string_ expression2 )
year
Returns the year portion of "date_expression". Same as extract (year from date_expression).
Syntax
year ( date_expression )
Syntax
log ( numeric_expression )
log10
Returns the base ten logarithm of "numeric_expression".
Syntax
log10 ( numeric_expression )
pi
Returns the constant value of pi as a floating point value.
Syntax
pi ()
rand
Generates a random number using "integer_expression" as the seed value.
Syntax
rand ( integer_expression )
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atn2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression1".
Syntax
atn2 ( numeric_expression1, numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns "numeric_expression" radians converted to degrees.
Syntax
degrees ( numeric_expression )
radians
Returns the number of radians converted from "numeric_expression" degrees.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Teradata
account
Returns the account string for the current user.
Syntax
{account}
add_months
Returns the date or the datetime resulting from adding "integer_expression" months to "date_expression" or "datetime_expression".
Syntax
add_months ( date_expression|datetime_expression , integer_expression )
bytes
Returns the number of bytes contained in "byte_expression". "Byte_expression" is restricted to BYTE or VARBYTE.
Syntax
bytes ( byte_expression )
case_n
Evaluates "condition_expression_list" and returns the position of the first true condition, provided that no prior condition in the list evaluates to unknown. The keywords must be enclosed in curly brackets. No case is an optional condition that evaluates to true if every expression in the list evaluates to false. No case or unknown is an optional condition that evaluates to true if every expression in the list evaluates to false, or if an expression evaluates to unknown and all prior conditions in the list evaluate to false. Unknown is an optional condition that evaluates to true if an expression evaluates to unknown and all prior conditions in the list evaluate to false.
Syntax
case_n ( condition_expression_list [ , NO CASE|UNKNOWN|NO CASE OR UNKNOWN [ , UNKNOWN ] ] )
char2hexint
Returns the hexadecimal representation for "string_expression".
Syntax
char2hexint ( string_expression )
characters
Returns an integer value representing the number of logical characters or bytes contained in "string_ expression".
Syntax
characters ( string_expression )
database
Returns the name of the default database for the current user.
Syntax
{database}
date
Returns the current date.
Syntax
{date}
format
Returns the declared format for "expression" as a variable character string of up to 30 characters.
Syntax
format ( expression )
index
Returns the starting position of "string_expression2" in "string_expression1".
Syntax
index ( string_expression1 , string_expression2 )
log
Computes the base 10 logarithm of "numeric_expression". "Numeric_expression" must be a nonzero, positive, numeric expression.
Syntax
log ( numeric_expression )
nullif
Returns null if "scalar_expression1" and "scalar_expression2" are equal. Otherwise, it returns "scalar_expression1". "Scalar_expression1" and "scalar_expression2" can be any data type.
Syntax
nullif ( scalar_expression1 , scalar_expression2 )
nullifzero
If "numeric_expression" is zero, converts it to null to avoid division by zero.
Syntax
nullifzero ( numeric_expression )
profile
Returns the current profile for the session or null if none.
Syntax
{profile}
random
Returns a random integer number for each row of the results table. "Lower_bound" and "upper_bound" are integer constants. The limits for "lower_bound" and "upper_bound" range from -2147483648 to 2147483647 inclusive. "Upper_bound" must be greater than or equal to "lower_bound".
Syntax
random ( lower_bound , upper_bound )
role
Returns the current role for the session or null if none.
Syntax
{role}
session
Returns the number of the session for the current user.
Syntax
{session}
soundex
Returns a character string that represents the Soundex code for "string_expression".
Syntax
soundex ( string_expression )
substr
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1. If "integer_expression2" is omitted, returns the substring of "string_expression" that starts at position "integer_expression1" and ends at the end of "string_expression".
Syntax
substr ( string_expression , integer_expression1 [ , integer_expression2 ] )
Example
substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
time
Returns the current time based on a 24-hour day.
Syntax
{time}
type
Returns the data type defined for "expression".
Syntax
type ( expression )
user
Returns the user name of the current user.
Syntax
{user}
vargraphic
Returns a character string that represents the vargraphic code for "string_expression".
Syntax
vargraphic ( string_expression )
zeroifnull
Converts data from null to 0 to avoid errors created by a null value. If "numeric_expression" is not null, returns the value of "numeric_expression". If "numeric_expression" is a character string,
Appendix A: Calculation Components it is converted to a numeric value of float data type. If "numeric_expression" is null or zero, it returns zero.
Syntax
zeroifnull ( numeric_expression )
Teradata Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression". "Numeric_expression" must be between -1 and 1, inclusive.
Syntax
acos ( numeric_expression )
acosh
Returns the inverse hyperbolic cosine of "numeric_expression" where "numeric_expression" can be any real number equal to or greater than 1.
Syntax
acosh ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression". "Numeric_expression" must be between -1 and 1, inclusive.
Syntax
asin ( numeric_expression )
asinh
Returns the inverse hyperbolic sine of "numeric_expression" where "numeric_expression" can be any real number.
Syntax
asinh ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians where the arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The returned angle will be between - and radians, excluding .
Syntax
atan2 ( numeric_expression1, numeric_expression2 )
atanh
Returns the inverse hyperbolic tangent of "numeric_expression" where "numeric_expression" can be any real number between 1 and -1, excluding 1 and -1.
Syntax
atanh ( numeric_expression )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cosh
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" can be any real number.
Syntax
cosh ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
sinh
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" can be any real number.
Syntax
sinh ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
tanh
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" can be any real number.
Syntax
tanh ( numeric_expression )
SAP BW
SAP BW Trigonometry
arccos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
arccos ( numeric_expression )
arcsin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
arcsin ( numeric_expression )
arctan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
arctan ( numeric_expression )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
coshyp
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
coshyp ( numeric_expression )
sinhyp
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sinhyp ( numeric_expression )
tanhyp
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tanhyp ( numeric_expression )
SAP BW Math
log10
Returns the base ten logarithm of "numeric_expression".
Syntax
log10 ( numeric_expression )
Sybase
ascii
Returns a number representing the ascii code value of the leftmost character of "string_expression".
Syntax
ascii ( string_expression )
Example
ascii ( 'A' )
Result: 65
char
Converts "integer_expression" to a character value. Char is usually used as the inverse of ascii where "integer_expression" must be between 0 and 255. If the resulting value is the first byte of a multibyte character, the character may be undefined.
Syntax
char ( integer_expression )
charindex
Returns an integer that represents the starting position of "string_expression1" within "string_ expression2". If "string_expression1" is not found, zero is returned. If "string_expression1" contains wildcard characters, charindex treats them as literals.
Syntax
charindex ( string_expression1 , string_expression2 )
datalength
Returns the length in bytes of "string_expression".
Syntax
datalength ( string_expression )
dateadd
Returns the date resulting from adding "integer_expression" units indicated by datepart (day, month, year) to "date_expression". Note that "datepart" must be enclosed in curly brackets.
Syntax
dateadd ( ' { ' datepart ' } ' , integer_expression , date_expression )
Example
dateadd ( {dd} , 16 , 1997-06-16 )
datediff
Returns the number of units indicated by "datepart" (day, month, year) between "date_expression1" and "date_expression2". Note that "datepart" must be enclosed in curly brackets.
Syntax
datediff ( ' { ' datepart ' } ' , date_expression1 , date_expression2 )
Example
datediff ( {yy} , 1984-01-01 , 1997-01-01 )
Result: 13
datename
Returns "datepart" of "date_expression" as an ASCII string. "Date_expression" can be a datetime, smalldatetime, date, or time value. Note that "datepart" must be enclosed in curly brackets.
Syntax
datename ( ' { ' datepart ' } ' , date_expression )
Example
datename ( {mm} , 1999-05-01 )
Result: May
datepart
Returns "datepart" of "date_expression" as an integer. "Date_expression" can be a datetime, smalldatetime, date, or time value. Note that the datepart argument must be enclosed in curly brackets.
Syntax
datepart ( ' { ' datepart ' } ' , date_expression )
Example
datepart ( {mm} , 1999-05-01 )
Result: 5
day
Returns the day of the month (1-31) from "date_expression".
Syntax
day ( date_expression )
difference
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value that is returned ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
Syntax
difference ( string_expression1 , string_expression2 )
Example 1
difference ([Sales target (query)].[Sales staff].[First name],[Sales (query)]. [Retailers].[Contact first name])
Result: 0
Example 2
difference ([Sales target (query)].[Sales staff].[First name],[Sales target (query)].[Sales staff].[First name])
Result: 4
getdate
Returns current system date and time.
Syntax
getdate ()
left
Returns the leftmost "integer_expression" characters of "string_expression".
Syntax
left ( string_expression , integer_expression )
Example
left ( [Sales (query)].[Sales staff].[Last name] , 3 )
ltrim
Returns "string_expression" with any leading spaces removed.
Syntax
ltrim ( string_expression )
month
Returns the month number (1-12) from "date_expression".
Syntax
month ( date_expression )
patindex
Returns an integer representing the starting position of the first occurrence of "string_expression1" in "string_expression2" or returns 0 if "string_expression1" is not found. By default, patindex returns the offset in characters. The offset can be returned in bytes by setting the return type to bytes. The % wildcard character must precede and follow the pattern in "string_expression1", except when searching for first or last characters.
Syntax
patindex ( string_expression1 , string_expression2 [ using {bytes|chars| characters} ] )
rand
Returns a random float value between 0 and 1, using the optional "integer_expression" as a seed value.
Syntax
rand ( integer_expression )
replicate
Returns a string with the same datatype as "string_expression", containing the same expression repeated "integer_expression" times or as many times as will fit into a 225-byte space, whichever is less.
Syntax
replicate ( string_expression , integer_expression )
reverse
Returns the reverse of "string_expression".
Syntax
reverse ( string_expression )
right
Returns the rightmost "integer_expression" characters of "string_expression".
Syntax
right ( string_expression , integer_expression )
round
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression, integer_expression )
Example
round (125, -1)
Result: 130
rtrim
Returns "string_expression" with trailing spaces removed. User Guide 917
Syntax
rtrim ( string_expression )
Example
rtrim ( [Sales (query)].[Sales staff].[Last name] )
Result: Returns last names with any spaces at the end of the name removed.
soundex
Returns a four-character soundex code for character strings that are composed of a contiguous sequence of valid single- or double-byte Roman letter.
Syntax
soundex ( string_expression )
space
Returns a string with "integer_expression" single-byte spacing.
Syntax
space ( integer_expression )
str
Returns a string representation of "numeric_expression". "Integer_expression1" is the length of the returned string and has a default setting of 10. "Integer_expression2" is the number of decimal digits and has a default setting of 0. Both are optional values.
Syntax
str ( numeric_expression [ , integer_expression1 [ , integer_expression2 ] ] )
stuff
Deletes "integer_expression2" characters from "string_expression1" starting at "integer_expression1", and inserts "string_expression2" into "string_expression1" at that position. To delete characters without inserting other characters, "string_expression2" should be null and not " ", which indicates a single space.
Syntax
stuff ( string_expression1 , integer_expression1 , integer_expression2 , string_ expression2 )
substring
Returns the substring of "string_expression" that starts at position "integer_expression1". "Integer_ expression2" specifies the number of characters in the substring.
Syntax
substring ( string_expression , integer_expression1 , integer_expression2 )
Example
substring ( [Sales (query)].[Sales staff].[Position code], 3 , 5 )
to_unichar
Returns a unichar expression with the value "integer_expression". If "integer_expression" is in the range 0xD800..0xDFFF, the operation is aborted. If the "integer_expression" is in the range 0..0xFFFF, a single Unicode value is returned. If "integer_expression" is in the range 0x10000..0x10FFFF, a surrogate pair is returned.
Syntax
to_unichar ( integer_expression )
uhighsurr
Returns 1 if the Unicode value at "integer_expression" is the high half of a surrogate pair (which should appear first in the pair). Otherwise, it returns 0. This function allows you to write explicit code for surrogate handling. Particularly, if a substring starts on a Unicode character where uhighsurr () is true, extract a substring of at least 2 Unicode values, as substr() does not extract just 1. Substr () does not extract half of a surrogate pair.
Syntax
uhighsurr ( string_expression , integer_expression )
ulowsurr
Returns 1 if the Unicode value at "integer_expression" is the low half of a surrogate pair (which should appear second in the pair). Otherwise, it returns 0. This function allows you to explicitly code around the adjustments performed by substr (), stuff (), and right (). Particularly, if a substring ends on a Unicode value where ulowsurr () is true, extract a substring of 1 less characters (or 1 more), since substr () does not extract a string that contains an unmatched surrogate pair.
Syntax
ulowsurr ( string_expression , integer_expression )
uscalar
Returns the Unicode scalar value for the first Unicode character in "string_expression". If the first character is not the high-order half of a surrogate pair, then the value is in the range 0..0xFFFF. If the first character is the high-order half of a surrogate pair, a second value must be a low-order half, and the return value is in the range 0x10000..0x10FFFF. If this function is called on a Unicode character expression containing an unmatched surrogate half, the operation is aborted.
Syntax
uscalar ( string_expression )
year
Returns the year from date_expression.
Syntax
year ( date_expression )
Sybase Math
log
Returns the natural logarithm of "numeric_expression".
Syntax
log ( numeric_expression )
log10
Returns the base ten logarithm of "numeric_expression".
Syntax
log10 ( numeric_expression )
pi
Returns the constant value of pi as a floating point value.
Syntax
pi ()
sign
Returns an indicator denoting the sign of "numeric_expression": +1 if "numeric_expression" is positive, 0 if "numeric_expression" is zero, or -1 if "numeric_expression" is negative.
Syntax
sign ( numeric_expression )
Sybase Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
atn2
Returns the angle, in radians, whose tangent is "numeric_expression1" / "numeric_expression2".
Syntax
atn2 ( numeric_expression1, numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns "numeric_expression" radians converted to degrees.
Syntax
degrees ( numeric_expression )
radians
Returns the degree equivalent of "numeric_expression". Results are of the same type as "numeric_ expression". For numeric or decimal expressions, the results have an internal precision of 77 and
Appendix A: Calculation Components a scale equal to that of "numeric_expression". When the money datatype is used, an internal conversion to float may cause some loss of precision.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
Postgres
Postgres String
overlay
Returns the "string_expression1" replacing "string_expression2" from character position numeric_expression.
Syntax
overlay ( string_expression1 , string_expression2 , numeric_expression1 [ , numeric_expression2 ] )
btrim
Returns string_expression1 after removing the longest string of characters in "string_expression2".
Syntax
btrim ( string_expression1 [ , string_expression2 ] )
initcap
Returns "string_expression", with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
Syntax
initcap ( string_expression )
lpad
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1 , integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
md5
Returns the MD5 hash of "string_expression1".
Syntax
md5 ( string_expression1 )
to_hex
Returns the hexadecimal string representation of "numeric_expression1".
Syntax
to_hex ( numeric_expression1 )
repeat
Returns the "string_expression" repeated "numeric_expression1" times.
Syntax
repeat ( string_expression , numeric_expression1 )
replace
Returns "string_expression" with "string_expression2" replaced with "string_expression3".
Syntax
replace ( string_expression , string_expression2 , string_expression3)
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
split_part
Returns "numeric_expression" field having split "string_expression1" on "string_expression2".
Syntax
split_part ( string_expression1 , string_expression2 , numeric_expression )
ascii
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
Syntax
ascii ( string_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
{current_catalog}
Syntax
{current_catalog}
{current_db}
Syntax
{current_db}
{current_schema}
Syntax
{current_schema}
{current_user}
Syntax
{current_user}
{session_user}
Syntax
{session_user}
Syntax
to_char ( expression , string_expression )
to_date
Converts "string_expression1" to a date value as specified by the format "string_expression2".
Syntax
to_date ( string_expression1 , string_expression2 )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
Syntax
to_number ( string_expression1 , string_expression2 )
to_timestamp
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
Syntax
to_timestamp ( string_expression1 , string_expression2 )
translate
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
date_trunc
Returns the timestamp to the specified precision.
Syntax
date_trunc ( string_expression , timestamp_expression )
version
Returns the string value of the database version.
Syntax
version ()
Postgres Math
log
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
Syntax
log ( numeric_expression1 [ , numeric_expression2 ] )
ln
Returns the natural logarithm of "numeric_expression1".
Syntax
ln ( numeric_expression )
cbrt
Returns the cube root of "numeric_expression1".
Syntax
cbrt ( numeric_expression )
div
Returns the integer quotient of "numeric_expression1" divided by "numeric_expression2".
Syntax
div ( numeric_expression1 , numeric_expression2 )
pi
Returns the constant of pi.
Syntax
pi ()
Postgres Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 , numeric_expression2 )
cos
Returns the cosine of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns the degrees where "numeric_expression" is an angle expressed in radians.
Syntax
degrees ( numeric_expression )
radians
Returns the radians where "numeric_expression" is an angle expressed in degrees.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Vertica
Vertica String
overlay
Returns the "string_expression1", replacing "string_expression2" from character position numeric_expression.
Syntax
overlay ( string_expression1 , string_expression2 , numeric_expression1 [ , numeric_expression2 ] )
btrim
Returns string_expression1 after removing the longest string of characters in string_expression2.
Syntax
btrim ( string_expression1 [ , string_expression2 ] )
initcap
Returns "string_expression", with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
Syntax
initcap ( string_expression )
lpad
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1 , integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
to_hex
Returns the hexadecimal string representation of "numeric_exp1".
Syntax
to_hex ( numeric_expression1 )
repeat
Returns the "string_expression" repeated "numeric_expression1" times.
Syntax
repeat ( string_expression , numeric_expression1 )
replace
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
Syntax
replace ( string_expression , string_expression2 , string_expression3 )
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
ascii
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
Syntax
ascii ( string_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
current_database
Returns the name of the current database.
Syntax
current_database ()
current_schema
Returns the name of the current schema
Syntax
current_schema ()
{current_user}
Syntax
{current_user}
{session_user}
Syntax
{session_user}
Syntax
to_char ( expression , string_expression )
to_date
Converts "string_expression1" to a date value as specified by the format "string_expression2".
Syntax
to_date ( string_expression1 , string_expression2 )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
Syntax
to_number ( string_expression1, string_expression2 )
to_timestamp
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
Syntax
to_timestamp ( string_expression1, string_expression2 )
translate
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
date_trunc
Returns the timestamp to the specified precision.
Syntax
date_trunc ( string_expression , timestamp_expression)
version
Returns the string value of the database version.
Syntax
version ()
Vertica Math
log
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2". User Guide 931
Syntax
log ( numeric_expression1 [ , numeric_expression2 ] )
ln
Returns the natural logarithm of "numeric_expression1".
Syntax
ln ( numeric_expression )
cbrt
Returns the cube root of "numeric_expression1".
Syntax
cbrt ( numeric_expression )
pi
Returns the constant of pi.
Syntax
pi ()
Vertica Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 , numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns the degrees where "numeric_expression" is an angle expressed in radians.
Syntax
degrees ( numeric_expression )
radians
Returns the radians where "numeric_expression" is an angle expressed in degrees.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_exp" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Paraccel
Paraccel String
overlay
Returns the "string_expression1", replacing "string_expression2" from character position numeric_expression.
Syntax
overlay ( string_expression1 , string_expression2 , numeric_expression1 [ , numeric_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
replace
Returns "string_expression", having replaced "string_expression2" with "string_expression3".
Syntax
replace ( string_expression , string_expression2 , string_expression3 )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
current_database
Returns the name of the current database.
Syntax
current_database ()
current_schema
Returns the name of the current schema
Syntax
current_schema ()
{current_user}
Syntax
{current_user}
{session_user}
Syntax
{session_user}
Syntax
to_char ( expression , string_expression )
to_date
Converts "string_expression1" to a date value as specified by the format "string_expression2".
Syntax
to_date ( string_expression1 , string_expression2 )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
Syntax
to_number ( string_expression1 , string_expression2 )
translate
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
version
Returns the string value of the database version.
Syntax
version ()
Paraccel Math
cbrt
Returns the cube root of "numeric_expression1".
Syntax
cbrt ( numeric_expression )
pi
Returns the constant of pi.
Syntax
pi ()
MySQL
MySQL String
lpad
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1 , integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
hex
Returns the hexadecimal string representation of "numeric_expression1".
Syntax
hex ( numeric_expression1 )
repeat
Returns the "string_expression" repeated "numeric_expression1" times.
Syntax
repeat ( string_expression , numeric_expression1 )
replace
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
Syntax
replace ( string_expression , string_expression2 , string_expression3 )
reverse
Returns "string_expression" reversed.
Syntax
reverse ( string_expression )
right
Returns the rightmost "numeric_expression" characters from "string_expression1".
Syntax
right ( string_expression1 , numeric_expression )
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
soundex
Returns a soundex string of "string_expression1".
Syntax
soundex ( string_expression1 )
ascii
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
Syntax
ascii ( string_expression )
database
Returns the current database name
Syntax
database ()
schema
Returns the current schema name
Syntax
schema ()
session_user
Return the user name returned by the client
Syntax
session_user ()
system_user
Return the user name returned by the client
Syntax
system_user ()
version
Returns the string value of the database version.
Syntax
version ()
MySQL Math
log
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
Syntax
log ( numeric_expression )
ln
Returns the natural logarithm of "numeric_expression1".
Syntax
ln ( numeric_expression )
pi
Returns the constant of pi.
Syntax
pi ()
MySQL Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 ,numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns the degrees where "numeric_expression" is an angle expressed in radians.
Syntax
degrees ( numeric_expression )
radians
Returns the radians where "numeric_expression" is an angle expressed in degrees.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Greenplum
Greenplum String
overlay
Returns the "string_expression1" replacing "string_expression2" from character position "numeric_ expression".
Syntax
overlay ( string_expression1 , string_expression2 , numeric_expression1 [ , numeric_expression2 ] )
btrim
Returns "string_expression1" after removing the longest string of characters in "string_expression2".
Syntax
btrim ( string_expression1 [ , string_expression2 ] )
initcap
Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
Syntax
initcap ( string_expression )
lpad
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
Syntax
lpad ( string_expression1 , integer_expression [ , string_expression2 ] )
ltrim
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
Syntax
ltrim ( string_expression1 [ , string_expression2 ] )
md5
Returns the MD5 hash of "string_expression1".
Syntax
md5 ( string_expression1 )
to_hex
Returns the hexadecimal string representation of "numeric_expression1".
Syntax
to_hex ( numeric_expression1 )
repeat
Returns the "string_expression" repeated "numeric_expression1" times.
Syntax
repeat ( string_expression , numeric_expression1 )
replace
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
Syntax
replace ( string_expression , string_expression2 , string_expression3)
rpad
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
Syntax
rpad ( string_expression1 , integer_expression [ , string_expression2 ] )
rtrim
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
Syntax
rtrim ( string_expression1 [ , string_expression2 ] )
split_part
Returns "numeric_expression" field having split "string_expression1" on "string_expression2".
Syntax
split_part ( string_expression1 , string_expression2 , numeric_expression )
ascii
Returns a number representing the ascii code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
Syntax
ascii ( string_expression )
chr
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
Syntax
chr ( integer_expression )
current_database
Returns the name of the current database. 942 IBM Cognos Report Studio
Syntax
current_database ()
current_schema
Returns the name of the current schema.
Syntax
current_schema ()
{current_user}
Syntax
{current_user}
{session_user}
Syntax
{session_user}
Syntax
to_char ( expression , string_expression )
to_date
Converts "string_expression1" to a date value as specified by the format "string_expression2".
Syntax
to_date ( string_expression1 , string_expression2 )
to_number
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
Syntax
to_number ( string_expression1 , string_expression2 )
to_timestamp
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
Syntax
to_timestamp ( string_expression1 , string_expression2 )
translate
Returns "string_expression1" with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
Syntax
translate ( string_expression1 , string_expression2 , string_expression3 )
date_trunc
Returns the timestamp to the specified precision.
Syntax
date_trunc ( string_expression , timestamp_expression)
version
Returns the string value of the database version.
Syntax
version ()
Greenplum Math
log
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
Syntax
log ( numeric_expression1 [ , numeric_expression2 ] )
ln
Returns the natural logarithm of "numeric_expression1".
Syntax
ln ( numeric_expression )
cbrt
Returns the cube root of "numeric_expression1".
Syntax
cbrt ( numeric_expression )
pi
Returns the constant of pi.
Syntax
pi ()
Greenplum Trigonometry
acos
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
Syntax
acos ( numeric_expression )
asin
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
Syntax
asin ( numeric_expression )
atan
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
Syntax
atan ( numeric_expression )
atan2
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_ expression2" / "numeric_expression1".
Syntax
atan2 ( numeric_expression1 ,numeric_expression2 )
cos
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cos ( numeric_expression )
cot
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
cot ( numeric_expression )
degrees
Returns the degrees where "numeric_expression" is an angle expressed in radians.
Syntax
degrees ( numeric_expression )
radians
Returns the radians where "numeric_expression" is an angle expressed in degrees.
Syntax
radians ( numeric_expression )
sin
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
sin ( numeric_expression )
tan
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
Syntax
tan ( numeric_expression )
Report Functions
_add_days
Returns the datetime resulting from adding "integer_expression" days to "timestamp_expression".
Syntax
_add_days ( timestamp_expression , integer_expression )
Example
_add_days ( 2007-01-14 00:00:00.000 , 3 )
_add_months
Returns the datetime resulting from adding "integer_expression" months to "timestamp_expression".
Syntax
_add_months ( timestamp_expression , integer_expression )
_add_years
Returns the datetime resulting from adding "integer_expression" years to "timestamp_expression".
Syntax
_add_years ( timestamp_expression , integer_expression )
_age
Returns a number by subtracting "timestamp_expression" from today's date.
Syntax
_age ( timestamp_expression )
Example
_age ([Query1].[Date]), where [Query1].[Date] is March 2, 2004, and today is July 8, 2009
Result: 50,406, where 5 is the number of years, 04 is the number of months, and 06 is the number of days.
_day_of_week
Returns the day of the week (between 1 and 7) for "timestamp_expression" where "integer_ expression" indicates which day of that week is day 1. To determine "integer_expression", choose the day of the week and count from Monday; for example, if you choose Wednesday, "integer_ expression" would be 3 because Wednesday is the third day from Monday.
Syntax
_day_of_week ( timestamp_expression , integer_expression )
Example
_day_of_week ( 2009-01-01 , 7 ), where 7 means that Sunday is the first day of the week.
Result: 5
_day_of_year
Returns the ordinal for the day of the year in "timestamp_ expression" (1 to 366). Also known as Julian day.
Syntax
_day_of_year ( timestamp_expression )
_days_between
Returns a positive or negative number representing the number of days between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", the result will be a negative number.
Syntax
_days_between ( timestamp_expression1 , timestamp_expression2 )
_days_to_end_of_month
Returns a number representing the number of days remaining in the month represented by "timestamp_expression".
Syntax
_days_to_end_of_month ( timestamp_expression )
_first_of_month
Returns a datetime that is the first day of the month represented by "timestamp_expression".
Syntax
_first_of_month ( timestamp_expression )
Example 1
_first_of_month ( 2009-05-04 00:00:00.000 )
Example 2
_first_of_month (current_date)
Result: Returns Jul 1, 2009 if the current date is July 30, 2009.
_last_of_month
Returns a datetime that is the last day of the month represented by "timestamp_expression".
Syntax
_last_of_month ( timestamp_expression )
_make_timestamp
Returns a timestamp constructed from "integer_expression1" (the year), "integer_expression2" (the month), and "integer_expression3" (the day). The time portion defaults to 00:00:00.000 .
Syntax
_make_timestamp ( integer_expression1 , integer_expression2 , integer_ expression3 )
_months_between
Returns a positive or negative number representing the number of months between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", the result will be a negative number.
Syntax
_months_between ( timestamp_expression1 , timestamp_expression2 )
_week_of_year
Returns the week number (1-53) of the year for "timestamp_expression". According to the ISO 8601, week 1 of the year is the first week to contain a Thursday, which is equivalent to the first week containing January 4th. A week starts on a Monday (day 1) and ends on a Sunday (day 7).
Syntax
_week_of_year ( timestamp_expression )
_years_between
Returns a positive or negative integer representing the number of years between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", a negative value is returned.
Syntax
_years_between ( timestamp_expression1 , timestamp_expression2 )
_ymdint_between
Returns a number representing the difference between "timestamp_expression1" and "timestamp_ expression2". This value has the form YYMMDD, where YY represents the number of years, MM represents the number of months, and DD represents the number of days.
Syntax
_ymdint_between ( timestamp_expression1 , timestamp_expression2 )
Example
_ymdint_between ( [Query1].[Date (close date)] , [Query1].[Date (ship date)] ), where [Query1].[Date (close date)] is February 20, 2004, and [Query1].[Date (ship date)] is January 19, 2004.
Result: 101, where 1 is the number of months and 01 is the number of days.
abs
Returns the absolute value of "numeric_expression". If "numeric_expression" is negative, a positive value is returned.
Syntax
abs ( numeric_expression )
AsOfDate
Returns the date value of the AsOfDate expression, if it is defined. Otherwise, AsOfDate returns the report execution date.
Syntax
AsOfDate ()
AsOfTime
Returns the time value of the AsOfTime expression, if it is defined. Otherwise, AsOfTime returns the report execution time.
Syntax
AsOfTime ()
BurstKey
Returns the burst key.
Syntax
BurstKey ()
BurstRecipients
Returns the distribution list of burst recipients.
Syntax
BurstRecipients ()
ceiling
Returns the smallest integer that is greater than or equal to "numeric_expression".
Syntax
ceiling ( numeric_expression )
CellValue
Returns the value of the current crosstab cell.
Syntax
CellValue ()
character_length
Returns the number of characters in "string_expression".
Syntax
character_length ( string_expression )
ColumnNumber
Returns the current column number.
Syntax
ColumnNumber ()
CubeCreatedOn
Returns the date and time when the cube was created. "Dimension" specifies from which cube to retrieve the metadata. If the dimension source is an IBM Cognos PowerCube (.mdc), the function returns a blank string because the initial creation date of a PowerCube is not maintained.
Syntax
CubeCreatedOn ( dimension )
CubeCurrentPeriod
Returns the current period for the cube. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeCurrentPeriod ( dimension )
CubeDataUpdatedOn
Returns the date time that data in the cube was last updated. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeDataUpdatedOn ( dimension )
CubeDefaultMeasure
Returns the name of the default measure for the cube. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeDefaultMeasure ( dimension )
CubeDescription
Returns the description of the cube. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeDescription ( dimension )
CubeIsOptimized
Returns "true" if the cube is optimized. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeIsOptimized ( dimension )
CubeName
Returns the name of the cube. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeName ( dimension )
CubeSchemaUpdatedOn
Returns the date time that the cube schema was last updated. "Dimension" specifies from which cube to retrieve the metadata.
Syntax
CubeSchemaUpdatedOn ( dimension )
exp
Returns the constant 'e' raised to the power of "numeric_expression". The constant 'e' is the base of the natural logarithm.
Syntax
exp ( numeric_expression )
Example
exp ( 2 )
Result: 7.389056
extract
Returns an integer representing the value of "date_part_expression" in "datetime_expression". "Date_part_expression" could be the year, month, day, hour, minute, or second.
Syntax
extract ( date_part_expression , datetime_expression )
Example 1
extract ( year , 2003-03-03 16:40:15.535 )
Result: 2003
Example 2
extract ( hour , 2003-03-03 16:40:15.535 )
Result: 16
floor
Returns the largest integer that is less than or equal to "numeric_expression".
Syntax
floor ( numeric_expression )
GetLocale
Returns the run locale (deprecated).
Syntax
GetLocale ()
HorizontalPageCount
Returns the current horizontal page count.
Syntax
HorizontalPageCount ()
HorizontalPageNumber
Returns the current horizontal page number.
Syntax
HorizontalPageNumber ()
InScope
Returns Boolean 1 (true) when the cell is in the scope of the data items and MUNs; otherwise, returns Boolean 0 (false).
Syntax
InScope ( dataItem , MUN, ... )
IsAccessible
Returns Boolean 1 (true) if the report is run with the accessibility features enabled. Use this function as a variable expression with a conditional block to make your reports accessible. For example, you can add a list or crosstab equivalent to a chart in reports that are run with accessibility features enabled.
Syntax
IsAccessible()
IsBursting
Returns Boolean 1 (true) when the report will be distributed to the recipient; otherwise, returns Boolean 0 (false).
Syntax
IsBursting ('recipientName')
IsCrosstabColumnNodeMember
Returns Boolean 1 (true) if the current node is a crosstab column node member.
Syntax
IsCrosstabColumnNodeMember ()
IsCrosstabRowNodeMember
Returns Boolean 1 (true) if the current node is a crosstab row node member.
Syntax
IsCrosstabRowNodeMember ()
IsFirstColumn
Returns Boolean 1 (true) if the current column is the first column.
Syntax
IsFirstColumn ()
IsInnerMostCrosstabColumnNodeMember
Returns Boolean 1 (true) if the current node is an innermost crosstab column node member.
Syntax
IsInnerMostCrosstabColumnNodeMember ()
IsInnerMostCrosstabRowNodeMember
Returns Boolean 1 (true) if the current node is an innermost crosstab row node member.
Syntax
IsInnerMostCrosstabRowNodeMember ()
IsLastColumn
Returns Boolean 1 (true) if the current column is the last column.
Syntax
IsLastColumn ()
IsLastInnerMostCrosstabColumnNodeMember
Returns Boolean 1 (true) if the current node is the last innermost crosstab column node member.
Syntax
IsLastInnerMostCrosstabColumnNodeMember ()
IsLastInnerMostCrosstabRowNodeMember
Returns Boolean 1 (true) if the current node is the last innermost crosstab row node member.
Syntax
IsLastInnerMostCrosstabRowNodeMember ()
IsOuterMostCrosstabColumnNodeMember
Returns Boolean 1 (true) if the current node is an outermost crosstab column node member.
Syntax
IsOuterMostCrosstabColumnNodeMember ()
IsOuterMostCrosstabRowNodeMember
Returns Boolean 1 (true) if the current node is an outermost crosstab row node member.
Syntax
IsOuterMostCrosstabRowNodeMember ()
IsPageCountAvailable
Returns Boolean 1 (true) if the page count is available for the current execution of the report; otherwise, returns Boolean 0 (false).
Syntax
IsPageCountAvailable ()
ln
Returns the natural logarithm of "numeric_expression".
Syntax
ln ( numeric_expression )
Locale
Returns the run locale.
Syntax
Locale ()
lower
Returns "string_expression" with all uppercase characters converted to lowercase. This function appears in the Bursted Sales Performance Report sample report in the GO Data Warehouse (query) package.
Syntax
lower ( string_expression )
mapNumberToLetter
Adds "integer_expression" to "string_expression".
Syntax
mapNumberToLetter ( string_expression , integer_expression )
Example
mapNumberToLetter ( 'a' , 1 )
Result: b
mod
Returns an integer value representing the remainder (modulo) of "integer_expression1" / "integer_ expression2".
Syntax
mod ( integer_expression1 , integer_expression2 )
ModelPath
Returns the model path.
Syntax
ModelPath ()
Now
Returns the current system time.
Syntax
Now ()
nullif
Returns null if "string_expression1" equals "string_expression2" (case-insensitive), otherwise returns "string_expression1".
Syntax
nullif ( string_expression1 , string_expression2 )
octet_length
Returns the number of bytes in "string_expression".
Syntax
octet_length ( string_expression )
PageCount
Returns the current page count. This function works only when the report output is Adobe PDF or Microsoft Excel. If you save the report output, this function works for all formats.
Syntax
PageCount ()
PageName
Returns the current page name.
Syntax
PageName ()
PageNumber
Returns the current page number.
Syntax
PageNumber ()
ParamCount
Returns the parameter count of "parameterName".
Syntax
ParamCount ('parameterName')
ParamDisplayValue
Returns a string that is the parameter display value of "parameterName". This function appears in the Recruitment Report sample report in the GO Data Warehouse (analysis) package.
Syntax
ParamDisplayValue ('parameterName')
ParamName
Returns the parameter name of "parameterName".
Syntax
ParamName ('parameterName')
ParamNames
Returns all parameter names.
Syntax
ParamNames ()
ParamValue
Returns the parameter value of "parameterName".
Syntax
ParamValue ('parameterName')
position
Returns the integer value representing the starting position of "string_expression1" in "string_ expression2". Returns 0 if "string_expression1" is not found.
Syntax
position ( string_expression1 , string_expression2 )
power
Returns "numeric_expression1" raised to the power of "numeric_expression2".
Syntax
power ( numeric_expression1 , numeric_expression2 )
Example
power ( 3 , 2 )
Result: 9
ReportAuthorLocale
Returns the author locale.
Syntax
ReportAuthorLocale ()
ReportCreateDate
Returns the date when the report was created.
Syntax
ReportCreateDate ()
ReportDate
Returns the report execution date and time.
Syntax
ReportDate ()
ReportDescription
Returns the report description. This function works only when the report is run from IBM Cognos Connection.
Syntax
ReportDescription ()
ReportID
Returns the report ID.
Syntax
ReportID ()
ReportLocale
Returns the run locale.
Syntax
ReportLocale ()
ReportName
Returns the report name. This function works only when the report is run from IBM Cognos Connection.
Syntax
ReportName ()
ReportOption
Returns the value of the run option variable identified by "optionName", such as attachmentEncoding, burst, cssURL, email, emailAsAttachment, emailAsURL, emailBody, emailSubject, emailTo, emailToAddress, history, metadataModel, outputEncapsulation, outputFormat, outputLocale, outputPageDefinition, outputPageOrientation, primaryWaitThreshold, print, printer, printerAddress, prompt, promptFormat, saveAs, saveOutput, secondaryWaitThreshold, verticalElements, or xslURL.
Syntax
ReportOption ('optionName')
ReportOutput
Returns the name of the output format, such as CSV, HTML, layoutDataXML, MHT, PDF, rawXML, singleXLS, spreadsheetML, XLS, XML, or XLWA.
Syntax
ReportOutput ()
ReportPath
Returns the report path. This function works only when the report is run from IBM Cognos Connection.
Syntax
ReportPath ()
ReportProductLocale
Returns the product locale.
Syntax
ReportProductLocale ()
ReportSaveDate
Returns the date when the report was last saved.
Syntax
ReportSaveDate ()
round
Returns "numeric_expression" rounded to the nearest value with "integer_expression" significant digits to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value with "integer_expression" significant digits to the left of the decimal point. Rounding takes place before data formatting is applied.
Syntax
round ( numeric_expression , integer_expression )
Example
round (125, -1)
Result: 130
RowNumber
Returns the current row.
Syntax
RowNumber ()
ServerLocale
Returns the locale of the server that runs the report.
Syntax
ServerLocale ()
ServerName
Returns the name of the web server where the run request originated from. The value may be empty if the request is executed from the scheduler.
Syntax
ServerName ()
sqrt
Returns the square root of "numeric_expression". "Numeric_expression" must not be a negative value.
Syntax
sqrt ( numeric_expression )
substring
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is -1. The first character in "string_expression" is at position 1.
Syntax
substring ( string_expression , integer_expression1 , integer_expression2 )
Example
substring ( [Sales (analysis)].[Sales staff].[Sales staff].[Sales staff].[Position code], 3 , 5 )
TOCHeadingCount
Returns the table of contents heading count for a specified heading level.
Syntax
TOCHeadingCount ( headingLevel )
Today
Returns the current system date.
Syntax
Today ()
trim
Returns "string_expression" trimmed of any leading and trailing blanks or trimmed of the character specified by "match_character_expression". "Trim_what_expression" may be "leading", "trailing", or "both" (default). "Match_character_expression" can be an empty string to trim blanks or can specify a character to be trimmed.
Syntax
trim ( trim_what_expression , match_character_expression , string_expression )
upper
Returns "string_expression" with all lowercase characters converted to uppercase.
Syntax
upper ( string_expression )
URLEncode
Returns the URL encoded value of the input text.
Syntax
URLEncode ('text')
Syntax
date2string ( date_expression )
date2timestamp
Converts "date_expression" to a timestamp. The time part of the timestamp will equal zero.
Syntax
date2timestamp ( date_expression )
date2timestampTZ
Converts "date_expression" to a timestamp with a time zone. The time and time zone parts of the timestamp will equal zero.
Syntax
date2timestampTZ ( date_expression )
DTinterval2string
Returns a date time interval as a string in DDDD HH:MM:SS.FFFFFFF or -DDDD HH:MM:SS.FFF format.
Syntax
DTinterval2string ( date_time_interval_expression )
DTinterval2stringAsTime
Returns a date time interval as a string in HHHH:MM:SS.FFFFFFF or HH:MM:SS.FFF format. Days are converted to hours.
Syntax
DTinterval2stringAsTime ( date_time_interval_expression )
int2DTinterval
Converts an integer to a date time interval. "String_expression" specifies what "integer_expression" represents: "ns" = nanoseconds, "s" = seconds (default), "m" = minutes, "h" = hours, "d" = days.
Syntax
int2DTinterval ( integer_expression , string_expression )
Example 1
int2DTinterval (1020,"h")
Example 2
int2DTinterval (1020,"s")
Result: 17 minutes
int2YMinterval
Converts "integer_expression" to a year month interval. "String_expression" specifies what "integer_ expression" represents: "y" = years, "m" = months (default).
Syntax
int2YMinterval ( integer_expression , string_expression )
number2string
Converts "numeric_expression" to a string, using the %g format specifier (C/C++ syntax).
Syntax
number2string ( numeric_expression )
string2date
Returns "string_expression" as a date in YYYY-MM-DD format.
Syntax
string2date ( string_expression )
string2double
Returns a floating point number. "String_expression" has the following form: "[whitespace] [sign] [digits] [digits] [ {d|D|e|E }[sign]digits]"
Syntax
string2double ( string_expression )
string2DTinterval
Returns "string_expression" as a date time interval in [-]DD HH:MM[:SS[.FFF]] format.
Syntax
string2DTinterval ( string_expression )
string2int32
Returns an integer. "String_expression" has the following form: "[whitespace] [{+|-}] [digits]"
Syntax
string2int32 ( string_expression )
string2int64
Returns a long integer. "String_expression" has the following form: "[whitespace] [{+|-}] [digits]"
Syntax
string2int64 ( string_expression )
string2time
Returns "string_expression" as a time in HH:MM:SS.FFFFFFF format.
Syntax
string2time ( string_expression )
string2timestamp
Returns "string_expression" as a timestamp in YYYY-MM-DD [T|t|[white space]+] HH:MM:SS.FFFFFFF format.
Syntax
string2timestamp ( string_expression )
string2timestampTZ
Returns "string_expression" in YYYY-MM-DD HH:MM:SS.FFFFFFF +HHMM or YYYY-MMDD [T|t] HH:MM:SS.FFF -HHMM format.
Syntax
string2timestampTZ ( string_expression )
string2YMinterval
Returns "string_expression" as a Year Month Interval in [-]YY MM format.
Syntax
string2YMinterval ( string_expression )
time2string
Returns a time as a string in HH:MM:SS.FFF format.
Syntax
time2string ( time_expression )
timestamp2date
Converts "timestamp_expression" to a date. The time part of the timestamp will be ignored.
Syntax
timestamp2date ( timestamp_expression )
timestamp2string
Returns a timestamp as a string in YYYY-MM-DD HH:MM:SS.FFFFFFF format.
Syntax
timestamp2string ( timestamp_expression )
timestamp2timestampTZ
Converts "timestamp_expression" to a timestamp with a time zone. The displacement part of the timestamp with the time zone will be zero.
Syntax
timestamp2timestampTZ ( timestamp_expression )
timestampTZ2date
Converts "timestamp_time_zone_expression" to a date. The time and time zone parts of the timestamp will be ignored.
Syntax
timestampTZ2date ( timestamp_time_zone_expression )
timestampTZ2string
Returns a timestamp with the time zone as a string in YYYY-MM-DD HH:MM:SS.FFFFFFF +HHMM or YYYY-MM-DD HH:MM:SS.FFF -HHMM format.
Syntax
timestampTZ2string ( timestamp_time_zone_expression )
timestampTZ2timestamp
Converts "timestamp_time_zone_expression" to a timestamp. The displacement part of the timestamp with the time zone will be ignored.
Syntax
timestampTZ2timestamp ( timestamp_time_zone_expression )
timeTZ2string
Returns a time with the time zone as a string in HH:MM:SS.FFF +HHMM or HH:MM:SS.FFFFFFF -HHMM format. For example, -05:30 means a timezone of GMT minus 5 hours and 30 minutes
Syntax
timeTZ2string ( timeTZ_expression )
YMinterval2string
Returns "year_month_interval_expression" as a string in (YY MM) or -(YY MM) format.
Syntax
YMinterval2string ( year_month_interval_expression )
Appendix B: Troubleshooting
This chapter describes some common problems you may encounter. For more troubleshooting problems, see the Troubleshooting section of the IBM Cognos Business Intelligence Administration and Security Guide.
Nested List Report Containing a Data Item That is Grouped More Than Once Does Not Run After Upgrade
When you upgrade a nested list report that contains a data item that is grouped in both lists, the report does not run and an error such as the following appears: OP-ERR-0199: The query is not supported. The dimensions on the edge are inconsistent. The dataItems from dimension="[Product line]" must be adjacent.
967
Appendix B: Troubleshooting This error occurs when the report is run against a dimensional data source and both lists are using the same query. This error does not occur if the report is run against a relational data source. For example, you have a list that contains the grouped items Product line and Product type and a nested list that contains the data items Year, Quarter, and Unit sale price. Year, Quarter, and Product line are grouped items in the nested list. To resolve the issue, delete the data item that is grouped in both lists from the inner list.
Appendix B: Troubleshooting This can occur if there is not enough room for all labels and the options Allow 45 Degree Rotation, Allow 90 Degree Rotation, and Allow Stagger are also set to false. IBM Cognos BI has no options for making the labels fit, so it skips every second label. The solution is to select either Allow 45 Degree Rotation, Allow 90 Degree Rotation, or Allow Stagger.
Metadata Change in Oracle Essbase Not Reflected in Reports and in the Studios
When there is a metadata change on the Oracle Essbase server, the change is not immediately reflected in the metadata tree in the studios. In addition, when a report is run, the report does not pick up the republished changes. To view the new structure, you must restart the IBM Cognos Content Manager server.
When using named sets, or sets that cover more than one level of a hierarchy, do not use sets from the same dimension in more than one place in the same report. They should appear on only one level of one edge.
Appendix B: Troubleshooting
The count summary function should normally exclude null values. To avoid this problem, for the first scenario, ensure that both operands do not return null values. For example, the original expression is [num1]+[num2]. Instead, use the following expression:
if ([num1] is null) then ( 0 ) else ([num1]) if ([num2] is null) then ( 0 ) else ([num2])
Appendix B: Troubleshooting aggregate function summary filters and detail filters that use a summary detail, summary, and context filters that select more than one member of a hierarchy that is used elsewhere on the report
If you are working with a SSAS 2005 data source, these characters may also appear in summary cells if you use an OR filter in the summary. To avoid this problem, do not use OR filters in summaries.
You run the report and notice that the query renders with some blanks cells. You then apply the simple detail filter [Amount]>1 and run the report. Only row labels are displayed and all data and columns are missing. In the Adventure Works cube, the [Account].[Accounts] attribute has a default member set to [Net Income]. When evaluating the GENERATE set expression, SSAS looks in the entire cube space and looks at all coordinates for the [Account] dimension. These coordinates include both [Account][Account Type].&[] and [Account].[Accounts].[Net Income]. Because these two coordinates don't exist within the same hierarchy, SSAS returns an empty set. To avoid this problem the SSAS administrator must set the default member in the cube to a member that exists in all other hierarchies.
Appendix B: Troubleshooting
Report Differences Between TM1 Executive Viewer and IBM Cognos BI with TM1 Data Sources
When using an IBM Cognos TM1 data source, comparable reports created in an IBM Cognos BI studio and in TM1 Executive Viewer may contain different cell values. This occurs because the TM1 Executive Viewer product uses an algorithm for selecting default members for non-projected dimensions that differs slightly from traditional OLAP clients. To avoid this problem, when filtering your reports in the IBM Cognos BI studios, use context filters that match the default selections shown in the Executive Viewer user interface. This ensures that the cell values in IBM Cognos BI match the values in Executive Viewer.
Appendix B: Troubleshooting
Notice that the summary value does not change to represent the total of the new values. This occurs because the within set aggregation used with dimensional packages does not take into account sets that are nested below the set that is summarized. To show the correct summary values, if the inner and outer sets do not belong to the same dimension, you can nest a copy of the inner summary item under the outer summary item, as follows.
Appendix B: Troubleshooting
Notice that the mx and mx 2 values are different, where mx2 is based on visible data, but mx is not. This result is correct. The following report uses an OLAP data source and contains the same summaries.
Appendix B: Troubleshooting
Notice that mx and mx2 values are now the same. Both summaries are based on visible data. The mx value is incorrect. Incorrect results also appear for footer summaries. To avoid this problem, when using OLAP data sources, ensure that the parameter that precedes the for clause is an aggregate function.
Round-off problems are not specific to IBM Cognos software. They can occur in any environment where rounding off occurs.
Appendix B: Troubleshooting
Appendix B: Troubleshooting Note that 0.005 is equivalent to 0.5%, which displays as either 0% or 1%, depending on floating point precision losses. In come cases, you may prefer control round-off errors by rounding values explicitly. For example, instead of [Profit %], use round([Profit %],2). Recalculate numbers every time instead of reusing calculations that might contain rounded off decimals.
There might be additional considerations for Microsoft Analysis Services 2005/2008, especially when comparing report results from different runs (as happens in Lifecycle Manager). Refer to Microsoft documentation for more information.
Appendix B: Troubleshooting The number of queries on the report will proportionally affect the report execution time. Does the report run slowly for everyone, or just for one user? If the report runs slowly for just one user, the issue may be due to something in that users environment, such as virus scanning, page file size or location settings, or their location on the network. Is the report burst or run often by many people? If many people are running the same report at the same time, you may need to scale your environment or consider using dispatcher routing rules to direct all requests for a specific package or group of users to a specific server or server group. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide. Do your queries require local processing? The following report elements require local processing: crosstabs and charts, master relationships, unions or joins, multiple fact queries, bursting, and non-vendor specific functions. Local processing requires the IBM Cognos server to compute operations on the result set returned by the database, which can impact the SQL execution time. Does your environment use a Custom Authentication Provider? Using a Custom Authentication Provider could cause a memory leak if the code is not destroying objects correctly. Have you reviewed the logs in the c10_location/logs directory and the audit logs? They may help you identify the source of the problem. Monitoring your processes, such as the JavaTM and Business Intelligence bus processes could also identify excessive memory use. Is your environment tuned correctly? For more information, see the Performance Tuning Settings for IBM Cognos 8 Business Intelligence and the IBM Cognos 8 Business Intelligence Performance Tuning Cheat Sheet documents available online at www.ibm.com. Have you recently upgraded? Ensure that any tuning settings that were applied to your previous installation are applied to the new environment. Ensure that your models have been verified, upgraded, and republished. Verify that the IBM Cognos Framework Manager governor that allows enhanced model portability at runtime is not enabled. Depending on your upgrade method, you may also need to open and save the reports again after upgrading. The following tips from the Report Studio User Guide may help you improve report performance. Change the order in which items are queried from the database. For more information, see "Working with Relational Queries" (p. 329) or "Working with Dimensional Queries" (p. 377). Create sections without creating master detail relationships. For more information, see "Divide Data into Sections" (p. 313). Share queries between lists and repeaters. For more information, see "Shared Queries Between Lists and Repeaters" (p. 64).
Appendix B: Troubleshooting Convert queries to SQL. For more information, see "Convert a Query to SQL" (p. 341) for relational reporting or "Convert a Query to SQL" (p. 391) for dimensional reporting. Avoid using functions with limited support. For more information, see "Quality of Service Indicators" (p. 344) for relational reporting or "Quality of Service Indicators" (p. 402) for dimensional reporting. Be aware of the limitations of creating expressions with SAP BW data sources. For more information, see "Using Microsoft Excel Functions with SSAS 2005 Data Sources" (p. 404). Use Select & Search prompts instead of value prompts if your list of prompts is long. For more information, see "Build Your Own Prompt and Prompt Page" (p. 423). Provide your own prompt values in a prompt to avoid accessing the database. For more information, see "Specify Prompt Values" (p. 433). Suppress null cells using filters. For more information, see "Suppress Null Cells Using Filters" (p. 500). Set page breaks without creating master detail relationships. For more information, see "Create a Page Break or Page Set" (p. 538). Do not modify IBM Cognos Analysis Studio set definitions. For more information, see "Analysis Studio Query Specification" (p. 555). Do not put filters on non-identifiers. Avoid combining large hierarchy levels and sets in a drill-through report in a way that creates large queries. For more information, see "Recommendation - Drilling Down in Very Large Data Sources" (p. 417). Use database functions when possible. For more information, see "Calculation Components" (p. 773). Use fixed width objects in PDF reports by setting their Size & Overflow properties. For more information, see "Set List Properties" (p. 111), "Set Crosstab Properties" (p. 118), "Customizing Chart Properties" (p. 147), or "Set Map Properties" (p. 205).
The following are Proven Practices documents on www.ibm.com that may help you improve your report performance. Performance Tuning Settings for IBM Cognos 8 Business Intelligence IBM Cognos 8 Business Intelligence Performance Tuning Cheat Sheet Writing Efficient OLAP Queries Cognos 8 Business Intelligence (Business Intelligence) on IBM AIX best practices IBM Cognos ReportNet and Java Heap
The Installation and Configuration Guide also includes a section on performance maintenance.
Appendix B: Troubleshooting
The summary values for Total(ReturnedProducts) and Minimum(ReturnedProducts) for all rows except Central Europe do not correspond to the member values in the crosstab. This means that the top three products returned in all regions except for Central Europe are not Bug Shield Lotion 89110, Bug Shield Extreme 90110, and Sun Shelter 30 94110. Note that the summary values for Total(Region) and Minimum(Region) do correspond to the visible member values. That is because those summary values represent the total and minimum quantities returned for those three products in each region. You can see what the top three products returned in each region are by dragging the columns to the right of the rows, creating the following single-edge crosstab.
Appendix B: Troubleshooting
To obtain summary values that reflect the visible members, modify the expression of the data item containing the context-dependent set function so that it includes a tuple that is locked to the default member of every hierarchy that appears on the opposite edge. For this example, modify the expression to the following:
topCount ([Product],3,tuple([Return quantity], defaultMember([Retailer site])))
where [Product] is the level and [Retailer site] is the hierarchy. When you run the report, all summary values reflect the visible members in the crosstab.
Appendix B: Troubleshooting
Appendix B: Troubleshooting If you choose to send the output by email, only valid recipients will receive an email. Although the output is sent as an attachment if you select the Attach the report check box, no link is generated if you select the Include a link to the report check box. The following error message appears in the run history for the report, where parameter 1 is the burst key, parameter 2 is the list of recipients, and parameter 3 contains the error messages returned by Content Manager: An error occurred while saving the output for the burst instance <param type="string" index="1"/> with the recipients (<param type="string" index="2"/>). Here are the details: <param type="string" index="3"/> Note: The list of recipients includes both the valid and invalid recipients. For example, a report is set up to burst on Country, and the recipients are managers. Running the report produces the following countries and recipients: Canada: John, Mary US: Peter, Frank France: Danielle, Maryse
Frank is an invalid recipient. The burst outputs for Canada and France are saved to Content Manager, but not the U.S. output. If you choose to send an email to each recipient and you selected the Include a link to the report check box, the email to Peter will not contain a link to the output for US. The error message that is generated will contain Peter and Frank as values for parameter 2 with no indication as to which is invalid.
A Report Upgraded from ReportNet Does Not Retain its Original Look
When you upgrade a report to IBM Cognos Business Intelligence, a new style sheet is applied that changes the look of the report.
Appendix B: Troubleshooting To preserve the formatting that was used in the original report, you can select a different style sheet. This retains the original look of the report and specifies that any new items added to the report, such as list columns or crosstab levels, have the original formatting applied to them.
Steps
1. In IBM Cognos Report Studio, from the File menu, click Report Properties. 2. Click Report styles and select 1.x styles.
Data Does Not Appear in a Target Report or the Wrong Data Appears
If no data appears when you drill through to a target report or if the wrong data appears, the problem might be data source conformance. The business keys might be different or might be mismatched. For example, the business key for Camping Equipment might be 100 in the data source for the source report and 1 in the data source for the target report, in which case no data appears in the target report. Another example might be that the business key for Camping Equipment is 100 in the data source for the source report but, in the data source for the target report, 100 is the business key for Golf Equipment, in which case the wrong data appears in the target report. To solve the problem, ensure that business keys have the same value in both data sources. If there are cases where data does not appear to match, contact your database administrator or data modeler.
Appendix B: Troubleshooting For more information about data source conformance, search for "conformed dimensions" and "business keys" in the Transformer User Guide and the Report Studio User Guide. You might also want to see "Unexpected or Empty Results When Drilling Through" (p. 987).
Appendix B: Troubleshooting
RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-69' UDA-SQL-0043 Error
You cannot run a report in Report Studio or Query Studio, and the following error messages appear: RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='69' UDA-SQL-0043 The underlying database detected an error during processing the SQL request.[NCR][ODBC Teradata Driver][Teradata Database] Partial string matching requires character operands These error messages do not indicate an IBM Cognos Application Firewall problem. There is a problem with your data source not converting numeric data items. Ask your administrator to consult the topic Enable Conversion of Numeric Search Keys to Strings in Queries in the IBM Cognos Business Intelligence Administration and Security Guide.
Steps to pass the business key (source value) from the source report to the target report
1. In the target report, create a filter with the following syntax: filter([Hierarchy or Level], roleValue('_businessKey', [Hierarchy or Level]) = ?Parameter?) For example: filter([Sales Cube].[Products].[Products].[Product type], roleValue('_businessKey',[Sales Cube]. [Products].[Products].[Product type]) = ?Prod Type?) 986 IBM Cognos Report Studio
Appendix B: Troubleshooting 2. In the source report, create a Query Calculation which is used to pass the business key (source value) to the target report by mapping it to the target parameter in the drill-through definition. Use the following syntax: roleValue('_businessKey', [Hierarchy or Level]) For example: roleValue('_businessKey', [sales_and_marketing].[Products].[Products].[Product type])
Appendix B: Troubleshooting When you drill through, instead of the business key, the caption is passed to the target. You might also want to see "Data Does Not Appear in a Target Report or the Wrong Data Appears" (p. 984). For more information about drill-through access, see the Drill-Through Access chapter in the IBM Cognos Business Intelligence Administration and Security Guide.
Keyboard Shortcuts
This product uses the following standard Microsoft Windows navigation keys.
Description
Opens the online help. Closes the Web browser window. Copies objects. Pastes objects.
Shortcut Keys
F1 Alt+F4 Ctrl+C Ctrl+V
989
Appendix C: Accessibility Features Avoid spelling and grammatical errors, as they cause the screen reading software to misinterpret the information. Avoid using features like calendar boxes and up and down selections on time controls. Instead use prompts such as check boxes, radio buttons, combo boxes, and multi-select boxes. Ensure that the target application is accessible when using embedded Web applications or drillthrough paths. Avoid using large, complex list or crosstab reports. Displaying the information in multiple simple lists or crosstab reports is more manageable for assistive technology users. Add alternate text to images, charts, and other visual objects so that screen readers can provide context for them. When using tables, add summary text to provide context for the table content. If the top cells in a table behave as headers, designate these cells as headers so that screen readers can identify the relationships.
Appendix C: Accessibility Features For information about the last four options, see the IBM Cognos Connection User Guide or the IBM Cognos Administration and Security Guide.
Steps
1. Select the image or chart object. 2. In the Properties pane, click the select ancestor button object. 3. Double-click the Alternate Text property. 4. Select Specified text and click the ellipsis (...) button. 5. In the Default text box, type a description for the object, and click Add. 6. In the Languages dialog box, select the languages that apply to your text. 7. Double-click a language and type the translation of the text for each language and click OK. and select the Image, Map, or chart
Appendix C: Accessibility Features For the report output to contain the summary text, you must enable the accessibility features for the report. For more information, see "Enable Accessible Report Outputs" (p. 990).
Steps
1. Select the crosstab, list, or table. 2. In the Properties pane, click the select ancestor button Table, or Table object. 3. Double-click the Summary Text property. 4. Select Specified text and click the ellipsis (...) button. 5. In the Default text box, type a description for the object, and click Add. 6. In the Languages dialog box, select the languages that apply to your text. 7. Double-click a language and type the translation of the text for each language. and select the Crosstab, List, Repeater
Steps
1. Select the table cells. 2. In the Properties pane, set the Table Header property to Yes.
Steps
1. Open IBM Cognos Report Studio with the sample GO Sales (query) package.
Appendix C: Accessibility Features 2. Create a new report with a pie chart. 3. Add data items to the chart. In the Insertable Objects pane, on the Source tab lowing: , do the fol-
Expand Sales (query) and Sales and then insert Quantity in the Default measure area. Expand Products and insert Product line in the Series (Pie Slices) area.
4. Run the report to see your chart. 5. Add alternate text for the pie chart: Select the chart and, in the Properties pane, double-click the Alternate Text property. Select Specified text and click the ellipsis (...) button. Type default text for the chart, such as A pie chart shows the quantity of sales by product line as a percentage of total sales. An equivalent list is below. If you want to add the alternate text in additional languages, click the add button 6. From the Toolbox tab , insert a Conditional Blocks object below the chart. .
7. Select the conditional block and, from the Properties pane, double-click the Block Variable property. 8. Under Variable, select New boolean variable and type a name for the variable, such as accessibility_condition. 9. In the Report Expression dialog box, specify the expression that defines the variable: From the Functions tab , expand Report Functions and insert the IsAccessible function
to the Expression Definition box. Type a closing bracket at the end of the function IsAccessible () and click OK.
10. Select the conditional block and in the Properties pane, change the Current Block property to Yes. 11. From the Toolbox tab , add a list inside the conditional block.
12. Add the same data items from the chart to the list. In the Insertable Objects pane, on the Source tab , do the following: Expand Sales (query) and Products and insert Product line in the list. Expand Sales and insert Quantity as the second column in the list.
13. Add summary text for the list Select the list and in the Properties pane, double-click the Summary Text property. Select Specified text and click the ellipsis (...) button. User Guide 993
Appendix C: Accessibility Features Type default text for the list, such as The first column lists all product lines and the second column lists sales quantities. If you want to add the alternate text in additional languages, click the add button .
14. Select the conditional block and in the Properties pane, change the Current Block property to No. 15. From the Run menu, click Run Options and select the Include accessibility features check box. 16. Run the report. Because we just chose to include the accessibility features, you see both the chart and the list. Also, when a screen reader encounters the image for the chart, it reads the alternate text that you added. If you clear the Include accessibility features check box and run the report again, you see only the chart.
Glossary
attribute
In dimensional models, a property that provides qualitative information about members of a level in a dimension. For example, the Store level within the Retailer dimension might have properties such as address or retail space. In general, dimensional attributes do not have measure values or rollups associated with them, but are used to locate or filter members. In relational models, a query item that is not a measure or identifier. When a query item is an attribute, it is not intended to be aggregated, or used for grouping or generating prompt pick lists. In BI modeling, a characteristic of an entity which is descriptive rather than a unique identifier or an aggregative measure. In TM1, a property that provides qualitative information about dimensions.
burst
To create several report results by running a single report once. For example, the user can create a report that shows sales for each employee, and run it once, sending different results to regional managers by bursting on region.
calculated member
A member of a dimension whose measure values are not stored but are calculated at run time using an expression.
cardinality
For OLAP data sources, the number of members in a hierarchy. The cardinality property for a hierarchy is used to assign solve orders to expressions. For relational data sources, a numerical indication of the relationship between two query subjects, query items, or other model objects.
cascading prompt
A prompt that uses values from a previous prompt to filter the values in the current prompt or pick list.
condition
An expression that yields a Boolean value. Conditions are used in query expressions, query filters, and Boolean report variables that can be used for conditional formatting, styles, data sources, layouts, and blocks.
Content Manager
The service that retrieves information from the content store, and saves information to the content store.
995
Glossary
cube
A multidimensional representation of data needed for online analytical processing, multidimensional reporting, or multidimensional planning applications.
data source
The source of data itself, such as a database or XML file, and the connection information necessary for accessing the data. In TM1, the file or data used as the source for the TurboIntegrator import process.
data tree
Within a studio, a structure that contains objects such as query subjects, query items, dimensions, levels, and members. A data tree is used as a palette of the available data that can be inserted into calculations, filters, display areas, and other authoring gestures.
dimension
In Cognos Planning, a list of related items such as Profit and Loss items, months, products, customers, and cost centers, including calculations. The rows, columns, and pages of a cube are created from dimensions. In Cognos BI, TM1, and Express, a broad grouping of descriptive data about a major aspect of a business, such as products, dates, or locations. Each dimension includes different levels of members in one or more hierarchies and an optional set of calculated members or special categories.
drill down
In a multidimensional representation of data, to access information by starting with a general category and moving downwards through the hierarchy of information. For example from Years to Quarters to Months. In TM1, to access information by starting with a general category and moving through the hierarchy of information. For example, in a database, to move from field to file to record.
drill up
To navigate from one level of data to a less detailed level. The levels are set by the structure of the data.
group
A collection of users who can share access authorities for protected resources.
hierarchy
The organization of a set of entities into a tree structure, with each entity (except the root) having one or more parent entities and an arbitrary number of child entities.
Glossary In Data Manager, a particular view of a business dimension. A hierarchy contains the definition of related reference data that is organized into a tree structure of members related as parents and children.
layout
The arrangement of printed matter on a screen or page, including margins, line spacing, type specification, header and footer information, indents, and more.
level
A set of entities or members that form one section of a hierarchy in a dimension and represent the same type of object. For example, a geographical dimension might contain levels for country, region, and city.
locale
A setting that identifies language or geography and determines formatting conventions such as collation, case conversion, character classification, the language of messages, date and time representation, and numeric representation.
measure
A performance indicator that is quantifiable and used to determine how well a business is operating. For example, measures can be Revenue, Revenue/Employee, and Profit Margin percent.
member
In Data Manager, a node in a reference structure.
model
In Data Manager, a system, consisting of fact data and metadata, that represents the aspects of a business.
namespace
For authentication and access control, a configured instance of an authentication provider that allows access to user and group information. In Framework Manager, namespaces uniquely identify query items, query subjects, and so on. You import different databases into separate namespaces to avoid duplicate names. In XML and XQuery, a uniform resource identifier (URI) that provides a unique name to associate with the element, attribute, and type definitions in an XML schema or with the names of elements, attributes, types, functions, and errors in XQuery expressions.
package
A subset of a model, which can be the whole model, to be made available to the Cognos server.
Glossary
page set
In Report Studio, a set of one or more designed pages which repeat in the report output for each instance of a chosen query item.
prompt
A report element that asks for parameter values before the report is run.
properties pane
Within a studio, a pane that provides an overview of the properties for selected data. The properties pane can also be used to make several changes and apply them at the same time, instead of repeating several different commands.
query
A request for information from a data source based on specific conditions: for example, a request for a list of all customers in a customer table whose balances are greater than $1000.
query item
A representation of a column of data in a data source. Query items may appear in a model or in a report and contain a reference to a database column, a reference to another query item, or a calculation.
query subject
A named collection of query items that are closely functionally related. Query subjects are defined using Framework Manager to represent relational data and form the set of available data for authoring reports in Query Studio and Report Studio. A query subject is similar to a relational view in that it can be treated as a table but does not necessarily reflect the data storage.
repeater
In Report Studio, a cell container that repeats values within itself with no predefined internal structure.
repeater table
In Report Studio, a table-like container that repeats cells across and down the page or row in the associated query.
report
A set of data deliberately laid out to communicate business information.
report output
The output produced as a result of executing a report specification against a data set.
report specification
An executable definition of a report, including query and layout rules, which can be combined with data to produce a report output.
Glossary
style sheet
A specification of formatting instructions that, when applied to structured information, provides a particular rendering of that information (for example, online or printed). Different style sheets can be applied to the same piece of structured information to produce different presentations of the information.
summary
In reporting and analysis, an aggregate value that is calculated for all the values of a particular level or dimension. Examples of summaries include total, minimum, maximum, average, and count.
template
In report authoring, a reusable report layout or style that can be used to set the presentation of a query or report. In Data Manager, a component that can be used to define reference structure attributes or dimension table columns together with their semantics.
work area
The area within a studio that contains the report, analysis, query, or agent currently being used.
Glossary
Index
Symbols
! characters, 357 * characters, 497 % calculations in dimensional reporting, 397 in relational reporting, 343 100% stacked charts, 144 3-D charts, 144 -- characters errors when filtering, 374 marking special cells, 497 troubleshooting in reports, 970 mapping functions from data sources, 323 member sets, 363 modes, 84 samples and time dimensions, 572 specifying aggregation properties in models, 317 troubleshooting running totals, 985 using a simple summary in dimensional reporting, 360 using simple summaries in relational reporting, 315 values in crosstabs and charts, 361 aliases in maps, 208 aligning objects, 449 alternate text accessibility, 991 alternative hypothesis, 236 Analysis Studio creating templates in Report Studio, 551 annotations chart baselines, 171 notes in charts, 169 ANOVA, 262 post hoc tests, 262 area charts, 133 arithmetic overflow errors, 985 attributes definition, 995 Auto Group & Summarize, 316 automating IBM Cognos BI using the IBM Cognos Software Development Kit, 88 averages moving and rolling, 364 axes in charts, 127 titles in maps, 207
A
absolute charts, 142 accessibility features, 989 keyboard shortcuts, 989 accessible reports, 989 adding alternate text, 991 adding summary text, 991 conditional blocks, 992 report output options, 990 specifying cell headers in tables, 992 active reports, 215 adding controls, 218 adding interactivity, 217 controls, 215 converting existing reports, 216 creating and managing active report variables, 217 defining connections between controls, 221 example, 227, 231 running, 226 saving in MHT format, 226 setting properties, 216 specifying reaction behavior of controls, 223 specifying selection behavior of controls, 222 summarizing data, 226 variables, 216 aggregating limitations with measures, 363 Licensed Materials Property of IBM Copyright IBM Corp. 2005, 2010.
B
backgrounds adding background effects to charts, 443 adding colors to objects, 462 changing in current default charts, 157 changing in legacy charts, 158
1001
Index colors not appearing in templates, 968 inserting background images, 442 troubleshooting in charts, 969 bar charts, 133 baselines adding to charts, 171 bevels adding to legacy charts, 158 binary round-off errors, 975 bivariate correlation, 277 BlackBerry devices creating mobile reports for, 108 blocks inserting, 445 resizing, 457 bookmarks adding, 542 creating for drill-through access, 520 borders adding to charts, 443 adding to legacy charts, 158 adding to objects, 441 bottom filtering, 354 boxplots, 248 bubble charts, 136 specifying bubble size in current default charts, 190 Build Prompt Page tool, 422 bullet charts, 137 customizing current default charts, 194 bursting definition, 995 burst reports, 489 creating against cubes, 494 creating against dimensional data sources, 494 creating burst tables, 490 creating calculated fields to define recipients, 489 defining groups, 492 defining recipients, 489 denial of service errors in dimensional reporting, 388 denial of service errors in relational reporting, 339 enabling in IBM Cognos Connection, 494 Microsoft Excel format, 602 setting options, 492 troubleshooting, 982 Business Insight dashboards filtering, 105 1002 IBM Cognos Report Studio business keys using for drill-through, 523 button bars, 219
C
calculated fields in burst reports, 489 calculated members definition, 995 Calculation Intersection, 406 calculations adding in dimensional reporting, 396 adding in relational reporting, 342 building in dimensional reporting, 398 building query calculations in relational reporting, 344 creating simple in dimensional reporting, 397 creating simple in relational reporting, 343 function quality of service indicators in dimensional reporting, 402 function quality of service indicators in relational reporting, 344 intersecting in crosstabs and charts, 405 limitations in dimensional reporting, 403 limitations in relational reporting, 343 limitations with units of measure in dimensional reporting, 403 limitations with units of measure in relational reporting, 342 null values, 407 position, 69 resolving in dimensional data sources, 406 solve order in dimensional reporting, 402 solve order in relational reporting, 343 unexplained number discrepancies, 975 using quotation marks in dimensional reporting, 403 using quotation marks in relational reporting, 345 CAMID, See IBM Cognos Access Manager ID cardinality definition, 995 cascading prompts adding, 435 definition, 995 cascading style sheets, 460 cases statistics, 240
Index cast_Date functions troubleshooting, 982 categorical data, 236 changed features data formats for OLAP, 69 data trees for SAP BW, 72 equality filters, 71 for aggregate, 71 in version 8.4, 64 slicers, 69 summaries on non-additive measures for SAP BW, 70 chart configurations 100% stacked, 144 3-D, 144 stacked, 143 standard, 142 charts, 127 accessible reports, 992 adding alternate text, 991 aggregating values, 361 background effects, 443 background effects in legacy charts, 158 backgrounds in current default charts, 157 backgrounds in legacy charts, 158 bands of color in the background, 165 baselines, 171 borders, 443 changing backgrounds in current default charts, 157 changing backgrounds in legacy charts, 158 changing colors, 151 changing lines, 162 changing scales, 162 colored regions in current default charts, 159 configurations, 130 converting current default charts to a matrix, 184 converting types, 145 creating, 127 cumulation line in current default Pareto charts, 193 cumulation line in legacy Pareto charts, 193 current default, 127 customizing current default combination charts, 184 customizing data labels in current default charts, 180 customizing labels, 161 customizing legend items in current default charts, 168 customizing legend items in legacy charts, 168 customizing palettes, 151 defining colors by values in current default charts, 189 defining query contexts, 181 displaying every second label, 968 drilling up and down, 195 drop shadows, 443 elements, 127 fills, 443 gridlines, 165 inserting microcharts into crosstabs, 194 legacy, 127 legacy and current default, 564 markers, 174 notes, 169 positioning legends in current default charts, 167 properties not supported in Microsoft Excel, 602 regression lines in current default charts, 177 regression lines in legacy charts, 178 resizing, 457 resizing current default, 150 resizing legacy, 150 resolving multiple calculations, 405 series colors in current default combination charts, 184 setting properties, 147 showing data points, 182 showing value markers, 182 specifying bubble size in current default bubble charts, 190 specifying default measures, 122 summarizing small slices or items in current default charts, 181 tooltips, 147 troubleshooting axis labels, 968 troubleshooting gray gradient backgrounds, 969 types, 130 types not supported in Microsoft Excel, 603 chart types, 130 area charts, 133 bar charts, 133 bubble charts, 136 bullet charts, 137 column charts, 131 combination charts, 134 User Guide 1003
Index gauge charts, 138 line charts, 131 Marimekko charts, 140 metrics range charts, 142 microcharts, 139 Pareto charts, 138 pie charts, 132 point charts, 134 polar charts, 141 progressive column charts, 139 quadrant charts, 136 radar charts, 141 scatter charts, 135 win-loss charts, 139 checkbox groups, 219 classes changing the default for a report, 460 clipboards copying reports, 554 opening reports, 554 coefficients, 282 Cognos SQL in dimensional reporting, 389 in relational reporting, 340 collinearity diagnostics, 282 colored regions adding to current default charts, 159 colors adding to current default charts, 189 adding to objects, 462 changing in charts, 151 not appearing in templates, 968 column charts, 131 columns, 91 adding multiple items in a single column, 451 calculated in dimensional reporting, 396 calculated in relational reporting, 342 grouping in relational reporting, 308 hiding or showing in list controls, 225 setting the group span, 310 sorting in dimensional reporting, 377 sorting in relational reporting, 329 swapping with rows, 122 width limitations in Microsoft Excel, 600 combination charts, 134 concatenating strings, 404 1004 IBM Cognos Report Studio conditional block lists inserting, 446 conditional blocks accessible reports, 992 conditional palettes creating, 154 conditional rendering, 480 adding multiple layouts, 486 adding variables, 480 creating multilingual reports, 486 example, 484 hiding and showing objects, 482 conditional styles creating, 475 using variables, 479 Condition Explorer, 77 conditions definition, 995 confidence intervals, 236 Content Manager definition, 995 context filters creating, 371 prompting with, 373 control charts, 292 controls active reports, 215 adding data, 220 adding to an active report, 218 button bars, 219 buttons, 219 checkbox groups, 219 data button bars, 219 data checkbox groups, 219 data decks, 218 data drop down lists, 219 data list boxes, 219 data radio button groups, 219 data tab controls, 219 data toggle button bars, 219 decks, 218 defining connections, 221 drop down lists, 219 list boxes, 219 radio button groups, 219 specifying reaction behavior, 223
Index specifying selection behavior, 222 tab, 219 toggle button bars, 219 variable text items, 218 converting lists to crosstabs, 123 lists to repeaters, 113 reports to templates, 551 to MDX in dimensional reporting, 391 to SQL in dimensional reporting, 391 to SQL in relational reporting, 341 copying reports, 554 correlations, 282 Count changes between IBM Cognos ReportNet and IBM Cognos BI, 567 Count Distinct, 567 covariance matrix, 282 crosstab node members, 117 crosstab nodes, 117 crosstabs, 117 aggregating values, 361 aggregation modes, 84 allow sorting, 226 applying table styles, 450 creating single-edge, 120 crosstab node members, 117 crosstab nodes, 117 default measures, 122 discontinuous, 125 formatting, 118 indenting data, 123 intersections, 118 nesting data, 121 order of styles, 118 overflow errors, 982 resolving multiple calculations, 405 CRX-API-0018 errors, 402 CSV format importing your own files, 465 producing reports in, 99 cubes definition, 995 troubleshooting drilling through to relational data, 987 cumulation lines in current default charts, 193 in legacy charts, 193 currencies data format limitations in Microsoft Excel output, 600 formatting, 497 formatting disappearing in SSAS 2005, 984 current default charts, 127, 564 curve estimation, 287
D
dashboards creating, 417 using bullet charts, 137 using gauge charts, 138 using global filters, 421 data button bars, 219 data checkbox groups, 219 data decks, 218 data does not appear in target report troubleshooting drilling through, 984 data drop down lists, 219 data formats, 497 changed features for OLAP, 69 date and time symbols, 503 decimal format symbols, 511 locale-sensitive, 499 Microsoft Excel limitations, 600 specifying default, 497 specifying for objects, 498 using patterns, 502 data handling, 66 data list boxes, 219 data packages refreshing, 90 specifying, 89 data points showing in charts, 182 data radio button groups, 219 data series in charts, 127 data sources, 347 definition, 996 data stores conformed dimensions, 522 data tab controls, 219 User Guide 1005
Index data toggle button bars, 219 data trees changes for SAP BW, 72 customizing, 349 definition, 996 date & time prompts, 424 date prompts, 424 dates filtering, 327 using for drill-through access, 525 decimals rounding, 498 decks, 218 degrees of freedom, 236 denial of service errors in dimensional reporting, 388 in relational reporting, 339 depth charts, 147 derived columns, 327 descriptive statistics, 241 detail filters, 324 diagrams Metric Studio, 201 dial charts, 138 dictionary properties in maps, 208 dimensional coercion rules, 409 dimensional data sources creating burst reports, 494 creating master detail relationships, 388 definition, 996 resolving calculations, 406 running reports against, 97 using with queries, 379 dimensionally-modeled relational data sources adding dimensional data, 347 limitations when aggregating measures, 363 dimensional reporting, 347 adding data, 347 best practices, 74 drilling up and down, 413 filtering data, 371 sorting data, 375 summarizing data, 358 using calculations, 396 working with queries, 377 1006 IBM Cognos Report Studio dimensions, 91, 347 conformed, 380 conformed for drill-through access, 522 definition, 996 non-conformed, 380 overlapping named set levels, 969 searching, 350 discontinuous crosstabs creating, 125 distributing reports, See burst reports dividing by zero troubleshooting, 967 Don't Print class, 461 donut charts customizing data labels in current default charts, 179 double counting, 567 drill down definition, 996 drilling down, 413 creating drill-up/drill-down reports, 414 in charts, 195 using member sets, 414 drilling through, 517 business keys, 523 concepts, 518 creating drill-through reports, 525 cubes to relational data, 987 data does not appear in target report, 984 IBM Cognos Visualizer reports, 535 in maps, 211 links not active in Safari Web browsers, 984 members and values, 521 Microsoft Excel limitations, 601 model-based access, 518 multiple values, 526 packages, 520 paths, 518 PowerCubes and packages, 525 PowerPlay reports, 535 relational data to cubes, 988 report-based access, 518 report formats, 519 selection contexts, 519 specifying drill-through text, 528 troubleshooting PowerCubes, 986 using bookmarks, 520
Index using dates, 525 using member unique names, 521 using scope in model-based reporting, 523 using URLs, 520 with conformed dimensions, 522 wrong data appears in target report, 984 drilling up, 413 creating drill-up/drill-down reports, 414 in charts, 195 using member sets, 414 drill up definition, 996 drop down lists, 219 defining no list value item, 225 drop shadows adding to legacy chart elements, 158 drop shadows in charts, 443 UDA-SQL-0114, 977, 985 UDA-SQL-0206, 977 UDA-SQL-0564, 985 errors application errors upgrading a report, 967 filtering results in error characters, 374 null values in count summaries, 970 out of memory, 417 parse errors with upgraded reports, 982 recursive evaluation, 985 troubleshooting error cells in reports, 363 escape characters in calculations in dimensional reporting, 403 in calculations in relational reporting, 345 example linear regression, 279 one-sample T test, 257 one-way ANOVA, 260 one-way chi-square, 267 two-way chi-square, 271 Excel 2000 format deprecation notices, 60 excluded variable statistics, 282 Explorer Bar, 77 expression editor browsing data, 401 creating filters in dimensional reporting, 371 creating filters in relational reporting, 324 creating parameters to create prompts, 428 dimensional coercion rules, 409 searching for values, 401 expressions length, 402 using summary functions in relational reporting, 317 extended data items, 356 enabling for new reports, 459 report option, 85
E
emailing reports, See burst reports empty cells specifying what appears for empty data containers, 502 suppressing, 500 equality filters changed features, 71 error messages CRX-API-0018, 402 denial of service in dimensional reporting, 388 denial of service in relational reporting, 339 HRESULT, 977 missing items, 982 OP-ERR-0199, 308, 967 OP-ERR-0201, 969 OP-ERR-0209, 374 OP-ERR-0210, 374 OP-ERR-0212, 374 OP-ERR-0213, 374 ORA-00907, 982 overflow errors in crosstabs, 982 PCA-ERR-0057, 985 QE-DEF-0288, 981 QE-DEF-0478, 409 RQP-DEF-0177, 985 RSV-SRV-0025, 977 RSV-SRV-0040, 967
F
facts, 91 field sets inserting, 445 fills adding to charts, 443 adding to legacy charts, 158
Index filtering Business Insight dashboards, 105 creating detail filters, 324 creating global prompts in dashboards, 421 creating summary filters, 324 data from SAP BW data sources, 375 data in dimensional reporting, 371 data in relational reporting, 324 date columns, 327 drilling through from IBM Cognos Series 7 to IBM Cognos BI, 536 -- error characters, 374 limitations when specifying the scope, 374 limitations with dimensional data sources, 373 members in a set, 355 multiple-fact queries, 380 suppressing null values, 500 to top or bottom values, 354 troubleshooting _make_timestamp columns, 977 using context filters, 371 using slicers, 371 filters in_range, 436 first-rows optimization in dimensional reporting, 391 in relational reporting, 342 floating objects, 458 fonts setting in maps, 206 specifying colors, 462 specifying for reports, 442 footers adding to maps, 207 adding to reports and lists, 439 for clauses, 317 FOR clauses incorrect results for OLAP, 974 limitations when using in summary functions, 319 foregrounds adding colors to objects, 462 formatting disappearing in SSAS 2005, 984 functions quality of service indicators in dimensional reporting, 402 quality of service indicators in relational reporting, 344
G
gauge charts, 138 generated prompts, 425 global filters in dashboards, 421 glossaries accessing the IBM InfoSphere Business Glossary, 104 Great Outdoors Company, 570 databases, models, and packages, 573 samples, 569 Great Outdoors Company samples, 569 gridlines adding to charts, 165 in charts, 127 major and minor, 162 grouping data in relational reporting, 308 setting group spans, 310 troubleshooting incorrect running totals, 985 troubleshooting nested list reports, 967 troubleshooting subtotals in grouped lists, 968 groups definition, 996
H
headers adding to reports and lists, 439 heights specifying for objects, 457 hiding columns list reports, 112 hiding objects, 482 hierarchies, 91 definition, 996 inserting, 351 highlighting adding colors to objects, 462 using conditional styles, 475 histograms, 246 horizontal pagination, 547 HRESULT errors, 977 HTML format producing reports in, 95
Index HTML items inserting, 446 hyperlinks buttons are not supported for Microsoft Excel, 601 inserting, 447 specifying in legacy gauge charts, 188 languages adding to reports, 486 layout component caches, 456 layout component references inserting, 447 layouts, 80 adding, 486 choosing, 90 definition, 997 pages, 81 relating to queries in dimensional reporting, 378 relating to queries in relational reporting, 330 report objects, 81 report recommendations, 437 using the page structure view, 438 legacy charts, 127, 564 legends adding titles in maps, 210 hiding or showing in maps, 206 in charts, 127 in maps, 210 positioning in current default charts, 167 level hierarchies, 347 levels, 91, 347 definition, 997 member unique names, 521 levels of measurement, 236 LFA.dll file, 553 limitations aggregating measures in dimensionally-modeled relational or relational data sources, 363 lineage information, 101 linear regression, 282 example, 279 linear scales showing, 162 line breaks, 457 line charts, 131 lines adding regression lines to charts, 177 adding regression lines to legacy charts, 178 changing in charts, 162 line spacing, 457 linking data items for drilling, 414 list boxes, 219 User Guide 1009
I
IBM Cognos Access Manager ID, 490 IBM Cognos for Microsoft Office creating reports for, 106 IBM Cognos Software Development Kit, 88 IBM Cognos Visualizer reports setting up drill-through access to IBM Cognos BI, 535 IBM InfoSphere Business Glossary, 104 icons, 91 images adding alternate text, 991 adding to chart backgrounds, 443 inserting in backgrounds, 442 inserting in reports, 442 Microsoft Excel limitations, 597 in_range filters, 436 indenting data in crosstabs, 123 objects, 450 Insertable Objects pane, 77, 78 intersections of members in dimensional reporting, 400 interval data, 236 interval prompts, 424 iPhone devices creating mobile reports for, 108
J
Japanese Microsoft Excel limitations, 600 join relationships creating in relational reporting, 336 justification setting for objects, 456
L
labels customizing in charts, 161 specifying in current default gauge charts, 186
Index list reports hiding columns, 112 lists, 111 adding headers and footers, 439 allow sorting, 226 applying table styles, 450 converting to crosstabs, 123 converting to repeaters, 113 formatting, 111 grouping data, 308 hiding or showing columns, 225 limitations, 112 single-edge crosstabs, 120 subtotals in grouped lists, 968 literal strings in calculations in dimensional reporting, 403 in calculations in relational reporting, 345 locales definition, 997 locale-sensitive properties, 499 location-aware reports creating, 108 locking objects, 83 logarithmic scales, 163 showing, 162 margins setting for objects, 451 Marimekko charts, 140 markers adding to charts, 174 master detail relationships creating in dimensional reporting, 386 creating in relational reporting, 337 denial of service errors in dimensional reporting, 388 denial of service errors in relational reporting, 339 linking members from two dimensional data sources, 388 using to join page sets, 539 matrix charts, 184 matrix reports, 117 MDX adding your own in dimensional reporting, 390 converting to in dimensional reporting, 391 working with in dimensional reporting, 389 measures, 91 definition, 997 specifying defaults, 122 member properties, 347 inserting, 352 members, 91 definition, 997 drill-through access, 521 excluding, 353 expanding and collapsing, 356 folder, 347 inserting properties, 352 intersections in dimensional reporting, 400 moving, 354 member sets aggregating, 363 creating, 352, 414 member unique names, 412 relational metadata, 521 troubleshooting running reports with, 413 metrics range charts, 142 Metric Studio diagrams, 201 MHT saving active reports, 226 microcharts, 139 inserting, 194
M
mailing labels creating, 114 maps, 203 aliases, 208 creating, 204 customizing, 205 dictionary property, 208 drilling through, 211 ignoring data with no features, 207 legends, 210 matching data values, 208 Microsoft Excel limitations, 601 notes, 211 parts of a map report, 204 point layers, 209 region layers, 207 resizing, 457 showing or hiding properties, 205
Index Microsoft Excel limitations of nested report objects, 601 producing reports in, 99 report limitations, 597 missing items troubleshooting, 982 missing values, 407 suppressing, 500 missing Values treatment, 236 mobile devices creating reports for, 108 unsupported features, 108 models, 91 aggregation properties, 317 definition, 997 sample models and packages, 573 using design filters, 95 model selection statistics, 282 moving averages, 364 Multidimensional Expression Language definition, 997 multilingual reports, 486 MUNs, See member unique names version 8.4, 61 no data specifying what appears, 502 specify not to render pages, 98 No Data Contents, 66, 502 nominal data, 236 nonparametric tests, 265 normal distribution, 236 notes adding to charts, 169 adding to maps, 211 null, 236 null values, 407 calculations with SAP BW data sources, 973 suppressing, 500 suppressing with filters, 500 troubleshooting in count summaries, 970 number data formats Microsoft Excel limitations, 600
O
objects, 82 adding, 81 aligning, 449 as containers, 83 finding in reports, 83 hiding and showing, 482 hierarchies, 83 indenting, 450 inheriting formatting from parents, 83 inline or block, 82 inserting formatting objects, 445 locking and unlocking, 83 reusing for layouts, 454 specifying data format, 498 updating reused, 456 OLAP data sources inserting data, 347 limitations with relational functions, 357 one-sample T test, 256 example, 257 one-sample t-tests, 255 one-tailed test of significance, 236 one-way ANOVA example, 260
N
named sets limitations when summarizing, 360 nested or parallel sets overlapping, 969 names updating references, 560 namespaces definition, 997 native SQL in dimensional reporting, 389 in relational reporting, 340 nested list reports not running after upgrading, 967 nested report objects Microsoft Excel limitations, 601 nested sets unexpected summary values, 972 nesting data in crosstabs, 121 new features version 10.1.0, 53
Index one-way chi-square, 266 example, 267 opening reports from other studios, 554 opening reports from your computer, 553 OP-ERR-0049 errors, 308 OP-ERR-0199 errors, 308, 967 OP-ERR-0201 errors, 969 OP-ERR-0209 errors, 374 OP-ERR-0210 errors, 374 OP-ERR-0212 errors, 374 OP-ERR-0213 errors, 374 ORA-00907 errors, 982 Oracle data sources troubleshooting, 982 Oracle Essbase changes, 969 ordinal data, 236 out of memory errors, 417 overflow errors in crosstabs, 982 definition, 997 joining nested page sets, 539 pagination horizontal in PDF output, 547 specifying for HTML output, 459 palettes conditional, 154 customizing in charts, 151 parameters for prompts, 428 using in master detail relationships in dimensional reporting, 386 using in master detail relationships in relational reporting, 337 parameter values clearing, 95 Pareto charts, 138 cumulation lines in current default charts, 193 cumulation lines in legacy charts, 193 part and partial correlations, 282 partial regression plots, 282 PCA-ERR-0057 errors, 985 PDF format producing reports, 95 setting page options, 101 percent calculations in dimensional reporting, 397 in relational reporting, 343 personal data importing your own files, 465 pie charts, 132 converting to current default donut charts, 191 customizing data labels in current default charts, 179 exploding slices in current default charts, 191 limitations for Microsoft Excel outputs, 598 setting the first slice angle in current default charts, 191 point charts, 134 point layers, 209 polar charts, 141 populations, 236 position calculations, 69 post hoc tests ANOVA, 262
P
packages, 91, 347 changing, 560 definition, 997 drilling through, 520 referencing items in child queries, 337 refreshing, 90 selecting for your report, 89 padding applying to objects, 450 page breaks, 547 controlling, 459 creating, 538 creating with page layers, 549 Page Explorer, 77 page layers, 549 page numbers adding, 547 modifying with options, 547 pages, 81 adding, 537 associating queries with, 537 not rendering when there is no data, 98 page sets creating, 538 1012 IBM Cognos Report Studio
Index PowerCubes incorrect results, 973 troubleshooting drilling through, 986 PowerPlay reports setting up drill-through access to IBM Cognos BI, 535 printing not printing objects, 461 progressive column charts, 139 prompt pages creating your own, 423 prompts, 421 adding prompt buttons, 434 changing prompt control interfaces, 430 creating cascading, 435 creating in a report page, 429 creating using query macros, 513 date, 424 date & time, 424 definition, 998 generated, 425 in_range, 436 interval, 424 modifying, 430 pages, 422 parameters, 428 requiring user input, 431 select & search, 424 selecting multiple values, 431 showing and hiding, 432 specifying default selections, 432 specifying default values, 433 text box, 423 time, 424 tree, 435 upgrading SAP BW variables, 564 using context filters, 373 using slicer filters, 373 using the Build Prompt Page tool, 422 using the expression editor, 428 value, 423 Properties pane, 77 properties panes definition, 998
Q
QE-DEF-0288 errors, 981 QE-DEF-0478 errors, 409 Q-Q plots, 254 quadrant charts, 136 quadrants adding to current default charts, 159 quantitative data, 236 queries, 82 associating with pages, 537 connecting between data sources in dimensional reporting, 379 connecting between data sources in relational reporting, 330 definition, 998 in dimensional reporting, 377 in relational reporting, 329 multiple-fact, 380 referencing data items in relational reporting, 330, 378 referencing package items in child queries, 337 relating to layouts in dimensional reporting, 378 relating to layouts in relational reporting, 330 using with dimensional data sources, 379 working with MDX in dimensional reporting, 389 working with SQL in dimensional reporting, 389 working with SQL in relational reporting, 340 query calculations creating in dimensional reporting, 398 creating in relational reporting, 344 null values in count summaries, 970 query context defining in charts, 181 Query Explorer, 77 using in dimensional reporting, 377 using in relational reporting, 329 query items definition, 998 query macros, 513 adding, 513 using to create prompts, 513 Query Studio creating templates in Report Studio, 551 query subjects definition, 998 quick tours, 51 User Guide 1013
Index quotation marks in calculations in dimensional reporting, 403 in calculations in relational reporting, 345 XML, 100 ReportNet reports formatting changes when upgrading, 983 report outputs accessibility options, 990 definition, 998 report properties, 459 reports active, 215 adding interactivity, 217 converting to active reports, 216 definition, 998 report samples, 569 report specifications, 88 definition, 998 residuals statistics, 282 resizing current default charts, 150 legacy charts, 150 objects, 457 reusing styles, 439 rich text items inserting, 447 supported elements, 448 rolling averages, 364 rollup calculations in dimensional reporting, 397 in relational reporting, 343 rounding numbers, 498 round-off errors, 975 row numbers inserting, 447 rows swapping with columns, 122 rows per page controlling for multiple containers in HTML and PDF, 98 setting, 95 RQP-DEF-0177 errors, 565, 985, 986 R square change, 282 RSV-SRV-0025 errors, 977 RSV-SRV-0040 errors, 967 running and moving summaries limitations with dimensional functions, 404
R
radar charts, 141 radio button groups, 219 ragged hierarchies, 357 ratio data, 236 referenced objects changing, 455 updating, 456 refreshing packages, 90 region layers, 207 regression lines, 162 in current default charts, 177 in legacy charts, 178 regression methods backward, 282 forward, 282 stepwise, 282 relational functions limitations when used with OLAP data sources, 357 relational reporting, 307 adding data, 307 best practices, 74 filtering data, 324 grouping data, 308 sorting data, 328 summarizing data, 314 troubleshooting drilling through to cubes, 988 using calculations, 342 working with queries, 329 Render Page when Empty, 98 repeaters converting from lists, 113 definition, 998 formatting, 450 repeater tables definition, 998 report formats CSV, 99 Excel, 99 HTML, 95 PDF, 95 specifying, 95 1014 IBM Cognos Report Studio
Index running reports, 95 against dimensional data sources, 97 against SAP BW, 97 cannot find database errors, 981 ORA-00907 errors, 982 Report Studio is slow, 977 running totals dimensional functions, 396 troubleshooting, 985 run options accessibility options, 990 scales changing intervals, 162 linear, 162 logarithmic, 162 scatter charts, 135 scatterplot of residuals versus dependent variables, 282 scope setting in summary filters, 324 using in drill-through access, 523 screen resolution requirements, 76 scrollbars adding to block objects, 457 searching dimensions, 350 section headings, 313 sections creating for dimensional data, 549 creating on reports with SAP BW data sources, 970 Secure Socket Layer Microsoft Excel limitations, 600 select & search prompts, 424 set definitions, 353 set expressions building in dimensional reporting, 398 limitations in list reports, 112 sets editing, 353 filtering, 355 sets of members creating, 352 nested or parallel sets overlapping, 969 showing objects, 482 single-edge crosstabs, 120 singletons, 92 sizes specifying for objects, 457 slicer filters prompting with, 373 slicers changed features, 69 creating, 371 solve order, 405 combined with calculated rollup aggregate function, 406 dimensional data sources, 406
S
Safari Web browsers drill-through links not active, 984 samples, 236, 569 cubes, 574 database, models, and packages, 573 employees, 572 GO data warehouse, 573 GO Data Warehouse (analysis) package, 578 GO Data Warehouse (query) package, 587 GO Sales (analysis) package, 588 GO Sales (query) package, 591 GO Sales transactional database, 574 interactive, 593 packages, 575 Sales and Marketing (Cube) package, 575 sales and marketing data, 572 statistical analysis, 591 The Great Outdoors Company, 570 SAP BW data sources creating burst reports, 494 creating expression, 404 large queries, 379 limitations when calculating data, 342 limitations when sorting data, 376 null results, 973 query calculations, 970 running reports against, 97 sectioning reports, 970 units of measure notation, 97 SAP variable properties unsupported, 98 saving reports to your computer, 553
Index sorting crosstabs, 226 data in dimensional reporting, 375 data in relational reporting, 328 limitations with SAP BW data sources, 376 lists, 226 multiple columns in dimensional reporting, 377 multiple columns in relational reporting, 329 source trees customizing, 349 spaces adding around objects, 450 special values, 69 spider charts, 141 SQL adding your own in dimensional reporting, 390 adding your own in relational reporting, 340 Cognos in dimensional reporting, 389 Cognos in relational reporting, 340 converting to in dimensional reporting, 391 converting to in relational reporting, 341 first-rows optimization in dimensional reporting, 391 first-rows optimization in relational reporting, 342 native in dimensional reporting, 389 native in relational reporting, 340 working with in dimensional reporting, 389 working with in relational reporting, 340 SSAS 2005 cubes troubleshooting, 971 SSAS 2005 data sources creating expression, 404 disappearing data formats, 984 SSAS cubes problems when very large, 417 stacked charts, 143 standard charts, 142 standard deviation, 236 standard error, 236 standardized residuals histograms, 282 standardized residuals PP plots, 282 star charts, 141 statistical analysis ANOVA, 262 bivariate correlation, 277 boxplots, 248 1016 IBM Cognos Report Studio control charts, 292 curve estimation, 287 descriptive statistics, 241 histograms, 246 linear regression, 282 one-sample T test, 256 one-way chi-square, 266 Q-Q plots, 254 statistical process control, 291 terms, 236 two-way chi-square, 270 statistical power, 236 statistical process control, 291 statistical significance, 236 statistics cases, 240 strings concatenating, 404 studios Oracle Essbase changes, 969 styles conditional, 475 reusing, 439 style sheets definition, 998 subtotals troubleshooting in grouped lists, 968 summaries adding simple in dimensional reporting, 360 adding simple in relational reporting, 315 adding to active reports, 226 aggregate in dimensional reporting, 366 aggregate in relational reporting, 320 automatic in dimensional reporting, 366 automatic in relational reporting, 320 average in dimensional reporting, 366 average in relational reporting, 320 calculated, 406 calculated in dimensional reporting, 366 calculated in relational reporting, 320 count distinct in dimensional reporting, 367 count distinct in relational reporting, 321 count in dimensional reporting, 367 count in relational reporting, 321 custom in dimensional reporting, 368 custom in relational reporting, 321
Index definition, 999 FOR clauses, 974 maximum in dimensional reporting, 368 maximum in relational reporting, 321 median in dimensional reporting, 368 median in relational reporting, 321 minimum in dimensional reporting, 368 minimum in relational reporting, 321 none in dimensional reporting, 368 none in relational reporting, 321 not applicable in dimensional reporting, 368 not applicable in relational reporting, 322 null values, 407 rolling and moving averages, 364 standard deviation in dimensional reporting, 368 standard deviation in relational reporting, 322 summarize in dimensional reporting, 369 summarize in relational reporting, 322 total in dimensional reporting, 369 total in relational reporting, 322 troubleshooting, 980 variance in dimensional reporting, 369 variance in relational reporting, 323 summarizing data in dimensional reporting, 358 in relational reporting, 314 summary filters, 324 summary functions in dimensional reporting, 365 in relational reporting, 320 limitations when using FOR clauses, 319 using in expressions in relational reporting, 317 summary text adding to tables, 991 summary values unexpected when using nested sets, 972 suppressing data, 406 Symbian devices creating mobile reports for, 108 applying styles, 450 inserting, 449 Microsoft Excel width limitations, 600 specifying cell headers, 992 tables of contents creating, 544 tabular data viewing, 95 target reports creating for drilling through from IBM Cognos Series 7, 536 templates background colors not appearing, 968 converting from reports, 551 creating, 551 definition, 999 text adding to reports, 441 specifying flow in objects, 456 text box prompts, 423 textures adding to legacy charts, 158 time periods showing data only for specific, 365 time prompts, 424 TM1 data sources order of metadata tree, 972 report differences, 972 toggle button bars, 219 tooltips adding to charts, 147 hiding or showing in maps, 206 top filtering, 354 totals troubleshooting running totals, 985 tree prompts adding, 425 controlling the data that appears, 435 trend lines, 162 in current default charts, 177 in legacy charts, 178 tuples in dimensional reporting, 400 two-tailed test of significance, 236 two-way chi-square, 270 example, 271 User Guide 1017
T
tab controls, 219 table of contents, 66 tables adding summary text, 991
Index TXT data importing your own files, 465 types of error, 236 views, 80 page design view, 80 page structure view, 80 visual aids, 78
U
UDA-SQL-0043 errors, 986 UDA-SQL-0114 errors, 977, 985 UDA-SQL-0206 errors, 977 UDA-SQL-0458 errors, 565 UDA-SQL-0564 errors, 985 unbalanced hierarchies, 357 unexplained number calculations, 975 union query creating, 332 units of measure, 497 notation for SAP BW data sources, 97 unlocking objects, 83 upgrading SAP BW prompt variables, 564 upgrading reports applications errors, 967 errors, 565 formatting not retained, 983 members not suppressed for SAP BW, 565 removing upgrade messages, 563 reports will not open, 982 thousands separators missing, 565 user interface, 76
W
waterfall charts, 139 Web browser settings, 87 Web-safe color palettes, 462 white spaces adding padding to objects, 450 margins, 451 widths Microsoft Excel limitations, 600 specifying for objects, 457 Windows Mobile devices creating mobile reports for, 108 win-loss charts, 139 word breaks, 457 work areas definition, 999 wrong data appears in target report troubleshooting drilling through, 984
X
XLS format importing your own files, 465 limitations, 597 XML importing your own files, 465 producing a report, 100 report specifications, 88 XQE-CON-0007 errors, 379
V
validating reports, 93 value markers showing in charts, 182 value prompts, 423 values special, 69 specifying defaults in prompts, 433 variable processing summary, 282 variables active reports, 216, 217 adding, 480 conditional styles, 479 variable text items, 218 viewing reports troubleshooting, 982
Z
zeros suppressing, 500