Analyst Guide
Analyst Guide
Product Information
This document applies to Cognos 8 Planning Version 8.3 and may also apply to subsequent releases. To check for newer versions of this document, visit the Cognos Global Customer Services Web site (http://support.cognos.com).
Copyright
Copyright 2007 Cognos Incorporated. Portions of Cognos software products are protected by one or more of the following U.S. Patents: 6,609,123 B1; 6,611,838 B1; 6,662,188 B1; 6,728,697 B2; 6,741,982 B2; 6,763,520 B1; 6,768,995 B2; 6,782,378 B2; 6,847,973 B2; 6,907,428 B2; 6,853,375 B2; 6,986,135 B2; 6,995,768 B2; 7,062,479 B2; 7,072,822 B2; 7,111,007 B2; 7,130,822 B1; 7,155,398 B2; 7,171,425 B2; 7,185,016 B1;7,213,199 B2. Cognos and the Cognos logo are trademarks of Cognos Incorporated in the United States and/or other countries. All other names are trademarks or registered trademarks of their respective companies. While every attempt has been made to ensure that the information in this document is accurate and complete, some typographical errors or technical inaccuracies may exist. Cognos does not accept responsibility for any kind of loss resulting from the use of information contained in this document. This document shows the publication date. The information contained in this document is subject to change without notice. Any improvements or changes to either the product or the document will be documented in subsequent editions. U.S. Government Restricted Rights. The software and accompanying materials are provided with Restricted Rights. Use, duplication, or disclosure by the Government is subject to the restrictions in subparagraph (C)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013, or subparagraphs (C)(1) and (2) of the Commercial Computer Software - Restricted Rights at 48CFR52.227-19, as applicable. The Contractor is Cognos Corporation, 15 Wayside Road, Burlington, MA 01803. This software/documentation contains proprietary information of Cognos Incorporated. All rights are reserved. Reverse engineering of this software is prohibited. No part of this software/documentation may be copied, photocopied, reproduced, stored in a retrieval system, transmitted in any form or by any means, or translated into another language without the prior written consent of Cognos Incorporated.
Table of Contents
Introduction
19
What's New? 23 New Features in Version 8.3 23 Microsoft Excel 2007 23 Select Folders in Cognos Connection 23 Select Framework Manager Package for D-List Import 23 Chapter 1: Analyst Overview
25
Saving Analyst Data 25 Registry Settings 25 Restart Analyst 26 Understanding Analyst 26 Formulas in Analyst and Excel Spreadsheets 26 Using LIB and LIBNO Parameters 27 Other Differences 27 Multi-User Object Access 28 Analyst Samples 28 Tutorialgo 29 Great Outdoors Analyst 29 The BiF Library 31 The Slice Update Sample 31 Customizing the Analyst Toolbar 34 Use Custom Menus 35 Create Custom Toolbar Buttons 36 Chapter 2: Administration
37
Viewing and Editing Analyst Workspace Settings 37 Creating Planning Tables 38 Set Filesys.ini 38 Rebuild Index Files 39 Refresh References 39 Validate D-Lists 39 DOS File Names 39 Close ODBC Links 40 Configuration Settings 40 Chapter 3: Objects
43
Add a Description to an Object 43 Reveal Object Name from DOS Filename 43 Chapter 4: Security
45
User Guide 3
Table of Contents Users, Groups, and Roles 47 Users 48 Groups and Roles 48 Setting up Security for a Cognos 8 Planning Installation 50 Configure Cognos 8 to Use an Authentication Provider 51 Add or Remove Members From Planning Rights Administrators and Planning Contributor Users Roles 52 Enabling Planning Roles in Cognos 8 53 Restricting Access to the Everyone Group 53 Recommendation - Creating Additional Roles or Groups for Contributor 54 Configuring Access to Analyst 54 Configure Integrated Windows Authentication 56 Specify a Default Library 57 Restrict D-Cube Access 57 Assign Access at the Library Level 57 Assigning Access at the Object Level 58 Assigning Access at the Item Level 60 Chapter 5: Integration
63
Financial Planning with Cognos Finance and Cognos Planning Products 63 Prerequisites and Required Components 64 Understanding the Process 64 Using Cognos Finance Input Forms or Report Files 65 Importing From Cognos Finance 65 Financial Planning with Cognos Performance Applications and Analyst 67 IQD Files and the Import from IQD Wizard 68 Creating Planning Models and Data from Cognos Performance Applications Data 72 Determine Plan Granularity 74 Create a Planning Model in Analyst 74 Set up a Contributor Application 76 Populate the Planning Application in Contributor 77 Publish Planning Data 79 Automation 81 Command Line 81 Chapter 6: Importing Data from Cognos 8 Data Sources
83
Create a Data Source Connection 84 Create a Framework Manager Project and Import Metadata 86 Create and Publish the Cognos Package 87 Working with SAP BW Data 88 Create a Detailed Fact Query Subject 88 Recommendation - Query Items 89 Recommendation - Hierarchy 89 Recommendation - Hiding the Dimension Key Field 90 Working with Packages 90 Chapter 7: D-Lists
91
4 Analyst
Table of Contents Import a Formula (CalcTexts) 93 Preview or Print the Formulas 95 Create a Subtotal 95 Enter a Formula into a D-List 95 Edit a Formula 97 Copy a Formula 97 Remove a Formula 98 Troubleshooting Formula Errors 98 View Formulas 100 D-List Conditional Formulas 101 Formula Priority 104 Apply a Time Average 106 Weighted Averages 106 Choosing Which Item to Weight By 107 Apply a Weighted Average 107 Override a Weighted Average 108 Force to Zero 108 Remove Averages 108 Applying Local Formats to D-Lists 109 Types of Formats 109 Assign Local Formats 110 Save a Local Format 110 Load a Local Format 110 Formulas and D-List Formatted Items 111 Format a Specific Row or Column 111 Numeric Formats 112 Date and Time Formats 114 Apply D-List Formats 117 Apply Free-Text Format to a D-List Item 118 Timescale D-Lists 118 Create a Timescale D-List 119 Create a Custom Timescale 120 Timescales and BiFs 120 Common Errors in Timescales 120 Set Periods of Uneven Lengths 120 Copy an Existing D-List 121 Edit a D-List 121 Edit D-List Item Names 123 Insert items from a D-List 123 Create an Import Link into a D-List 124 Run an Import Link into a D-List 124 Paste Items from a Spreadsheet, Database, or Other Text Source 125 Import D-List Items from Another D-List 125 Import D-List Items from Unmapped ASCII Files 126 Import D-List Data from Mapped ASCII Files 127 Import D-List Items from a D-Cube 128 Import D-List Items Using ODBC 129 Import D-List Items From a Cognos Package 130 Export a D-List as an e-List 131
User Guide 5
Table of Contents Implement Changes 131 Delete items from a D-List 131 Import Mode 132 Example - Import Modes 132 Copying from Another D-List 133 Importing from ASCII files, ODBC sources, Cognos Packages, or D-Cube data 134 Where Drop-Box 135 Subtotals Drop-Box 135 Maintaining Hierarchies 135 Manage D-Lists 139 Rename/Move a D-List 139 << Move 139 Delete a D-List 139 Search for a D-List 140 Show a D-List's Dependants 140 Show a D-List's Precedents 140 Upgrade Pipe Symbols in D-List Item Names 141 Unique Names 141 Edit Unique Names 141 Define the Unique Part of a D-List Item 141 Manually Reorder D-List Items 142 Sort D-List Items 143 View/Edit Summary Information on a D-List 144 Add Sub Headings to Reports 145 Set D-List Colors 146 Chapter 8: D-Cubes
147
Interrupt a Calculation 148 Set or Clear Audit Trails 148 View the Audit Trail of a Cell Within a D-Cube 149 Breakback 149 Default Rules for Breakback 149 Use Breakback to Set Global Targets 151 Holds and Breakback 151 Using Breakback with Integer Arithmetic 152 Set Breakback to Integer or Decimal Mode 153 Set a Target Using Breakback 153 Create D-Cubes 154 Open D-Cubes 156 Open Multiple D-Cubes 157 Expand a Subtotal 157 View Multiple Slices of a D-Cube in Separate Windows 157 D-Cube Data Allocations 158 Enter Data 159 Enter Data into Individual Cells of a D-Cube 159 Color Conventions for Data 160 View a Formula 161 View the Origin of a Detail Cell 161 Edit D-Cubes 161
6 Analyst
Table of Contents Copy a Range on the Same Page 161 Copy Ranges in a D-Cube from Page to Page 162 Copy Data Using Operators 163 Copy from a Spreadsheet to Analyst 163 Insert Lines to Separate Totals from Detail Items 164 Edit Undo and Redo 165 Suppress Zero Rows, Columns, or Pages 165 Reveal All Zero Suppressed Rows and Columns 166 Change the Column Width or Row Label Width 166 Annotate a Cell 167 Edit Data 168 Edit Data on the Current Page of a D-Cube 168 Edit the Data in Individual Cells Using Operators 169 Select a Range of Cells in a D-Cube 170 Reset Data 171 Recover from Errors 172 D-Cube Commands 173 Apply Commands 175 Edit a Range of Data on the Current Page 176 Delete the Data from an Entire D-Cube 176 Set a Column or Row to Zero 177 Change Ranges of Data Using Menu Commands 178 Locks, Protects, and Holds 180 Hold Data 181 Protect Data 183 Lock Data 183 Special Copy and Paste 185 Random Number D-Cube Command 185 Round Command 185 Export Data 186 D-Cube Export 186 Format Prior to Export 189 Export to a Spreadsheet 190 AutoSum 190 Find Text and Character Matches 191 Formats 191 Local vs Global Formats 191 Load or Remove a Global Format 191 Save a Global Format 192 Enter Prefixes and Suffixes 192 Access Blank if Zero 193 D-Cube Selections 193 Expanded Selections 193 Creating a Selection 194 Facilitate Selection Using the Selection Dialog Box 195 Saved Selections and D-Links 197 Save a Selection 197 Load a Saved Selection 198 Load a Saved Selection on Opening a D-Cube 198
User Guide 7
Table of Contents Edit the Selection on Opening a D-Cube 199 Edit a Saved Selection 200 Manage D-Cubes 202 Memory Management 202 Split Column Headings onto Two Lines 203 Show Details or Formulas Only 203 Sort Rows, Columns, and Pages 204 Manipulate D-Cube Structure 205 Work with Dimensions 207 Navigate Around a D-Cube 212 View a Different Slice 212 View a Different Page 213 Save D-Cubes 213 Chapter 9: D-Links
215
The D-Link Dialog Box 216 Dimensions and D-Lists 216 Create D-Links 217 Use D-Cube as Source and Target 217 Use Cognos Package as Source in a D-Link 218 Pair Source and Target Dimensions 219 Select Required Items from Unpaired Dimensions 219 Change Optional Settings in D-Link 220 Name and Save the D-Link 220 Open D-Links 220 Open More than One D-Link 221 Open a D-Link that Targets an Open D-Cube 221 Open a D-Link that Uses an Open D-Cube as its Source 221 Open D-Links Associated with Selected D-Cubes 222 Run D-Links 222 Run an Open D-Link 223 Run a D-Link Using a Specific D-Cube as its Source or Target 223 Run a D-Link Using an Open D-Cube as its Target 223 Run D-Links with the Source D-Cube Open 224 Run Update D-Links in a Single D-Cube (Manually) 225 Run Batches of D-Links Using Library Functions 225 Memory Considerations 226 Run Batches of D-Links using Macros 227 Tun an Inverse D-Link 227 Dimensions 230 Virtual Dimensions 230 Dimensions and D-Lists 230 Unvisited Dimensions 230 Unpaired Dimensions 231 Match Descriptions 233 How Match Descriptions Pairs Data 233 Create a Match Descriptions Pairing 233 Case Sensitivity 234 Match Calculated Target Items 235
8 Analyst
Table of Contents Allocation 235 Maintain Allocation Tables 236 Allocation Table Menu Options 236 How Allocation Tables Assign Data 237 Navigate Around an Allocation Table 238 Load an A-Table into a D-Link 240 Change to Matched Descriptions 240 Change to Allocation 241 Change Dimension Items in a D-Link 241 Target Formula Items 241 Local Allocation Tables (A-Tables) 242 Create a Local Allocation Table Pairing 242 Delete Entries in a Local Allocation Table 244 Use Wildcard Characters in Local Allocation Tables 244 Edit Local Allocation Table Entries 246 Reorder Lines in a Local Allocation Table 246 Add Entries to a Local A-Table 246 Loaded Allocation Tables 248 Saved Allocation Tables 248 Copy and Paste Allocation Table Entries 248 D-Cube Allocations 249 Example 249 Use D-Cube Data in Allocation 250 Select and Slice an Allocation D-Cube 250 Execution Modes 252 Run D-Links inversely 252 Fill Mode 253 Substitute Mode 253 Add Mode 253 Subtract Mode 253 The Target Area 253 Dump Options 254 When will records be unassigned? 255 Edit 255 Print 255 File 255 Dump Item 256 Drill Down on Data Assigned to Dump Items 257 Dump Items Used with Dump Options 257 Scale and Round Data within a D-Link 257 Scaling Factors 257 Rounding Factors 257 Set Scaling and Rounding 258 Subcolumns 259 Cut a Subcolumn 259 Change the Position of an Existing Subcolumn 260 Clear a Subcolumn 261 Duplicate Target Items 261 Lookup and Accumulation D-Links 262
User Guide 9
Table of Contents Database D-Cube 262 Sparse D-Cube 262 Lookup and Accumulation D-Link Restrictions 264 Lookup D-Links 264 Accumulation D-Links 270 Analyst<>Contributor Links 276 When to use Analyst<>Contributor Links 276 Installation 277 Security 277 How Analyst<>Contributor and Contributor<>Contributor Links Work 278 Copying Analyst<>Contributor Links 280 Library Method 280 Library Copy Wizard Method 281 Factors That Can Affect Memory Usage 281 Opening a Link From a Computer that Does not Have Access to the Original Datastore 282 Running Batches of D-Links using the @DLinkExecuteList macro 282 Running D-Links While Making Model Changes 283 Effect of Access Tables in Contributor 284 Select Contributor Application 284 Analyst<>Cognos Finance Links 285 When to Use Analyst <> Cognos Finance Links 286 Installation 286 How Analyst <> Cognos Finance Links Work 286 D-Link Options 286 One-off and Internal D-Links 286 Fill a D-Cube with Data Using a One-Off Internal D-Link 287 Date Allocations 287 Copy data in a D-Cube from Page to Page 288 Update Models Using D-Cube Update List 288 Order of Running D-Links 289 D-Cube Update List Dialog Box 289 Drill Down 290 How Drill Down Works 291 Drill Down on a Cell Using a Source or Mapped ASCII File 291 Drill Down on One Cell Using a D-Cube as a Source 291 Drill Down on a Range of Cells 292 Drill Down on Break Back Allocations 293 Troubleshoot D-Links 294 The "Nothing to Transfer" Message 294 Nothing Happens When You Drill Down 294 Error Messages Appear When You Drill Down 295 Chapter 10: ODBC Links
297
Creating ODBC Links 297 Install an ODBC Driver 297 Set Up an ODBC Data Source 298 Import Using ODBC 298 Import D-List Items into a D-List Using ODBC 298 Import Data into a D-Cube Using an ODBC Link 299
10 Analyst
301
Work with Libraries 301 Library Administration 302 Create a Library 302 Delete a Library 303 Display Library Name 303 Change Library Details 303 The Library Window 304 Rename an Object 304 Delete an Object 304 Move an Object to a Different Library 305 Show the Precedents of an Object 305 Show the Dependants of an Object 306 Highlight Unused Objects in the Library 307 Reveal the DOS File Name 307 Show the Description of an Object 307 Copy Objects 307 Remap Objects 308 Check Integrity 309 Open Multiple Objects 310 Copy Libraries or Objects Using the Library Copy Wizard 310 Select Libraries 311 Select Objects 312 Chapter 12: Built in Functions (BiFs) BiF Library 315 Work with BiFs 316 Steps to Create a BiF 316 Steps to Edit a BiF 316 Steps to Delete a BiF 317 BiF Results 317 BiF Outputs 317 Priority of Calculations 319 Circularity in BiFs 319 Nesting in BiFs 319 Breakback in BiFs 320 BiF Input Parameters 320 Show Calculation Errors 320 BiF Examples 320 Overview of Examples 320 @Cumul 324 @Cycles 324 @Days 327 @DaysOutstanding 328 @DCF 331 @Decum 336 @Delay 337 @DelayDebt 340 @DelayStock 343
315
User Guide 11
Table of Contents @DepnAnnual 346 @DepnDB 352 @DepnSLN 355 @DepnSYD 356 @Deytd 359 @Differ 360 @Drive 362 @Drive1 365 @Drive2 368 @ErlangDelayAgents 371 @ErlangDelayFull 373 @ErlangDelayLite 375 @ErlangLossLite 375 Understanding the Erlang BiFs Equations 376 Erlang Built-in Functions Glossary 378 @Feed 379 @FeedParam 380 @Forecast 383 @Funds 394 @FV 395 @Grow 406 @ICF 408 @IRR 411 @Lag 418 @Last 421 @Lease 423 @LeaseVariable 443 @Linavg 472 @Mix 473 @Movavg & @Movsum 475 MoveMed 481 @Nper 484 @NPV 493 @Outlook 498 @PMT 501 @PV 509 @Proportion 517 @Rate 518 @Repeat 529 @SeasonLite 529 @SeasonPro 533 @Simul 568 @StockFlow 571 @StockFlowAF 577 @StockflowBQ 582 @Tier 585 @Time 586 @TimeSum 593 @TMax 601
12 Analyst
Table of Contents @TMin 602 @Transform 603 @TRound 605 @Ytd 607 Switchover Dates 609 Examples: 610 Set up a Switchover Date in a Timescale D-List 610 Set up a Switchover Date in a BiF Formula 610 Print or Preview BiF Specifications 611 Chapter 13: Macros
613
Creating and Running Macros 613 Create a Macro using the Wizard 614 Record a Macro 615 Run a Macro 615 Macro Editor 615 Editing Macro Code 615 Editing Macro Variables 617 Start a Macro With Batch Utility Wizard 619 Configure Analyst Security 619 Run the Batch Utility Wizard 619 Using the Command Line to Run a Macro or Batch Job 621 Command Line Options 621 Command Line Examples 622 D-List Macros 627 @DListNew 627 @DListOpen 628 @DListUpdate 629 @ExportToEList 629 @ItemDelete 630 Item Import Macros 631 @DListItemImportCognosPackage 632 @DListItemCopyFromDList 635 @DListItemImportDelimitedText 637 @DListItemImportFileMap 640 @DListItemImportFinance 642 @DListItemImportDCube 644 @DListItemImportIQD 645 @DListItemImportOdbc 646 @RefreshDataWarehouse 649 ODBC Macros 650 Control Macros 650 @Activate 651 @AddLocalPreSelection 651 @CheckAccess 652 @CheckAccessLevel 653 @Close 653 @Delay 653 @FileTranslate 653
User Guide 13
Table of Contents @LibCopy 654 @MacroExecute 655 @Message 656 @PackDir 656 @PackDirSel 657 @Rem 658 @Reset 658 @Run 658 @Save 660 @ShutDown 660 @TestData 660 @UnPackDir 661 D-Link Macros 662 @DLinkActivateQueue 663 @DLinkExecuteInv 663 @DLinkExecSel 664 @DLinkExecute 665 @DLinkExecuteList 666 @DLinkNew 667 @DLinkOpen 668 @DLinkSelectList 668 D-Cube Macros 669 @DCubeCalculate 670 @DCubeClearMask 671 @DCubeCommand 672 @DCubeCreateDSels 673 @DCubeCreateTSels 676 @DCubeDeleteSels 678 @DCubeDeselect 679 @DCubeExport 680 @DCubeIncreaseSelect 683 @DCubeInput 684 @DCubeNew 685 @DCubeOpen 686 @DCubeOpenChooseSel 687 @DCubeOpenNamedSel 688 @DCubeOpenSelect 689 @DCubePage 689 @DCubePageId 690 @DCubePrint 691 @DCubeReselect 693 @DCubeSort 694 @DCubeTranspose 695 @DCubeUpdate 696 @GenerateTransformerModel 697 @Publish 698 @SliceCommand 699 @SliceUpdate 700 File Map Macros 704
14 Analyst
Table of Contents @FMapNew 705 @FMapOpen 705 A-Table Macros 706 @ATabOpen 706 @ATabRefresh 707 @ATabImportCognosPackage 708 @ATabImportDelimitedText 709 @ATabImportFileMap 710 @ATabImportOdbc 710 Chapter 14: A-Tables (Allocation Tables)
713
Example 713 Creating an A-Table 714 Selecting Source and Target for an A-Table 714 Attaching a D-List to an A-Table 718 Add A-Table Entries 719 Add Single Allocation Table Entries 719 Add Multiple Allocation Table Entries 720 Add New Entries for New Dimension Items 721 Add One-to-Many Entries 721 Allocate Entries Using Matching Descriptions 722 One-Sided Allocation Table Entries 723 Insert Items Buttons 723 Select Source and Target Dimension Items 724 Change the Source or Target for an A-Table 725 Managing A-Tables 725 Reorder Allocation Table Entries 725 Show and Hide Dimension Items 726 Change Entry Signs in an Allocation Table 727 How the A-Table Adapts when Dimension Item Lists Change 727 Refresh a Dimension Item List from a Mapped ASCII File 728 Delete A-Table Entries 729 Chapter 15: File Maps
731
Creating a File Map 731 Create a File Map 731 Map Editor Page 1 731 Map Editor Page 2 732 Map Editor Page 3 732 Using the LIB parameter 733 Delimited and Fixed Width ASCII Files 734 Define Columns in an ASCII File 734 Text Qualifiers 737 Special Cases for text qualifiers 738 Date and Text Data in File Maps 738 Import Date Data from a File Map 738 Import Text Data from a File Map into D-List Formatted Cells 740 Follow On 741 What does Follow On do? 742 An alternative view 743 User Guide 15
Table of Contents Which rows will a subheading apply to? 743 Use Follow On and Overlapping Subheadings 745 Drill Down and Follow On 747 Dummy Maps 747 ASCII Files 749 Effects of Changing an ASCII File 749 Effects of Changing Delimited ASCII Files 750 Effects of Changing Fixed Width ASCII Files 752 Effects of Changing the Source ASCII File for a D-Link 752 Chapter 16: Analyst Publish
755
Dimensions for Publish 755 Selecting a Dimension for Publish for Reporting 756 Understanding the Publish Process 757 Table-only Publish Layout 757 Database Object Names 758 Items Tables 758 Hierarchies 759 Export Tables 762 Annotations Tables 763 Metadata Tables 763 Creating a Table-only Publish Layout 766 View Publish Layout 768 Database object names 768 D-Lists 769 D-Cube Data and Export Tables 769 Annotations 769 Metadata 770 Views 771 Creating a View Publish Layout 771 Publishing Using the Command Line 773 Create a DSN for the Database Server 773 Set up Microsoft SQL Server 2000 Desktop Engine as a Database Server 775 Reporting Directly From Publish Tables 775 Generate Framework Manager Model Wizard 776 Configuring Your Environment 777 Create a Set of Framework Manager Models 779 Update a Framework Manager User Model 780 Generate Transformer Model Wizard 780 Configuring Your Environment 781 Generate a Transformer Model 781 Creating PowerCube(s) 782 Model Changes that Impact the Publish Tables 783 Chapter 17: Printing and Previewing
785
Print Setup 785 Previewing 786 Preview Formulas and Details of a D-List 786 Preview a D-Cube 786 Preview D-Cube Summary Information 787 16 Analyst
Table of Contents Printing 788 Print a D-List and Formulas 788 Print a D-Cube 788 Print Nested Macros 789 Print a List of Objects in a Library 789 Print to .csv Files 790 Print Annotations 790 Glossary Index
791
799
User Guide 17
Table of Contents
18 Analyst
Introduction
This document is intended for use with Cognos 8 Planning - Analyst. It helps you understand how to use all of the functionality in Analyst. Cognos 8 Planning provides the ability to plan, budget, and forecast in a collaborative, secure manner. The major components are Analyst and Contributor.
Audience
This guide is for both new and experienced Analyst users. Familiarity with financial data is helpful, but not required.
Related Documentation
Our documentation includes user guides, getting started guides, new features guides, readmes, and other materials to meet the needs of our varied audience. The following documents contain related information and may be referred to in this document.
User Guide 19
Introduction Note: For online users of this document, a Web page such as The page cannot be found may appear when clicking individual links in the following table. Documents are made available for your particular installation and translation configuration. If a link is unavailable, you can access the document on the Cognos Global Customer Services Web site (http://support.cognos.com). Logon credentials are available either from your administrator or by request from support.america@cognos. com.
Document
Contributor Administration Guide Manager User Guide Analyst for Microsoft Excel Tutorial Cognos 8 Planning Installation and Configuration Guide
Description
Creating and administering Cognos 8 Planning - Contributor Applications. Using Cognos 8 Planning - Manager Getting to know Cognos 8 Planning - Analyst for Microsoft Excel
Finding Information
To find the most current product documentation, including all localized documentation, access the Cognos Global Customer Services Web site (http://support.cognos.com). Click the Documentation link to access documentation guides. Click the Knowledge Base link to access all documentation, technical papers, and multimedia materials. Product documentation is available in online help from the Help menu or button in Cognos products. You can also download documentation in PDF format from the Cognos Global Customer Services Web site. You can also read PDF versions of the product readme files and installation guides directly from Cognos product CDs.
Getting Help
For more information about using this product or for technical assistance, visit the Cognos Global Customer Services Web site (http://support.cognos.com). This site provides product information, services, user forums, and a knowledge base of documentation and multimedia materials. To create a case, contact a support person, or to provide feedback, click the Contact Us link. For information about education and training, click the Training link.
20 Analyst
Introduction format, solely for the purpose of operating, maintaining, and providing internal training on Cognos software.
User Guide 21
Introduction
22 Analyst
What's New?
This section contains a list of new features for this release. It will help you plan your upgrade and application deployment strategies and the training requirements for your users. For information about upgrading, see the Cognos 8 Planning Installation and Configuration Guide. To review an up-to-date list of environments supported by Cognos products, such as operating systems, patches, browsers, Web servers, directory servers, database servers, and application servers, visit the Cognos Global Customer Services Web site (http://support.cognos.com).
User Guide 23
What's New?
24 Analyst
Steps
1. Click Start, Programs, Cognos 8, Cognos Planning - Analyst. 2. Choose a namespace and click OK. 3. Type your User ID and [optional] password, and click OK. 4. Select a default library to use for the session. Click OK. 5. To close Analyst, from the File menu, click Exit.
Registry Settings
When the application is installed, the registry keys created by the install are written to <HKEY_LOCAL_MACHINE> (HKLM). This allows several users to use the same PC for running Analyst. Writing to HKLM requires power-user rights and access rights to the registry. All registry settings created or changed at runtime are written to <HKEY_CURRENT_USER> (HKCU). Analyst usually writes to HKCU. When trying to read from the registry, it will first look in HKCU to find a specific value. If it doesn't find the value it needs, it defaults to the value in HKLM. Consequently, multiple users can use the same machine but have different registry settings in the HKU/SID, which will keep customized settings from being overwritten by other users. Optional: Changes can be made to the keyboard layout. Only users with power user rights can change these settings. You can also change the Maximum Workspace Size (kb) setting in Cognos Configuration.
User Guide 25
Restart Analyst
Restarting Analyst allows you to select a different default library, or to return to Cognos Planning - Manager if you opened Analyst through Manager.
Steps
From the File menu, click Restart. If you have open objects, you are prompted to save them.
Understanding Analyst
Analyst is very different from Excel. If you have an Excel background, it is important to understanding how Analyst differs from Excel in the key areas.
Spreadsheet Formulas
Cell specific
D-List Formulas
Global
26 Analyst
Spreadsheet Formulas
Spreadsheet specific Use cell references or range names Change by editing a cell then copying
D-List Formulas
Can be used in multiple D-Cubes Use item names Change by editing a single formula: copied automatically
Flexible: can cross-reference different rows, Structured across rows or down columns or pages columns and worksheets Use formulas to refer to a different worksheet Thousands in a large spreadsheet @function ( ) Use D-Links to refer to a different D-Cube
System Parameter
{LIB}
Description
Inserts the current library path of the object where {LIB} is used. Can be used in file maps, import D-Links, and the @DCubeExport macro.
{LIBNO}
Inserts the current library number of the object where {LIBNO} is used. Can be used in file maps.
Other Differences
Multi-page spreadsheets generally are only three-dimensional, whereas D-Cubes can contain four, five, or even six dimensions. Some spreadsheets now can be pivoted so page labels become column headings and vice versa. The options for viewing D-Cubes go further than this. The rows, columns, and pages can be interchanged. Spreadsheets generally use cell references for formulas and store the calculations in the worksheet. D-Cubes, however, do not store the formulas. Rather, the formulas are stored in D-Lists as separate entities. The practical effect of this is that one set of formulas can be used in many User Guide 27
Chapter 1: Analyst Overview different D-Cubes. D-List formulas use the same names throughout, so a formula is not dependent on a relative cell reference or the position of a cell. In spreadsheets, the arithmetic is generally one way. Data is typed in designated cells and the results are shown in other cells. Any attempt to type data in formula cells results in an error. In D-Cubes, the arithmetic is two-way: Targets can be set by typing data in a formula cell and splitting it to its component parts according to predefined rules. For example, you could enter a budget for the full year, and the program would split the annual figure into months by allocating it pro rata across a given seasonality profile. This two-way arithmetic is known as breakback. To refer to a different worksheet, spreadsheets generally use formulas. To refer to a different D-Cube, D-Cubes use D-Links rather than formulas.
Analyst Samples
Sample models are provided with Cognos Planning. Samples illustrate key features in these products. Samples are installed to the following location for English installation _location\samples\en\Planning. For French and German language installs, the path would be ...\samples\fr\Planning and ...\samples\ de\Planning. They can be accessed directly from Cognos Planning - Analyst without any further configuration if the system administrator has installed them. The following table lists the samples available in Cognos Planning. This is not necessarily an exhaustive list. Visit the Cognos Global Customer Service Web site (http://support.cognos.com) for more information. 28 Analyst
Chapter 1: Analyst Overview We recommend that you do not edit and save any of these samples directly. Instead, copy the required D-Lists, including any formats such as D-List formats, into another library, and then rebuild the D-Cubes. You may want to use other dimensions such as Time, as appropriate.
Name
tutorialgo
Planning Component
Analyst
Description
A lightweight model used with the Analyst Tutorial and Analyst for ExcelTutorial to demonstrate key Analyst functionality Used to demonstrate and test much of the Analyst functionality. Provides working examples of all Built in Functions. Contains a macro which runs D-Links to D-Cubes in either Analyst or Contributor in a series of steps, each targeting a small slice or chunk of the target D-Cube, and thus requiring far less memory to execute the link.
Analyst
bif
Analyst
slice_update
Analyst
Tutorialgo
The Analyst Tutorial demonstrates how to create a simple Analyst model. The tutorialgo library is the finished model. It is designed to introduce users to the concepts of Analyst. In particular, the principles of the D-List, D-Cube and D-Link. See the Analyst Tutorial for more information. Analyst for Excel tutorial also uses this library, see the Analyst for Microsoft Excel Tutorial for more information. The tutorialgo model does not make full use of the functionality available in Analyst. For more functionality, use the great outdoors analyst model.
Depreciation
The Depn policy D-Cube holds the asset life and depreciation methods for all the different asset types.
User Guide 29
Chapter 1: Analyst Overview The Asset purchases D-Cube allows entry by division, by budget version of the cost, asset type, month of purchase, and month to start depreciation. The Depreciation D-Cube allows calculation of depreciation on new asset purchases, and combines this with depreciation on existing items. This is typically imported from a fixed asset register to determine appreciation charge.
Sales
The Price and cost D-Cube holds sales price and unit cost by product and by version. The Sales plan D-Cube determines the calculation of a growth margin from its elements by product, channel, division, month, and version.
Salaries
The Base Salaries D-Cube makes the assumption that individual salaries are based on grade. It holds the base salary by grade, division, and, version. The Salary plan D-Cube determines the salary by individual, version, and by month based on their division, grade, and month they are due an increase. The start date has been included for information purposes. It is not part of the calculation of the salary, although this functionality could be included if required.
Expenses
The Expenses D-Cube has links from Salary Plan and Commissions to import the appropriate data. Additionally the Expenses D-Cube holds details of the overhead expenditure. The overhead expenditure is planned at annual level and breakback functionality is then used to apportion it to months appropriately. The OH adjust D-Cube holds the annual base data by overhead item, division, and month. It allows a percent change to be applied to the base amount to provide an adjusted amount. The OH profiles and Profile types D-Cubes enable the adjusted overhead values to be apportioned into the appropriate months depending on the profile to be used and the monthly structure of that profile. The Commissions D-Cube takes the growth sales revenue and applies the appropriate commission percentage to determine the commission charge by division, month, and version.
Income Statement
The Franchise rev D-Cube holds the imported franchise revenue by division, month, and version. The Inc Statement D-Cube is a summary D-Cube combining the summary level from the other D-Cubes. In addition, it allows for below the line expenditure to be entered, by division.
Miscellaneous
Additionally, this sample includes the following: Csv files that contain the base data D-Links to import the data
30 Analyst
Chapter 1: Analyst Overview Macros to help with model maintenance Manager screens have been provided to aid the understanding and usability of the sample. They consist of a front page, two flowcharts, and some sample screens to manage and maintain the model.
User Guide 31
Chapter 1: Analyst Overview Steps cube does not need to contain the e.List, but must have an internal D-Link. Contributor does not allow internal D-Links if the cube does not contain the e.List. This sample has been set up so that it will work in Analyst. For information on using it with Contributor, see (p. 34). There are three parameters in the @SliceUpdate macro:
Lists
A list of the D-Lists which are to be used as slice dimensions.
Lookup
A slice of a D-Cube which stores data about the dimensions being sliced on. When Analyst is the target, the rows D-List of this D-Cube must contain items that have the same names as some or all of the items in the D-Lists in the target D-Cubes on which you are slicing. When Contributor is the target, the rows dimension of this cube must contain the same items as the dimension being sliced on in the Contributor cube, and it must also have exactly the same name.
Criteria
The basis for deciding which elements of the target D-Cube should be targeted when the D-Link is run.
The D-Cubes
The Target Cube Analyst1 D-Cube has the dimensions: Single Item, Target, sources, Divisions, and Versions. The Target Cube Analyst2 D-Cube has the dimensions: Single Item, Target, sources, European Areas, and Versions. The European Areas D-List contains some of the items in the Divisions D-List but not all of them. There is one link targeting each D-Cube. In each case it is included in the @DCubeUpdate list. When the D-Cubes are updated, either the Versions dimension, the Divisions/European Areas dimension, or both could be used to define the slices.
32 Analyst
Chapter 1: Analyst Overview The empty step is left in to illustrate that the macro will not stop if one step is empty. Versions 1, 3, and 7 are not set to be updated. The 'Target Cube Analyst 1' and 'Target Cube Analyst 2' D-Cubes are all zero. The 'Update macro target analyst' macro runs the D-Cube update steps for both D-Cubes. The single dimension slice update is defined in the 'Template Macro 1' macro. The Versions dimension is defined as the dimension on which to slice. Any item from the Versions D-List is targeted when the D-Link is run, if it is defined as the 1st step in the Current Step column of the Slice Dimension 1 D-Cube. The update steps were defined in a separate column of this same D-Cube.
When the macro is complete, in the Target D-Cubes, Versions 2, 4, 5 and 6 now contain a number 1 as they have been targeted by the link.
Chapter 1: Analyst Overview When the macro has finished, only cells in Americas, Central Europe, or Southern Europe and Version 2, 3 5 or 6 will contain a 1. This means that only very small slices of the D-Cube have been updated in each round.
Steps
1. Rename the 'Steps slice Dimension 1' D-Cube to exactly the same name as your Contributor dimension. 2. Update the D-List with all the items contained in the Contributor dimension. 3. Edit the SliceUpdate parameter in 'Template macro 1' so that the list of lists contains only this D-List. 4. Replace the second command line with your own update macro. 5. Set your update steps in the 'Steps slice Dimension 1 cube. Running the 'DCO Steps 1' macro opens the correct slice. 6. Run the 'Template macro 1' macro.
34 Analyst
Steps
1. From the Tools menu, click Options. 2. Click the Custom tab. 3. In the Custom Menu File text box, type the path of the custom menu, or browse for the file. 4. Click OK. 5. You are prompted to restart Analyst. 6. For the changes to take effect, click Yes. Analyst closes and re-opens.
User Guide 35
Chapter 1: Analyst Overview For a menu item, the action code follows the second colon. The only documented action code is "M|" for a macro call. Other action codes exist but currently are for internal use only. Macros are defined by a numeric library number followed by the full macro name. Note: Only use letters after the ampersand (&) or Analyst will not function. The character following the ampersand (&) must be a letter of the English alphabet. If you use other characters, Analyst will not work on start-up.
Note: When creating the Custom Toolbar text (.txt) file, ensure that there are no spaces between the commas separating the four fields.
Steps
1. Create the custom toolbar text (.txt) file. 2. Create (or use an existing) a toolbar button saved as a bitmap (.bmp) file. 3. From the Tools menu, click Options. 4. Click the Custom tab. 5. In the Custom Toolbar File text box, type the path of the custom toolbar, or browse for the file, and then click OK. 6. Click Yes to restart Analyst.
36 Analyst
Chapter 2: Administration
There are a number of administrative tasks that must be performed on a regular basis. A necessary part of application administration is the care and maintenance of the Analyst database. As a regular part of these efforts, you must: view and edit Analyst workspace settings(p. 37) set FileSys.ini file (p. 38) rebuild index files (p. 39) refresh references to objects (p. 39) validate D-Lists (p. 39) close ODBC links (p. 40) manage memory (p. 40) manage masks (p. 40) administer users (p. 40) set configuration settings (p. 40) administer groups (p. 41)
User Guide 37
Chapter 2: Administration The amount of memory you specify can be a value between 64000 and 2000000, and the memory is allocated as it is needed up to the limit you set.
Set Filesys.ini
The filesys.ini file is the main control file that is referred to when the program starts. You can specify the pathnames of the Libs.tab, Users.tab, and Groups.tab that control your specific library and user set-ups. You can edit the location of the filesys.ini file from Analyst, and from the Contributor Administration Console.
Steps in Analyst
1. From the Tools menu, click Options. 2. Click the General tab. 3. In the Active Filesys.ini file box, click type the path of the filesys.ini file or click Browse to locate the file manually.
38 Analyst
Chapter 2: Administration
Step
From the File menu, click Administration, Rebuild Index Files. The index files will be rebuilt from DOS pathnames of objects in the current library.
Refresh References
Because objects have references to other objects - for example, a D-Cube refers to its D-Lists, a D-Link refers to its source and target D-Cubes, and a selection refers to its D-Cube and D-Lists, and because models can become very large and complicated, references may become corrupt. On rare occasions, you may need to refresh these references.
Step
From the File menu, click Administration, Refresh References. The references to other objects in the current library are refreshed. If any libraries on the system are ever offline, and work is done on the remaining libraries, it will be necessary to refresh references on these libraries when they come back online. Also, if work has been done on the libraries while offline, all remaining libraries must be refreshed when it all comes online again.
Validate D-Lists
This function enables you to check the syntax of every formula in every D-List in the current library.
Step
From the File menu, click Administration, Validate D-Lists. Cognos Planning - Analyst checks the validation of each calculation contained in every D-List.
User Guide 39
Chapter 2: Administration
Step
From the File menu, click Close ODBC.
Configuration Settings
You can alter the configuration settings. These control the path to the start-up control file, the maximum memory usage, the undo/redo facility, and the customized menu options.
40 Analyst
Chapter 2: Administration 5. Type the stack size of D-Cube data undo in the D-Cube Data Undo Stack Size box. CubeStackBytes in the CP section of the registry or in Cognos.ini is the amount of memory that Analyst uses for storing the cells that are to be undone/redone. These are measured in kilobytes (that is, 1024 KB = 1 MB). The rule of thumb is that 8 bytes is needed for each cell that is to be undone/redone. For example if the D-Cube Data Undo Stack Size = 1024, 128,000 cells can be undone: 1024000 / 8 = 128,000. Thus a 10,000 cell D-Cube selection could be undone 12 times, whereas a 128,000 cell D-Cube selection can be undone only once. This assumes that the Maximum Undoable View Size is increased to allow it. When calculating the number of levels of undo, it is the total number of cells in the selection that counts, not the number of cells that actually have changed. Note: This does not use workspace. It uses a machine's extra PC RAM, and will therefore be restricted by the amount of available RAM and the number of applications that are running. 6. Type a value for the maximum undoable size in the Maximum Undoable View Size (MaxViewCells*8) box. This is the setting that is used to filter what goes into the D-Cube Data Undo Stack Size. By default, this is set to 128, which means a D-Cube selection of more than 16,000 cells cannot be undone (128,000 bytes/8 bytes per cell = 16,000 cells). For example. If you have a large selection from one D-Cube and many small selections from other D-Cubes, you may not be interested in undoing operations on the large D-Cube. You could set the limit to 10000 cells, for instance, so the undo/redo engine will ignore selections larger than 10000 cells (avoiding taking snapshots of them). Note: For very large D-Cubes, if memory is limited, you may want to disable the undo/redo function.
User Guide 41
Chapter 2: Administration 7. From the table, right-click to open an object, or print or preview the list of objects.
42 Analyst
Chapter 3: Objects
Objects are the basic building blocks used to create models in Cognos Planning - Analyst.
Objects include:
D-Lists (p. 215) D-Cubes (p. 147) D-Links (p. 215) A-Tables (Allocation Tables) (p. 713) File Maps (p. 731) Macros (p. 613) Formats (p. 109) Selections (p. 197) Libraries (p. 301)
Steps
1. Open the object. 2. From the File menu, click Summary Info. 3. Click the General tab and type an owner's note or description in the Notes box. 4. Click OK. 5. Save and close the object to ensure the notes are kept.
Step
Select File, Administration, File to Object then select a file name.
User Guide 43
Chapter 3: Objects The object name and the Windows path are revealed.
44 Analyst
Chapter 4: Security
Cognos 8 security is designed to meet the need for security in various situations. You can use it in everything from a proof of concept application where security is rarely enabled to a large scale enterprise deployment. The security model can be easily integrated with the existing security infrastructure in your organization. It is built on top of one or more third-party authentication providers. You use the providers to define and maintain users, groups, and roles, and to control the authentication process. Each authentication provider known to Cognos 8 is referred to as a namespace. In addition to the namespaces that represent the third-party authentication providers, Cognos 8 has its own namespace named Cognos. The Cognos namespace makes it easier to manage security policies and deploy applications. For more information, see the Cognos 8 Security and Administration Guide.
Cognos Namespace
The Cognos namespace is the Cognos 8 built-in namespace. It contains the Cognos objects, such as groups, roles, data sources, distribution lists, and contacts. During the content store initialization, built-in and predefined security entries are created in this namespace. You must modify the initial security settings for those entries and for the Cognos namespace immediately after installing and configuring Cognos 8. You can rename the Cognos namespace using Cognos Configuration, but you cannot delete it. The namespace is always active. When you set security in Cognos 8, you may want to use the Cognos namespace to create groups and roles that are specific to Cognos 8. In this namespace, you can also create security policies that indirectly reference the third-party security entries so that Cognos 8 can be more easily deployed from one installation to another. The Cognos namespace always exists in Cognos 8, but the use of the Cognos groups and roles it contains is optional. The groups and roles created in the Cognos namespace repackage the users, groups, and roles that exist in the authentication providers to optimize their use in the Cognos 8 environment. For example, in the Cognos namespace, you can create a group named HR Managers and add to it specific users and groups from your corporate IT and HR organizations defined in your authentication provider. Later, you can set access permissions for the HR Managers group to entries in Cognos 8.
User Guide 45
Chapter 4: Security
Authentication Providers
User authentication in Cognos 8 is managed by third-party authentication providers. Authentication providers define users, groups, and roles used for authentication. User names, IDs, passwords, regional settings, personal preferences are some examples of information stored in the providers. If you set up authentication for Cognos 8, users must provide valid credentials, such as user ID and password, at logon time. In Cognos 8 environment, authentication providers are also referred to as namespaces, and they are represented by namespace entries in the user interface.
Cognos 8 does not replicate the users, groups, and roles defined in your authentication provider. However, you can reference them in Cognos 8 when you set access permissions to reports and other content. They can also become members of Cognos groups and roles. The following authentication providers are supported in this release: Active Directory Server Cognos Series 7 eTrust SiteMinder LDAP NTLM SAP
You configure authentication providers using Cognos Configuration. For more information, see the Installation and Configuration Guide.
Multiple Namespaces
If multiple namespaces are configured for your system, at the start of a session you must select one namespace that you want to use. However, this does not prevent you from logging on to other namespaces later in the session. For example, if you set access permissions, you may want to reference entries from different namespaces. To log on to a different namespace, you do not have to log out of the namespace you are currently using. You can be logged on to multiple namespaces simultaneously. Your primary logon is the namespace and the credentials that you use to log on at the beginning of the session. The namespaces that you log on to later in the session and the credentials that you use become your secondary logons. When you delete one of the namespaces, you can log on using another namespace. If you delete all namespaces except for the Cognos namespace, you are not prompted to log on. If anonymous access is enabled, you are automatically logged on as an anonymous user. If anonymous access is not enabled, you cannot access the Cognos Connection logon page. In this situation, use Cognos Configuration to enable anonymous access.
46 Analyst
Chapter 4: Security
Steps
1. In Cognos Connection, in the upper-right corner, click Launch, Cognos Administration. 2. On the Security tab, click Users, Groups, and Roles. If the namespace you want to delete does not have a check mark in the Active column, it is inactive and can be deleted. 3. In the Actions column, click the delete button. If the namespace is active, the delete button is not available. The namespace is permanently deleted. To use the namespace again in Cognos 8, you must add it using Cognos Configuration.
User Guide 47
Chapter 4: Security and roles created in Cognos 8. The groups and roles created in Cognos 8 are referred to as Cognos groups and Cognos roles.
Users
A user entry is created and maintained in a third-party authentication provider to uniquely identify a human or a computer account. You cannot create user entries in Cognos 8.
Information about users, such as first and last names, passwords, IDs, locales, and email addresses, is stored in the authentication providers. However, this may not be all the information required by Cognos 8. For example, it does not specify the location of the users' personal folders, or format preferences for viewing reports. This additional information about users is stored in Cognos 8, but when addressed in Cognos 8, the information appears as part of the external namespace.
48 Analyst
Chapter 4: Security
Group
Role
User
Group
User
Group
Role
You create Cognos groups and roles when you cannot create groups or roles in your authentication provider groups or roles are required that span multiple namespaces portable groups and roles that can be deployed are required In this case, it is best to populate groups and roles in the third-party provider, and then add those groups and roles to the Cognos groups and roles to which they belong. Otherwise, you may have trouble managing large lists of users in a group in the Cognos namespace. you want to address specific needs of Cognos 8 administration you want to avoid cluttering your organization security systems with information used only in Cognos 8
Capabilities
Capabilities are secured functions and features. If you are an administrator, you set access to the secured functions and features by granting execute permissions for specified users, groups, or roles. Users must have at least one capability to be accepted through the Cognos Application Firewall.
User Guide 49
Chapter 4: Security The Planning Contributor Users role has the Planning Contributor capability by default. If you do not want to use this role, you can assign the capability to any groups, users, or roles that you create to replace this role by giving execute permissions to the appropriate members. The Planning Rights Administrators role has the Planning Rights Administration capability by default. To assign this capability to groups, users, or roles, you must give execute permissions to the appropriate members. You must also give members permissions to traverse the Administration folder. Tip You change capabilities through Cognos Administration, by clicking the Security tab. For more information, see "Securing Functions and Features" in the Administration and Security Guide.
50 Analyst
Using the Contributor Administration Console set access rights for Contributor administrators to Contributor administration functions set rights for Contributor application users for Contributor applications
User Guide 51
Chapter 4: Security This enables you to have single signon between multiple clients on the same computer. Note that you cannot have single signon between a Windows application, and a Web client application, for example, Contributor administration and Cognos 8. 7. Specify the values for all other required properties to ensure that Cognos 8 components can locate and use your existing authentication provider. 8. Test the connection to a new namespace. In the Explorer window, under Authentication, right-click the new authentication resource and click Test. 9. From the File menu, click Save. Cognos 8 loads, initializes, and configures the provider libraries for the namespace. For specific information about configuring each kind of authentication provider, see the Cognos 8 Planning Installation and Configuration Guide.
Add or Remove Members From Planning Rights Administrators and Planning Contributor Users Roles
Using Cognos Administration, add Contributor Administration Console administrators and Analyst administrators to the Planning Rights Administrators role. Add Contributor application and Analyst users to the Planning Contributor Users role.
Steps
1. In Cognos Connection, in the upper-right corner, click Cognos Administration. 2. On the Security tab, click Users, Groups, and Roles. 3. Click on the Cognos namespace. 4. In the Actions column, click the properties button for the Planning Rights Administrators or Planning Contributor Users role. 5. Click the Members tab. 6. To add members, click Add and do the following: To choose from listed entries, click the appropriate namespace. To search for entries, click the appropriate namespace and then click Search. In the Search string box, type the phrase you want to search for. For search options, click Edit. Find and click the entry you want. To type the name of entries you want to add, click Type and type the names of groups, roles, or users using the following format, where a semicolon (;) separates each entry: namespace/group_name;namespace/role_name;namespace/user_name; Here is an example: Cognos/Authors;LDAP/scarter;
52 Analyst
Chapter 4: Security 7. Click the right-arrow button, and when the entries you want appear in the Selected entries box, click OK. Tip: To remove entries from the Selected entries list, select them and click Remove. To select all entries in a list, click the check box in the upper-left corner of the list. To make the user entries visible, click Show users in the list. 8. Click OK. For more information, see the Cognos 8 Administration and Security Guide.
Group
Data Manager Authors
Tool
Framework Manager
Task
Only members of the Data Manager Authors group can import from a Framework Manager data source. You must have a Data Manager Authors group member perform this task.
Directory Administrators
Cognos Administration You must have a Directory Administrator create Configuration, Data a data source named Cognos Planning Source Connections Contributor with a connection of type Cognos Planning - Contributor before performing go to production.
Cognos Administration A Report Administrators or Server Administrators Configuration, Content group member must publish and run macros in Administration Content Administration.
Chapter 4: Security For more information about the Everyone group, and System Administrators role, see "Initial Security" in the Administration and Security Guide.
54 Analyst
Chapter 4: Security Removing access rights at library level is achieved in a different manner. To remove access rights at library level, remove a user from the access list.
Filesys.ini Recommendations
We recommend using NT security on the filesys.ini file, and giving only the Planning Rights Administrators write access to the filesys.ini file. Every other user should have read rights.
User Guide 55
Chapter 4: Security
Steps
1. In Internet Information Services (IIS) Manager, right-click the Cognos8 virtual directory, and select Properties. 2. Click the Directory Security tab, and click Edit next to Enable anonymous access and edit the authentication methods for this resource. 3. Clear Anonymous access, and select Integrated Windows authentication. Click OK, and close IIS. 56 Analyst
Chapter 4: Security
Steps
1. Log on to Analyst. 2. Select a library from the list to use as a default library. 3. Click OK. Tips: To prevent you from being asked to select a library every time you open Analyst, from the Tools menu, click Options. Click the View tab, and select the Do not Prompt for default library check box, and click OK. You can select default libraries for Users, Groups, and Roles. From the File menu, select Administration, Maintain Libraries and Users. Click the name of the user, group, or role, and then click Properties. Select the default library.
Steps
1. In Analyst, from the File menu, click Administration, Maintain Libraries and Users. 2. Click the Users, Groups and Roles tab. 3. Select the users, groups, or roles that you want to restrict access to and click Properties. 4. Select the Restricted D-Cube Access check box. 5. Click OK.
Steps
1. In Analyst, from the File menu, select Administration, and click Maintain Libraries and Users.
User Guide 57
Chapter 4: Security The Table maintenance dialog box appears. 2. Click the library you want to set access rights for and click Properties. The Properties dialog box appears showing access rights for the library. 3. Click the Access tab, then click the name whose access you want to modify. 4. Click Read Access, Write Access, or Control Access. The name appears in the right-hand column with the appropriate access assigned. Tip: To remove access rights, click Remove. Note: Only names that have been added to Analyst are available, and by default, users have Control access over libraries they own. 5. Click OK. 6. In the Table Maintenance dialog box, click Close to return to Analyst.
Access
Leave Blank No Access
Description
Objects inherit the library security settings Removes all access rights. You cannot view, read, write, or control objects. Can view and copy, but not change an object. Can change and save an object. It also confers full read-access. Can set security on an object. It also confers full read and write-access.
Control Access
58 Analyst
Chapter 4: Security any attempt to give the D-Cube control access will be overruled by the write-access settings for the library. Access rights can be set or changed only if you have control access to the library and objects you are working on.
Steps
1. From the File menu, click Library, Objects. 2. Select the objects for which you want to set security. 3. Right-click anywhere in the list and choose Define Access. 4. Click Add to add a list of users who you want to give access to these objects. Only users, groups, and roles that have been added to Analyst are available. 5. Click the name of the user, group, or role. 6. Select the access level from the drop-down menu. 7. Click OK.
Step
From the File menu, click Read Only Mode, Current Object.
[Read Only] appears in the title bar of the current object. Note: After you have switched to read-only mode, you cannot revert to write-mode without closing and re-opening the object.
Steps
1. From the File menu, click Administration, Maintain Libraries and Users. 2. In the Administration dialog box, click the Libraries tab and then double-click the library you want to change. 3. Click Access, and do one of the following:
User Guide 59
Chapter 4: Security If there are no users, groups, or roles listed, click Add, select the name in the Give Access to dialog box, select the access level and click OK. If users are already listed, click the user, and select the appropriate level of access from the Change Access to box. Note: Everyone is automatically a member of All Users, which by default has Read Access to all libraries. If you want to make a library secure, All Users access must be removed. Optionally, you can repeat this process to add access rights for other users. 4. After the access rights for users are set, click OK to return to the Users page and then click Close.
Step
From the File menu, click Read Only Mode, On/Off.
Managing Masks
You can customize the mask to give each user a key to unlock the restrictions. The choices are Read, Write, or Invisible. Items that are set to Read appear on the window but cannot be typed over or changed except by an indirect method such as a breakback. Items that are set to Write can be changed as usual. Items that are set to Invisible do not appear on the selection window. If a user has access at one level and a group to which the user belongs is restricted at a different level, the system takes on the highest access level of the two settings.
Example
If users have Invisible access but are members of All Users, which has Write access, they are able to see and change items because the program grants the highest level of access it can find. The only exception is that a user cannot have higher access to a D-List item than the object or library it belongs to. Anyone with the status of Planning Rights Administrator can override any security settings. If you are not on a network, it is typical for all standalone users to be Planning rights administrators, meaning they can access all models that are given to them. 60 Analyst
Chapter 4: Security Only users with Control access to a D-List can apply or remove a mask. It is possible to lock yourself out of certain items by attaching a mask that makes the items invisible. However, it is not as serious as it sounds because if you had control access to attach the mask, you also have the right to remove it. If you do not have Control access to a D-List, you cannot add or remove a mask. Usually, you only apply a mask to items from a single D-List within a D-Cube. In the unlikely event that item level security is applied to items from two D-Lists in the same D-Cube, there is a potential conflict of access rights at the intersection. In this case, the most secure of the two settings is applied. Thus, if you have Write access to UK and Read access to Sales, the UK Sales cell will give you Read access, the more secure of the two settings.
Create a Mask
Create a mask to hide individual items within a D-List or to prevent someone from writing over specified items. This is useful when you are on a network and want to allow limited access to large D-Cubes. When you open a D-Cube, items assigned to masks that are set to Invisible do not appear on the selection window. Items marked Read appear and can be changed temporarily but cannot be saved. If you have items that do not have full write-access in the current selection, you cannot save the D-Cube. This applies even if you have altered only items with Write access. Also, you cannot save the data in the D-Cube if a total can breakback over an item to which you do not have write access.
Steps
1. From the File menu, click Administration, Maintain Libraries and Users. 2. Click the Mask tab. 3. Click Add to create a new mask. 4. In the Name box, type a name for the mask. By default, a new mask has All Users defined as Invisible. This is the most secure setting possible and applying such a mask to a D-List item renders it invisible to everyone. 5. To customize the access levels for each individual or group to allow limited access: In the Create a new Mask dialog box, click Add and select the user and then click OK. 6. Change access to Read, Write, or Invisible. 7. Repeat for other users and groups until you have built up the required security pattern. If you are giving users write access at item level, ensure that they have write access at both object level and library level. Otherwise they cannot save the data. The default is for users to have read access to libraries unless they are given write access by the Planning Rights Administrator. If the selection opened has any items with read access, the whole D-Cube opens in read-only mode and you cannot save the D-Cube. To open with Write access, you must open a selection or slice of the D-Cube that has Write access. You can use Saved Selections to define Write or Read Only slices of the D-Cube. 8. Optionally, click Remove to withdraw the access privileges for a user or a group.
User Guide 61
Chapter 4: Security 9. Click OK to save the masks; then click Close to return to the main window.
Steps
1. Open the D-List. If masks already are applied to a D-List, a small yellow padlock appears in the top left corner of the D-List. 2. From the D-List menu, click Options and then click the Security tab. 3. Click the item you want to mask, and then select a mask from the menu. 4. If you want to view or change the security pattern defined by a mask, click Edit Masks. 5. Optionally, you can right-click to get a menu allowing you to create a New mask, Edit or Clear an existing one, or Assign a mask to other items. 6. To assign a mask to other items, select a mask in the Multiple Assignment box and then click Assign. Select items that you want to apply the mask to and then click Move>>. 7. Click OK. Note: You can set a default mask that will apply to any new D-List items that are added later. 8. Click OK and save the D-List. To enter data in a D-Cube that contains masked D-Lists, from the File menu, click Open, D-Cubes, Edit Selection. Select only those items to which you have full write access. Do not select any sub total if you do not have write access to all the components of that subtotal. Items with Write access can be changed but only if the user also has write-access at object and library level.
62 Analyst
Chapter 5: Integration
Cognos Planning - Analyst can be used with other products. You can to take actuals from an Enterprise Resource Planning (ERP) system and combine them with planning information from Analyst and Contributor to perform comparative analysis using Cognos Performance Applications. The following diagram illustrates the various integration points between Cognos Planning and other Cognos products.
OLAP
Relational
Performance Applications
Cognos 8 Controller
Cognos Finance
User Guide 63
Chapter 5: Integration forecasting and budgeting. Users can take historical actuals gathered in Cognos Finance and use them in Analyst and Contributor to forecast for the future. The Import From Cognos Finance wizard in Analyst facilitates the import of metadata and data from Cognos Finance into Analyst and the subsequent movement of data back and forth between the two applications.
Once the modeling is completed in Analyst, the Contributor administrator: creates an application from the Analyst model. imports the e.List from the text file created in Analyst during the Import From Cognos Finance step. imports Cognos Finance data into Contributor using existing import mechanisms. The application goes to production and the plans are delivered and updated.
In Analyst, the modeler user defines a D-Link, using Contributor as a Source and Cognos Finance as the target to move the latest D-Cube data from Contributor to Cognos Finance. Financial reporting can then be done via the Cognos Finance Reporting Module.
64 Analyst
Chapter 5: Integration
Steps
1. From the File menu in Analyst, click Import From Cognos Finance. This menu is only enabled if Planning and Cognos Finance are installed in the same installation folder. 2. Click the Cognos Finance system. 3. Click or type the location of the Cognos Finance report or input form. 4. Click a destination library to create the D-Lists, D-Links, and D-Cube. User Guide 65
Chapter 5: Integration 5. Click an item format. 6. Select the Define an e.List box if there is a future need to import e.List data into the Contributor Administration console. An e.List is a dimension with a hierarchical structure that typically reflects the structure of the organization. It determines how the application is distributed to end users. It can also be used to establish rules of security. The e.List data is typically imported into the Contributor Administration Console as a text file. Selecting the Define an e.List box causes an e.List specification page to be displayed. The specifications are used to automatically generate the necessary Contributor e.List import text file. 7. If you want to allow for the creation of a D-Cube, click Create a D-Cube. To create a D-Link that can be used to refresh a D-Cube from a Cognos Finance system, click Create a Cognos Finance to Analyst D-Link. To create a D-Link that can be used to update a Cognos Finance system, click Create an Analyst to Cognos Finance D-Link. When the D-Link name exceeds 31 characters, the D-Cube, the LRF and the LIF names are truncated to 31 characters. 8. Click the Cognos Finance dimensions that you want to create during import. The list of Cognos Finance dimensions is based on the definition of the LRF and LIF files selected in Cognos Finance. 9. If you are defining an e.List, click a dimension as an e.List. 10. If you are defining an e.List, click either Create D-List with all items or Create D-List with one item. If you choose Create D-List with one item, the first item is used. 11. If you are defining an e.List, type the location of the e.List import text file to be created. 12. When you define a D-Cube, select a filter, then double-click one or more items in the Source list to move the item to the Target list. When the options for creating a D-Link are selected and the target list contains existing D-Lists from Analyst, the D-Link mapping definition is partially created for the existing D-Lists. You must manually map the existing D-List to Cognos Finance dimensions to complete the mapping definition. 13. You can rename the D-Link, D-Cube, and D-List, which are created in Analyst. Click the object, press F2, and type the new name. 14. If you want to run the Cognos Finance to Analyst D-Link right away, click Run Cognos Finance to Analyst D-Link. If you do not click this option, an empty D-Cube is created. 15. Click Finish to proceed with import process. Once the process is completed, the newly created D-Cube is automatically opened you clicked Open D-Cube on Finish.
66 Analyst
Chapter 5: Integration
The data warehouse extracts, and changes that occur during the planning cycle, are managed using the Import from IQD wizard. Monitoring is done directly against Contributor data using the appropriate extensions. Steps Preparing Cognos Performance Applications Data for Planning In the Performance Application, identify the key performance indicators (KPIs) to plan by, monitor, and report on. Because planning is often performed at a different level from actuals, you may need to add to the dimensions from the data warehouse. Cognos consultants can help you in this identification and analysis. The Import from IQD wizard expects each dimension to have both an ID field and a description field, each of which must be unique across the dimension. Preparing for the Model in Analyst After the planning measures and dimensions that are available from Cognos Performance Applications have been identified, the Analyst user designs a model, and identifies any alternate data sources that are needed for the dimensions and measures. Because Performance Applications use multiple currencies for reporting, the Analyst user should determine what currency to use when data is published back into the Performance Applications warehouse. Note: If you create a D-List using the Import from IQD wizard, you should not add any items manually. If you do add items manually, these items will be removed every time you refresh the D-List. After planning models are designed and sourcing is identified, the solution to integrate the actuals information with planning information can be implemented using either the mapping table that is generated during the IQD import, or if the mapping tables are not required, you can use a Cognos package as a source to populate D-Lists in Analyst. Preparing e.Lists for Contributor Data As well as importing D-List data for the Analyst model, you can choose to generate e.Lists using data from IQD files, or if the data is modeled in Framework Manager and published as a package, you can also use Contributor Administration Links. User Guide 67
Chapter 5: Integration
(2)
Analyst
Import from Impromptu Query Definition (IQD) Refresh from IQD Update from Data Warehouse D-Lists D-Cubes IQD SQL
(3)
(4) (1)
PQD
Data Warehouse
Cognos Planning
You can follow the workflow in the diagram from numbers 1 through 7 in sequence. 1. You model the data in Framework Manager or Impromptu that needs to be imported into Planning and save this as an IQD file. 2. Using the Analyst Import from IQD feature, browse to the IQD file and use the contents of the file to populate the various wizard steps. After the IQD file has been used once, it is not required by Analyst since Analyst stores the IQD details internally. The IQD file itself is only required if it is necessary to re-run the import wizard, as opposed to simply refreshing the D-List. Also as part of the import wizard, a mapping table is created that holds the relationship between the source business keys and the IDs generated by Planning. You can choose where this mapping table is stored, for example the source database. See Step 7 for more details. 3. When running the Import from IQD feature to create an e.List, the wizard generates the D-List in Analyst, either fully populated or with just a placeholder item, and also creates a text file that holds the e.List in the correct format for import into Contributor.
68 Analyst
Chapter 5: Integration 4. As part of the import wizard, you have the option to create a PQD (Planning Query Definition) file. This stores the import configuration for reuse. You can choose where this file is stored. The IQD file is not needed unless the import wizard needs to be re-run, and the essential elements of the IQD file, such as the SQL statement, are stored in the library folder in Analyst. 5. Since all the essential elements for the IQD import are stored in Analyst, after the initial import, all updates and refreshes are performed directly with the database. 6. Once the D-Lists in Analyst have been populated, the Contributor application is created/updated. As part of this step, the e.List file that was created as part of the import is imported into the Contributor Administration Console. Contributor end users enter their numbers into the created application. 7. When the Publish process in Contributor runs, the Planning IDs are output with the Planning data. To get the published data back into the source system, the published data is moved to the source system and the mapping table generated during the Import from IQD wizard is used to map Planning IDs to source business keys.
IQD File
The IQD file holds a definition of the data that will be imported into Cognos Planning, very similar to a SQL statement. You specify the order of the D-List or e.List items within the IQD, or the order of the underlying table or view is used by default. Alternative ordering can be applied manually to the generated D-List or e.List within Analyst, but this is lost if the D-List is updated again from the IQD. The wizard imports from flattened hierarchy structures only. Ragged hierarchies are not supported. In a flattened hierarchy, all level items have the same number of parent levels. In a parent-child (ragged) hierarchy, not all level items are at the same hierarchy level.) To import a ragged hierarchy, use the standard Analyst D-List import. The Import from IQD wizard expects each level to have an ID field as well as a description field, which must both be unique across the dimension. All settings are retained in PQDs (Planning Query Definitions) after the initial configuration. You can use PQDs to speed up the repeated import of the same IQD file. If you use the PQD to import another IQD file, ensure they both generate similar result columns.
Mapping Table
The Import from IQD wizard generates a mapping table in a database selected by the user to map the IDs of the data warehouse table to the Planning IDs. This is necessary so that Planning data can be returned to the Performance Applications data warehouse even if the warehouse has changed. Use this table to map the published data from Contributor into the source database (or other database that has the same source dimension data). You can specify an alternative target database for the mapping table, as long as the database connection and user details are configured in Cognos Connection or Framework Manager.
User Guide 69
Chapter 5: Integration
Standard D-Lists
For standard D-Lists, specify the leaf-level of the hierarchy (Item Name), and the leaf-level business ID and the table-unique identifier (Dimension ID) the other fields from the SQL statement in the IQD file that are to be used as levels how to configure the relationship between levels, starting from the top level Any additional, non-hierarchy fields that are required in the mapping table, such as background information about products or customers for additional reporting, are added as pass through fields. A Pass-Through field is one that appears in the Mapping table but not in Analyst or Contributor.
Time D-Lists
For time D-Lists, specify the same hierarchical information as a standard D-List. In addition, select the date format, and the period start and end date fields that will be used in Analyst to define the 'from' and 'to' columns for the timescale options of the D-List.
e.Lists
For e.Lists, specify the file path for each e.List file that will be generated by the process. Also, specify whether the entire e.List should be imported into Analyst or just a single item. Regardless of choice, the entire e.List is created in the e.List file that should be imported in Contributor via the Administration Console. Remember the D-List generated in Analyst is only the placeholder D-List that represents the e.List in Contributor. There are scenarios where it makes sense to have the entire e.List in Analyst, but often the e.List is too large to hold in Analyst, so only a single placeholder item is required in Analyst. After this step, the same hierarchical information will be specified that is applicable to the standard D-List. The e.List file that is generated will contain IDs that match those in the mapping table.
70 Analyst
Chapter 5: Integration
Update
If only the level description changes (not the field marked as ID) then the dimension is updated and retains the original IDs and mappings. The rest of the dimension remains untouched. Any pass-through columns should also be updated in the mapping table in the source database, even if no change has occurred within the D-List or e.List. The position of the items within the hierarchy should also be retained or updated as appropriate. If an item moves from one position to another within the hierarchy, then all item IDs should remain the same.
Insert
If a new item appears in the source table, or an existing item is given a new ID, then it is inserted as a new item into the D-List or e.List in the same position as it is found in the IQD SQL statement (according to the IQD ordering or according to the SQL table order). The other items of the dimension remain untouched. The mapping table is updated with the new item, but the existing mapping details remain untouched.
Delete
If an item is removed from the source table, then it is removed from the D-List or e.List and marked as deleted in the mapping table, although the entry still remains in the mapping table. The other items remain untouched.
User Guide 71
Chapter 5: Integration
Creating Planning Models and Data from Cognos Performance Applications Data
When you create planning models from Performance Application data, you use: the Cognos Performance Applications data warehouse, to supply data for the planning model and the initial values in Contributor As for any data source, the connection information to the Cognos Performance Applications data warehouse must be in Cognos Connection or Framework Manager. Ensure that the Cognos Performance Applications data warehouse is prepared with actuals. 72 Analyst
Chapter 5: Integration For information about dimensions available, see the Report Administration Guide for your Performance Application. Impromptu or Framework Manager, to generate the IQDs, or if IQDs are not needed for mapping tables, then you can publish models as a package Analyst, to create the planning model Contributor, to publish the model, the initial values, and to collect the planning data Contributor Administration Links to import data that is modeled in Framework Manager and published as a package Cognos Data Manager, to move the data between the Contributor and Performance Applications databases,
To create a Planning application from a Performance Application, do the following: Determine the granularity of the plan (p. 74). Create D-Lists in Analyst from IQD files. Create a placeholder e.List in Analyst from an IQD file. Create D-Cubes in Analyst from D-Lists. Create an application in Contributor by importing the planning models created in Analyst. Populate the e.List that was creating in Analyst as a placeholder. Assign user access rights to each e.List item. User rights to the data in the D-Cube are established using an e.List. An e.List is the D-List that represents the business area responsible for providing the planning information. Populate Contributor application D-Cubes with actuals from the Cognos Performance Applications as seeding plan values. Make Contributor models available to planning users. In the Contributor Administration Console, the administrator runs the Go to Production process and sets up the Contributor Web site so that the planning models become available to all participating planning users. Users can review plans and enter data using their distributed Web browser environment. Publish planning data back to Cognos Performance Applications' data warehouses.
After user input and modifications, the planning data can be published back to the data warehouse where the planning data and actuals can be compared and analyzed. The Contributor administrator performs a Publish from Contributor which exports the D-Lists and the fact data to database tables. From the Publish tables, the administrator needs to ETL (Extract-Transform-Load) the data into the Performance Applications database, using the mapping table generated by the IQD to match Contributor IDs with Business Codes. For more information about publishing planning data, see "Publish Planning Data " (p. 79).
User Guide 73
Chapter 5: Integration
Monitoring Planning Activity using Business Intelligence (BI) and Cognos Metrics Manager
Live and published planning data can be compared with actuals using Cognos PowerPlay cubes, Cognos Impromptu catalogs and reports, Cognos Metrics Manager and Cognos Framework Manager models for reporting as appropriate. All these can be done using Contributor extensions.
74 Analyst
Chapter 5: Integration Item Name (description field). All item names inside a D-List must be unique and is limited to 50 characters. Input item names that are longer than 50 characters are automatically truncated during the D-List creation.
For date based or time scale D-Lists, the IQD must have the following additional mandatory columns: Period start date Period end date
To create a D-List, either a brand new D-List is created or an existing one gets replaced. There are two options for replacing an existing D-List: Replace the existing D-List and retain the existing, corresponding item IDs. This option preserves the data in the D-Cubes that use the D-List. All other attributes of the D-List are replaced. Use this option when it is necessary to track historical changes to cube data. Replace the existing D-List and preserve only the D-List name. All item IDs are new. Even items with the same name receive new IDs.
Both options replace all D-List items. Any new items added to the D-List using Analyst is be lost.
Steps
1. From the File menu, click Import from, Impromptu Query Definition (IQD). 2. Select the type of D-List to create. You can choose to create a normal D-List, a time scale D-List, or an e.List. You can also use PQD files that are saved IQD imports. These files contain all the settings for IQD imports that you might have run previously and are designed to minimize configuration for similar D-Lists. 3. Select the mandatory IQD columns to import. For information about mandatory IQD columns, see "Mandatory IQD (Impromptu Query Definition) Columns" (p. 74). 4. For time scale D-Lists only, select the start date and end date. 5. Optionally, define the D-List hierarchies. 6. Optionally, preview the data source records. 7. Name the D-List and select a library with which to associate it. 8. Select the target for the mapping table. This target database will need to be configured in Cognos Connection/Framework Manager. After you run the wizard, the import process creates a mapping table for each D-List in a user selected database. The mapping tables contain the following critical reference information for the Analyst Planning model and the data source. Reference information for the Analyst item IDs, which are unique for each item. Reference information for the data source Item code, which is also unique for each item.
User Guide 75
Chapter 5: Integration When importing initial values to a D-Cube later, the GUID and item code from the planning dimension tables should be used to build correct insert values. Repeat this process to create all D-Lists required for one or more D-Cubes.
Create D-Cubes
A D-Cube in Analyst is made up of two or more D-Lists. To create a D-Cube based on Cognos Performance Applications, all D-Lists can be created from IQD files.
76 Analyst
Chapter 5: Integration
The item names are those seen in Planning. They may not be the same as produced by the original IQD, due to manual modifications after the D-List creation or truncations during the D-List creation. The planning dimension tables must be used to retrieve correct item names used for the value import. The most efficient way to import data into Cognos Planning is through Contributor. This can be done using SQL or Data Manager. The decision whether to use SQL or Data Manager depends on the complexity of the import and your expertise with SQL and Data Manager. If the data is modeled in Framework Manager and published as a package, you can also use Contributor Administration Links. The processes to import the data are: Using SQL for Loads A simple SQL query can be used to load directly from the Cognos Performance Applications into the Contributor import IM table. Execute the Build and Validate the AAA_ Table Data Data Manager is unable to deliver data directly to the IM_ table so this step loads the IM_table from the AAA_table using an INSERT statement. Notes In a multi-measure planning cube, match the Measures D-List column to the Measures Column in the Import Table. If re-loading, TRUNCATE the table first. TRUNCATE TABLE <table_name>, where the <table_name> is table that all rows are to be removed. This is a SQL command in Oracle and SQL Server. There is an option in Contributor Import, Zero Data, which accomplishes the same thing. Zero Data should only be used if intending to replace the target D-Cube's data entirely with the data set being imported. Import the data into Contributor To import the data into the Contributor Production environment, the Go to Production process must be completed.
User Guide 77
Chapter 5: Integration Assign access for the published table Assign synonyms and grants for published table to user schema (Oracle) and assign permissions and access rights for user (SQL Server). Using an appropriate SQL tool: Login to the Contributor data store that is linked by the Contributor application's data store. Build planning views for reporting on published tables with Cognos Performance Applications fact. Build reports on planning views.
Steps
1. Using an appropriate SQL tool, log in to the Cognos Planning - Contributor application's data store. Note: The DBA must assign the appropriate login security and privileges. For example in Oracle:
GRANT CONNECT TO <Planning Contributor account>;
2. Grant access to the published tables so that the Cognos Performance Applications account can select the data. For example in Oracle:
CREATE SYNONYM ET_REVENUE_AND_EXP FOR <Planning Contributor account>.ET_REVENUE_AND_EXP; GRANT SELECT ON <Planning Contributor account>..ET_REVENUE_AND_EXP TO <Performance Applications account>;
Tip: The following Oracle script can be used to generate the above scripts:
select 'CREATE SYNONYM ' || TABLE_NAME || ' FOR <Planning Contributor account>.' || TABLE_NAME || ';' from ALL_TABLES WHERE OWNER = '<Planning Contributor account>' AND (TABLE_NAME LIKE 'HY_%' OR TABLE_NAME LIKE 'ET_%') select 'GRANT SELECT ON <Planning Contributor account>.' || TABLE_NAME || ' TO <Performance Applications account>;' from ALL_TABLES WHERE OWNER = '<Planning Contributor account>' AND (TABLE_NAME LIKE 'HY_%' OR TABLE_NAME LIKE 'ET_%')
78 Analyst
Chapter 5: Integration
Publish Layouts
You can choose from these types of publish layouts: table-only, incremental, and view. The table-only layout gives users greater flexibility in reporting on Planning data. The table-only layout can also be used as a data source for other applications. This layout is required by the Generate Framework Manager Model Admin extension and the Generate Transformer Model Admin extension. The incremental publish layout publishes only the e.List items that contain changed data. Users can schedule an incremental publish using a macro or through Cognos Connection and Event Studio. You can achieve near real-time publishing by closely scheduling incremental publishes. The view layout generates views in addition to the export tables. This layout is for historical purposes.
The following types of tables are created when you publish using the table-only layout and the incremental publish layout.
Table type
Items Hierarchy
Description
Describes the D-List items.
Prefix or name
it_
Contains the hierarchy sy_ for the simple hierarchy cy_ information derived from the for the calculated hierarchy. D-list, which is published to two associated tables. Contains published D-Cube data. et_ Contains annotations, if the an_ for cell and audit annotations option to publish annotations is annotationobject for tab (cube) selected. and model annotations Contains metadata about the publish tables. P_APPLICATIONCOLUMN P_APPCOLUMNTYPE P_APPOBJECTTYPE P_APPLICATIONOBJECT
Export Annotation
Metadata
Common
Contains tables used to track when major events occurred in the publish container.
User Guide 79
Chapter 5: Integration
Table type
Job
Description
Prefix or name
Contains tables with information job jobitem jobitemstatetype relating to jobs. jobstatetype jobtask jobtype A table used to lock objects in the P_OBJECTLOCK system when they are being processed. publishparameter Publish information about files attached to the Contributor application. ad_cube
Object locking
The following types of tables are created when you publish using the view layout.The Contributor administrator publishes from Contributor which exports the D-Lists and the fact data to database tables. Contributor publishes the planning data into a set of tables with standard prefixes.
In order to perform the actuals vs. plan comparison, this data must be made available in such a manner that the Business Intelligence tools can access. The problems are: Planning data is linked to the D-Lists via GUIDs, whereas Performance Applications actuals data is linked via item code of dimensions. The planning dimension tables provide lookup links. Physically, the Planning data may be stored in a different database (or schema in Oracle) than the Performance Applications data and thus with different default security on the tables.
80 Analyst
Chapter 5: Integration In order to accomplish this, views can be created in the Planning database to expose the Planning data as well as provide access via grants.
Automation
You can automate the update of a D-List or recreation of an e.List file using either of these Analyst macros: @DListItemImportIQD (p. 645) @RefreshDataWarehouse (p. 649)
Manual updates to D-Lists and e.Lists will be removed without messages if you update lists using macros.
Command Line
The re-use functionality can be executed using these command line options: Update D-List from IQD Update IQD Mapping Table Upgrade D-List created from an earlier release
User Guide 81
Chapter 5: Integration
82 Analyst
You can also automate the import of Cognos packages using the @DListItemImportCognosPackage macro.
User Guide 83
Physical Connections
A data source defines the physical connection to a database. A data source connection specifies the parameters needed to connect to a database, such as the location of the database and the timeout duration. Note: The schema name in the connection string for an Oracle database is case-sensitive. If the schema name is typed incorrectly, you cannot run queries.
Required permissions
Before creating data sources, you must have write permissions to the folder where you want to save the data source and to the Cognos namespace. You must also have execute permissions for the Data Source Connections secured feature.
84 Analyst
Chapter 6: Importing Data from Cognos 8 Data Sources 6. In the connection page, click the type of database to which you want to connect, select an isolation level, and then click Next. Note: For SAP BW data sources, the isolation level is read-only. Note: For Cognos Planning - Contributor 7.3 data sources, select Cognos Planning - Series 7. For Cognos 8 Planning - Contributor data sources, select Cognos Planning - Contributor. The connection string page for the selected database appears. 7. Enter any parameters that make up the connection string, and specify any other settings, such as a signon or a timeout. One of the following options may apply depending on the data source to which you are connecting: If you are connecting to a Cognos cube, you must enter the full path and file name for the cube. An example for a local cube is C:\cubes\Great Outdoors Company.mdc. An example for a cube on your network is \\servername\cubes\Great Outdoors Company.mdc. If you are connecting to a password protected PowerCube, click Cube Password, and then type the password in the Password and Confirm Password boxes. If you are connecting to an ODBC data source, the connection string is generated from the name you enter in the ODBC data source box and any signon information. The data source name is an ODBC DSN that has already been set up. You can include additional connection string parameters in the ODBC connect string box. These parameters are appended to the generated connection string. If you are connecting to a Microsoft Analysis Services data source, select an option in the Language box. If you selected Microsoft Analysis Services 2005 you must specify an instance name in the Named instance since you can have more than one instance on each server. If you use a Microsoft Active Directory namespace and you want to support single signon with Microsoft SQL Server or Microsoft Analysis Server, select An External Namespace, and select the Active Directory namespace. For more information about configuring an Active Directory namespace, see the Cognos 8 Planning Installation and Configuration Guide. If you selected Microsoft Analysis Services 2005, you must specify an instance name in the Named instance since you can have more than one instance on each server. If you selected Cognos Planning - Series 7, you must specify the Planning Administration Domain ID and the namespace. If you selected Other Type as the data source type, you must build the connection string manually.
Tip: To test whether parameters are correct, click Test. If prompted, type a user ID and password or select a signon, and then click OK. If you are testing an ODBC connection to a User DSN, you must be logged on as the creator of the DSN for the test to succeed. 8. Click Finish.
User Guide 85
Chapter 6: Importing Data from Cognos 8 Data Sources The data source appears in Data Source Connections on the Configuration tab, and can be selected when using the Import wizard in Framework Manager.
Steps
1. From the Windows Start menu, click Programs, Cognos 8, Framework Manager. 2. In the Framework Manager Welcome page, click Create a new project, and specify a name and location. You can add the new project to a source control repository, see the Framework Manager Help for more information. 3. In the Select Language page, click the design language for the project. You cannot change the language after you click OK, but you can add other languages. Note: If an SAP BW server does not support the selected language, it uses the content locale mapping in Cognos Configuration. If a mapping is not defined, Framework Manager uses the default language of the SAP BW server. 4. In the metadata source page, select Data Sources. 5. Select a data source connection and click Next. If the data source connection you want is not listed, you must first create it (p. 84). 6. Select the check boxes for the tables and query subjects you want to import. Tip: For usability, create a package that exposes only what is required. 7. Specify how the import should handle duplicate object names. Choose either to import and create a unique name, or not to import. If you choose to create a unique name, the imported object appears with a number. For example, you see QuerySubject and QuerySubject1 in your project. 8. If you want to import system objects, select the Show System Objects check box, and then select the system objects that you want to import. 9. Specify the criteria to use to create relationships and click Import. For more information, see the Framework Manager User Guide. 10. Click Next and then Finish. Note: You save the project file (.cpf) and all related XML files in a single folder. When you save a project with a different name or format, ensure that you save the project in a separate folder.
86 Analyst
4. To enable model versioning when publishing to the Cognos 8 Content Store, select the Enable model versioning check box and type the number of model versions of the package to retain. Tip: To delete all but the most recently published version on the server, select the Delete all previous model versions check box.
User Guide 87
Chapter 6: Importing Data from Cognos 8 Data Sources 5. If you want to externalize query subjects, select the Generate the files for externalized query subjects check box. 6. By default, the package is verified for errors before it is published. If you do not want to verify your model prior to publishing, clear the Verify the package before publishing check box. 7. Click Publish. If you chose to externalize query subjects, Framework Manager lists which files were created. 8. Click Finish.
Steps
1. In Framework Manager, click the Key Figures dimension. 2. From the Tools menu, click Create Detailed Fact Query Subject. 3. In the metadata wizard, select the data source you want to use.
88 Analyst
Chapter 6: Importing Data from Cognos 8 Data Sources You can create a new data source by clicking the New button and specifying SAP BW for Planning as the type. 4. Click OK. Framework Manager creates a model query subject named Detailed_Key_Figures and a separate folder containing references to the relational objects. The references to the relational objects are the physical layer. 5. Create the package. Note: Packages that contain the Detailed_Key_Figures query subject are only accessible or supported for the report authoring tools, such as Query Studio and Report Studio if they are hidden by doing the following: In the Define Objects screen click the down arrow and choose Hide Component and Children. Click Detailed_Key_Figures and Relational_Objects.
Recommendation - Hierarchy
These recommendations will help improve performance when working with the SAP BW import process. Use manageably sized dimensions when importing SAP BW data. This is because Planning relies on lookups against the SAP BW hierarchies during the import process, so larger hierarchies slow down the import process. This may require modelling in SAP BW since it is at a higher level of detail than the Planning process requires. Where possible, take data from the lowest level in the BW hierarchies. This is because data is taken from the fact table level and aggregated to the level selected in the Planning link. The
User Guide 89
Chapter 6: Importing Data from Cognos 8 Data Sources further up the hierarchy that members are mapped into Planning, the more aggregations are needed to be recreated during the import process. This may require modelling in SAP BW since it is at a higher level of detail than the Planning process requires.
90 Analyst
Chapter 7: D-Lists
Think of a D-List as a field in a database. The items contained in a D-List should be related to each other so that their relationships can be placed into formulas that proceed down the rows or across the columns. A D-List is a list of related items that can be put into formulas that proceed down the rows or across the columns of a D-Cube. Commonly used D-Lists include profit and loss items, months, divisions, products, customers, and cost centers. In addition to the items that make up the row, column, and page label, a D-List also contains formulas. You can use letters, numbers, punctuation marks, and spaces in D-List item names. However, you should avoid using the following: The semicolon (;) because it is used in special calculation formulas named built-in functions (BiFs). The at sign (@) and braces ({}) because these are used in formulas, built-in functions, and macros. The brackets ([]) because this naming convention is used to mark D-List formatted items, which appear as virtual dimensions in the D-Link editor.
Wildcard characters like * and ? can be used, but caution should be used when importing from a source that has item names without the wildcard characters. Use a local or loaded Allocation Table. You can also make the link using match descriptions to avoid any potential problems. See "Use Wildcard Characters in Local Allocation Tables" (p. 244). D-Lists that contain calculations can have those calculations force to zero. This means that if the calculation result is zero or if the result is nonsensical, the cell displays blank. This option is particularly useful for D-Lists with multiple calculations.
Open a D-List
You can open a D-List directly from the File menu or from a D-Cube.
Steps
1. From the File menu, click Open, D-List. 2. If you want to open a D-List from a D-Cube, right-click a D-List label, and then select Edit D-List from the list.
Create a D-List
Create a D-List to define the items that make up the row, column, and page labels. D-Lists can also contain formulas that proceed down the rows or across the columns of a D-Cube. User Guide 91
Chapter 7: D-Lists Alternatives to typing items manually are available. For more information, click a link below. Create an Import Link into a D-List (p. 124) Import Items from ASCII Files into a D-List (p. 126) Import D-List Items from Mapped ASCII Files into a D-List (p. 127) Import items from D-Cube data (p. 128) Import items from an ODBC source (p. 129) Import D-List items from Another D-List (p. 125) Import D-List items from a Cognos package (p. 130) Paste D-List Items from a Spreadsheet Database or Word Processor (p. 125)
For long lists, we recommend that each item consist of a code followed by a unique name (p. 141) (for example, A1234 salaries). For data imported from other sources, it is easier to match the unique names. D-List item names can be up to 50 characters long using letters, numbers, punctuation marks, and spaces. However, you should avoid the following characters in D-List names: Semicolon (;)The semicolon is used in special calculation formulas named built-in functions (BiFs). Brackets ([ ])These are used to mark D-List formatted items, which appear as a virtual dimension in the D-Link editor. At Sign (@)These are used in formulas, built-in functions (BiFs), and macros. Duplicate names are not allowed and are removed. Braces ({})These are used in formulas, built-in functions (BiFs), and macros. Duplicate names are not allowed and are removed.
Steps
1. From the File menu, click New, D-List. 2. In the Input New Items box, enter the items to include in the D-List. 3. Click OK. 4. To specify the attributes for each D-List item, click the attribute in the column you wish to specify, and then click Change item attributes. FormatOption Specify the data in the D-List as Numeric Format (p. 112), Date or Time Format (p. 114), D-List (p. 117), or Text (p. 118). Calculation. Define the calculations and built-in functions for D-List items (p. 93).
92 Analyst
Chapter 7: D-Lists Calc Option Specify D-List items to be weighted, specify time averages, or choose the calculation to force to zero (p. 106). 5. From the File menu, click Save. 6. Name the D-List. Note: The D-List name is case sensitive and must be unique. You can type up to 31 characters including spaces. 7. Click OK.
Formulas
You can create calculations if you need a comparison or ratio that does not exist in the data source. For example, you can calculate financial ratios, such as liquidity ratios, debt ratios, and activity. A calculation D-List is a generic term for any D-List containing formulas. D-List formulas come in four main categories: Numeric Date/Time D-List Text
These categories display against items in a D-List in the calculation column of the Format Attribute (p. 109) screen. You can arrange a formula however you want. The program ignores spaces, tabs, and carriage returns. For example, the program would consider the following three calculations identical. + Sales - {Rent and Rates} - Electricity + Sales - {Rent and Rates} - Electricity + Sales {Rent and Rates} Electricity
User Guide 93
Chapter 7: D-Lists D-Cube data Mapped Ascii file Unmapped Ascii file ODBC (SQL database) Cognos package Another D-List Cognos Finance Impromptu Query Definition (IQD)
When setting up the import, your source data must contain a column with the names of the items against which the calculations are to be set, and a column containing the calculations themselves. The syntax must avoid spaces and symbols in item names. For example, if you were to use Margin % instead of Margin_percent as an item name, then when shown in the formula, margin % would have to be in braces {Margin %} to indicate to the program that this is an item name. While it is possible to import formulas from spreadsheets, it should be treated with caution. Generally, this facility is more useful for formulas generated from databases consisting of structured hierarchies. If you import formulas from spreadsheets, cell references in the formulas must be displayed and converted to text. First, you must ensure that the formulas all refer to cells in the same column or the same row and use + symbols rather than =SUM( ) in the formulas. Second, you must create range names for each cell based on the labels, apply the names to the formulas, and display the formulas in text format in the cells. Finally, this can be saved as a comma delimited (.csv) ASCII file and edited to remove leading = signs from the formulas. Zeros against detail items should be blanked out.
Steps
1. From the File menu, click New, D-List. 2. Click Import and select the import option you require. 3. At the Import of D-List Items screen, in the Select Attribute box, define the column containing the item names as Item Name and the column with the calculations as CalcTexts. 4. Make any other import settings you require. 5. Click OK. 6. Save the D-List, or use D-List > Implement to apply the calculations.
94 Analyst
Chapter 7: D-Lists
Steps
1. From the File menu, click Print or Print Preview. 2. Click the D-List tab. 3. Select the Calculations check box. 4. Click Preview. 5. Click the right or left arrow to scroll through the pages containing the formulas.
Create a Subtotal
When large amounts of data are shown, you can use subtotals to present data in a way that can be analyzed more conveniently. To add summaries, you need to specify the items for which you want to create a subtotal.
Steps
1. Open an existing D-List or create a new D-List containing the necessary items to subtotal. 2. Click the calculation cell of the item to which you want to add a subtotal. 3. Click Change item attributes. 4. Click Paste to select items specifically in the Selection dialog box. 5. Click Apply to test the syntax. 6. Save and close the D-List.
User Guide 95
Chapter 7: D-Lists Click And to show items that satisfy both criteria. Click Or to show items that satisfy either criteria. If Match Case is selected, it will further refine the filter to match on capitals or small letters. The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria.
Steps
1. Open the D-List. 2. Click the calculation cell that you want to format. Then click Change item attributes. 3. Define the calculation: Type the formula in the Calculation box. You can enter calculations, BiFs, and conditional statements in the Calculation box. Remember that D-List items containing more than one word must be placed in braces to indicate that they are single variables. For example, {Rent & Rates} or {Margin %} If you want to select the items needed in the formula, click Paste. The arithmetic operators, plus {+}, minus {-}, multiply {*}, and divide {/}, should be entered at a later time. Select nonadjacent items by holding CTRL and clicking each item in the Items Available list. To move the selected items to the Items Included list, click Move. When you select single items from the Items Available list, double-clicking the item automatically moves it to the Items Included list. Tips: In the Select items to include list, you can select items using Search. This allows the use of wildcard characters. For example, if you have an item named P01, and you enter P01*, it will search for anything beginning with the characters P01. if you enter P?????????, it means search for any D-List item that starts with P and is ten characters long, including spaces. If you want to move items back to the Items Available list, select the items in the Items Included list and click Move. Expand explodes the constituent parts of a selected subtotal. 4. Click OK. 5. Type the operators. Ensure that D-List items of more than one word are in braces { } to treat them as a single variable. The program ignores spaces, tabs, and line returns. 6. Click Apply. 7. To calculate, from the D-List menu, click Implement.
96 Analyst
Chapter 7: D-Lists Implementing lets you test a formula in an open D-Cube before you save the D-List. Clicking Reset reverts the formula to the last saved version. 8. To save the formula without calculating, from the File menu, click Save. Formulas are shown in the Calculation column of the D-List attribute screen.
Edit a Formula
Depending on modeling requirements, you may need to modify an existing formula. You cannot edit a formula that is an output (p. 317) calculation from a built-in function (BiF). You are equally restricted in what you can do when editing a BiF calculation. You can change the BiF parameters (p. 320) but you cannot insert other items into or operate on the BiF formula.
Steps
1. Open a D-List. 2. Click the calculation cell of the item you want to edit. 3. Click Change item attributes. 4. In the Calculation box, edit the formula. 5. If you want to test the syntax, click Apply. 6. To calculate the formula, from the D-List menu, click Implement. Using the Implement function lets you test a formula before saving the D-List. If the formula is wrong, clicking Reset from the File menu reverts to the last saved version of the D-List. 7. If you want to save the formula without calculating, from the File menu, click Save.
Copy a Formula
You can copy a formula from one D-List to another to facilitate the creation of formulas that are similar among D-Lists.
Steps
1. Open the D-List containing the formula you want to copy (this is the source D-List). 2. In the Calculation box of the item in the source D-List, select the formula (or the section of the formula) from which you want to copy. 3. From the Edit menu, click Copy. 4. Close the D-List. 5. Open the D-List containing the formula to which you want to paste the copied formula (this is the target D-List). 6. Click the calculation cell of the item in the target D-List to which you want to copy the formula.
User Guide 97
Chapter 7: D-Lists 7. With the cursor in the calculation screen, from the Edit menu click Paste. 8. Click Apply. 9. From the File menu, click Save.
Remove a Formula
You can remove formulas that are no longer applicable to the D-Lists or required as part of the planning process. You cannot remove a formula that is an output calculation from a built-in function without removing the BiF formula first.
Steps
1. Open a D-List. 2. Select the calculation cell of the applicable item and click Change Item Attributes. 3. Select the calculation formula you want to remove. Existing formulas contain the following syntaxes in the calculation cell of the item: equal sign (=), Subtotal, Conditional, or BiF. 4. To remove the formula, click Clear. 5. To apply the changes to the item calculation cell, click Apply. 6. From the File menu, click Save.
Steps
1. Open the D-Cube containing the D-List you wish to check. 2. From the D-Cube menu, click Selections, Reselect. 3. Click on the tab for the relevant D-List.
98 Analyst
Chapter 7: D-Lists 4. Select a total and then click Expand(p. 157) to select the subtotals that form a part of the grand total. 5. Click Expand again to select the details that comprise the subtotals. Items that are not selected are omitted from the formula. 6. Scroll through the list and note the omissions. To make it easier, click Move to move the selected details to the Items Included list; this leaves only the omissions in the Items Available list.
Steps
1. In the D-List, create a check item and set it to be a sub-total of all the detail items. When setting the calculation use the option to show Detail items in the Show drop box. 2. Create a single item D-List. 3. Use the hierarchical D-List and the D-List created in step 2 to make a D-Cube. 4. Use D-Cube commands to set all detail items to 1 in the cube. The Grand Total in your hierarchy and the check item you inserted should now show the same value. If they do not, then some items have been omitted or double counted in setting the sub-totals in your hierarchy.
When you click Paste to select items for the calculation on Margin %, the item Costs would not be available for selection because it is indirectly a function of Margin% from the first formula. Hence, the formula would be circular.
User Guide 99
Chapter 7: D-Lists The program does not allow circularity within a D-List even if the application of a timescale removes the circularity. For example, suppose the built-in function, @Feed, is set up to feed the closing balance of one month to the opening of the next:
Close_n = Open_n + Inflow_n - Outflow_n Open_n = Close_n-1
where: n = period number Inflow is not allowed to be a function of the opening balance despite the fact that the presence of a timescale means that the formula is not strictly circular. The built-in function, @FeedParam, is specifically designed to avoid this.
View Formulas
You can view formulas for an individual cell in a D-Cube or view all formulas in a D-List. You can also view formulas for an individual cell in a D-Cube by pressing F7.
100 Analyst
Chapter 7: D-Lists
AND Syntax
IF(test1 AND test2) THEN(expression) ELSE(expression)
OR Syntax
IF(test1 OR test2) THEN(expression) ELSE(expression)
The calculations included in a conditional statement can include further IF THEN ELSE calculations:
IF(Profit<=3525) THEN 0 IF (Profit<=6725) THEN 1 ELSE 2
Include the conditional statements in the required order because the calculation will return the result from the first condition satisfied. In the example above, if the profit is 3000 then this calculation will return the answer 0 as the first condition is satisfied.
Then a result of 1 would be returned as, having found the first condition satisfied, the second condition is not considered. There are various other abbreviations For example, you can exclude the final ELSE statement entirely and it assumes ELSE 0. IF(Profit>3525) THEN 1 means:
IF(Profit>3525) THEN 1 ELSE 0
You can test the truth of a statement 1=TRUE 0=FALSE without putting in the IF THEN ELSE: (Item1=Item2) means:
IF(Item1=Item2) THEN 1 ELSE 0
The result uses the conditional statement to group people by tax band: A more complicated example of a conditional formula is used to work out the tax amount:
IF(Profit<=3525) THEN (0) IF(Profit>3525 AND Profit<=6725) THEN ((Profit-3525)*.2) IF(Profit>6275 AND Profit<27825) THEN ((6725-3525)*.2 + (Profit-6725)*.23) ELSE ((6725-3525)*.2 + (Profit-6725)*.23)+(Profit-27825)*.40)
102 Analyst
Chapter 7: D-Lists
However, rather than returning the number 1 or 2 according to the result of the conditional formula, the item Error-Flag has been formatted to accept text from another D-List. The other D-List contains only two items: ERROR and OK, which have identification numbers of 1 and 2, respectively. So when the result of the formula gives the answer 1, it looks up the identification number 1 and displays ERROR. Similarly, when the result of the formula gives the answer 2, it looks up the identification number 2 and displays OK.
Steps
1. Open or create the D-List that you want to format to D-List formatted text. 2. Click the calculation cell of the item you want to format. 3. Click Change item attributes. 4. Create the formula in the D-List as a normal logical formula. 5. To test the syntax, click Apply. If the syntax is correct, the word Conditional appears in the calculation cell of the D-List item. 6. From the File menu, click Save. User Guide 103
Chapter 7: D-Lists Note: You may have to set conditional formulas to Low in the Priority box so that the totals add up correctly. The priority sorts conflicting formulas near the edges and corners of D-Cubes where calculations must be carried out in a specific order. You must consider this issue more than you would in a two-dimensional spreadsheet. In the event of a conflict, the higher priority formula is calculated last; therefore, its result is used. 7. To create a separate D-List with a list of the text you want to display, from the File menu, click New, D-List. 8. Type the item names, and click OK. 9. From the File menu, click Save As. 10. Name the D-List. 11. From the File menu, click Close. 12. In the D-List that requires formatting, click the Format cell of the item you want to format (the same item that contains the conditional formula), and then click Change item attributes. 13. In the Attribute box, click D-List and then select the library containing the desired D-List. 14. In the Available D-Lists box, select the D-List, and click Apply. The word D-List appears in the format cell of the item. 15. From the File menu, click Save. The formatted column converts the numeric result from the chosen D-List into text according to the identification number of the items contained therein.
Formula Priority
Priority conflicts can occur when a particular cell has a list of several formulas from which it must choose. Typically, this can occur when using logical IF THEN ELSE operators and percentages. The program can perform the calculation of the total either across the rows or down the columns, which can produce different results. For example, the percentage of the total is not the same as the total of the percentages. Setting priorities tells the program which formula to use in the event of a conflict. The program always uses the formula with the higher priority. Formula priority can be set to High, Medium, or Low.
Steps
1. Open the appropriate D-Cube. 104 Analyst
Chapter 7: D-Lists 2. Click the D-Cube calculation cell of an item containing a formula, and then press F7. A text box appears displaying the formula used, together with a list of the formulas it has overridden. 3. Close the text box.
Steps
1. Open the D-List. 2. From the File menu, click Print Preview, Preview.
Steps
1. Open the D-List. 2. Click the calculation cell of the item for which you want to set the priority. 3. Click Change item attributes. 4. In the Priority box, change the priority of the formula to Low, Medium, or High. 5. Click Apply. 6. Save the D-List.
Chapter 7: D-Lists
Steps
1. Open or create a D-List containing formulas (not a timescale D-List) 2. Click the Calc. Option cell of the item to which you want to apply the time average. 3. Click Change item attributes. 4. In the Calc. Option list, click Time averages. 5. In the Available functions box, select one of the following options: Time average First period Last period Zero
Weighted Averages
All items that are percentages, ratios, prices, or performance measures or items that can be expressed on a per unit basis must be set as weighted averages. This ensures that an item is correctly subtotaled and lets you breakback over subtotals. Weighted averages affect how an item is summed across any other dimension.
106 Analyst
Chapter 7: D-Lists
Quarter 1
Units Sold Price Sales Value 50 5 250
Quarter 2
50 6 300
Quarter 3
100 7 700
Quarter 4
50 6 300
Full Year
250 ? 1550
The Price for the full year is clearly not 5 + 6 + 7 +6 (=24). To calculate it we need ((5 x 50) + (6 x 50) + (7 x 100) + (6 x 50) )/ (50 +50 +100+50) =1550/250 = 6.2 The item Price must be set as a weighted average, weighted by Units Sold.
Steps
1. Open or create a D-List containing formulas (not a timescale D-List) 2. Click the Calc. Option cell of the item to which you want to apply the weighted average. 3. Click Change item attributes. 4. In the Calc. Option list, click Weighted Averages. 5. In the Items to weight by box, select an item to weight by. 6. Click Apply. 7. Save the D-List.
Chapter 7: D-Lists
Q1
Unit Price Units Sold 10 50
Q2
7 100
Q3
8 200
Q4
12 50
Year
8.5 400
Total 1
37 400
In this example the weighted average is set on the item Unit Price in the rows D-List. The overridden total, Total 1, is in the timescale D-List forming the columns.
Steps
1. Open the D-List containing the total where you wish to override the weighted average. This might be a total in a timescale D-List for example. 2. Click the calculation cell of the item with the calculation. 3. Click Change item attributes. 4. Add a zero to the calculation. Adding a zero uses a straight total rather than a weightedaverage.
Force to Zero
Applying this average to any D-List item will cause any calculation on it in another D-Cube dimension to give a result of zero. It is particularly useful where the item applies in the detail only and is irrelevant on a total. This setting is applied automatically to D-List and Date formatted items but may be removed manually if desired by changing the setting to None.
Remove Averages
Steps
1. Open the D-List containing at least one formula (not a timescale D-List) with an average. 2. Click the Calc. Option cell of the item of which you want to remove the average.
108 Analyst
Chapter 7: D-Lists 3. Click Change item attributes. 4. In the Calc. Option list, click None. 5. Click Apply. 6. Save the D-List.
Types of Formats
The format affects how the data appears. A Numeric format determines the number of decimal places, the appearance of negative numbers, commas separating thousands, blank cells rather than zeroes, and showing percentage signs or currency symbols before and after the number. A Date/Time format determines whether the date appears in hours, months, years, or any of the standard formats such as DD/MM/YY. A D-List format lets you type text contained in another D-List into the formatted row or column. A Text format lets you type any text.
Chapter 7: D-Lists
Steps
1. Create a format. 2. Click Assign to assign a format to other D-List items in the Selection dialog box. 3. Select the items to assign the format to in the Items Available list. 4. Click Move to move the items to the Items Included list. 5. Click OK to return to the D-List edit screen. 6. Repeat as necessary.
Steps
1. Open or Create an appropriate D-List 2. Create a format (numeric (p. 112),date or time (p. 117), or D-List (p. 117)) or edit an existing format 3. In the D-List editor, click Save. Click Save As to save the format with a new name. 4. Select a library to which you will save the local format from the Libraries list. 5. Type a name in the Saved Format Name box. 6. Click OK to return to the D-List edit screen.
Steps
1. Open the appropriate D-List. 2. Click the format cell of the item you want to format. 3. Click Load. 4. Select a library from the Libraries list.
110 Analyst
Chapter 7: D-Lists 5. Select a name in the Saved Format Name box. 6. Click OK. 7. Click Apply. 8. Save the D-List.
Steps
1. Open the D-List. 2. Click Change item attributes. 3. Select a format from the Attribute box as follows: A numeric format (p. 112) determines the number of decimal places, the appearance of negative numbers, commas separating thousands, blank cells instead of zeroes, and showing percentage signs or currency symbols before and after the number. A date or time format (p. 114) determines whether the date is displayed in hours, months, years, or any of the standard formats such as DD/MM/YY. A D-List format (p. 117) allows text from another D-List to be typed into the formatted row or column. A free-text format (p. 118) lets you type any string of characters or symbols.
Chapter 7: D-Lists 5. Click Apply. 6. Repeat for other D-List items you wish to format. 7. Optional: Click Assign to assign a format to other D-List items. For example, the same numeric format applied to one specific item also can be assigned to another item. Click Assign, and then select the items to assign the format to. Select the items then click Move to move from the Items Available list to the Items Included list. Click OK to return to the D-List edit screen.
8. Apply the global format to the D-Cube. 9. From the File menu, click Save.
Numeric Formats
The numeric format lets you change how data displays. You can change the decimal places, assign currency such as $, , or FF, display negative numbers in brackets, hide zero cells, insert comma separators for thousands, or apply a scaling factor. Suffixes or prefixes are allowed - characters, numbers, punctuation marks, or percent signs (%) up to a recommended maximum of 10 characters. The default format is zero decimal places, comma delimiter active for thousands, brackets for negative numbers, a scaling factor of one, and zeros displayed when they display in a cell (Blank if zero is cleared). This displays the number 1234.0 as 1,234 and the negative number -1234.0 as (1,234). When you change the numeric format options, the Sample field updates showing how two sample numbers (1234 and -1234) will be displayed in a D-Cube. All values with a numeric format are right justified in the D-Cube. Where an item in a D-List has a scaling format applied, the behavior will be different in Analyst and Contributor. In Analyst the numbers are entered, ignoring any scaling applied in the formatting. So where an item is scaled to 1000s, if you type in 22k, it shows as 22 (i.e. 22k), but if you type in 22, it shows as 0 (0.022k), assuming that less than 2 decimal places are showing. In Contributor the numbers are entered as displayed - if the cell shows 1000 for an underlying value of 10, and you type in 1200, the new value shows as 1200 with the underlying value of 12.
Steps
1. Ensure that the D-List is open and active. 2. Click the format cell of the item you want to format. 112 Analyst
Chapter 7: D-Lists 3. Click Change item attributes. An alternative is to double-click the format cell of the item. 4. Select Format from the Attribute list box, then click Numeric. 5. Set the decimal places (p. 113) and type the prefix and suffix (p. 192) for both positive and negative numbers. 6. Select Blank if zero if you want cells containing zero to be blanked out. 7. Select Use thousand delimiter to use a delimiter to show the number 1000000 as 1,000,000. 8. Type a numeral in the Scaling Factor(p. 257) box to display data in thousands, millions, and so on. Note: A scaling factor of 1000 will store the number 3333 as 3333.000 but display it as 3.333. If you set the decimal places to zero, it will display it as 3. This can cause confusion when adding three numbers X=A+B+C where A, B and C are all equal to 3333.000. With a scaling factor applied, this will be displayed as 3+3+3 =10 where the underlying calculation is correct as 3333+3333+3333=9999. 9. (Optional) Click Save and name the format. This allows you to apply the same format elsewhere. To load an existing format, choose Load and then select the name of the format. The Save As button allows you to edit an existing format and save it under a new name. 10. (Optional) The Assign button allows you to assign the current format to several other D-List items. 11. From the File menu, click Save.
Steps
1. Open a D-List. 2. Click the Format cell of the item you want to set decimal places to. 3. Select Numeric from the Attribute list. 4. In the Decimal Places scroll box, set the decimal places.
Chapter 7: D-Lists A scaling factor of 0.01 applied to the number 1234.00 would display the number as 123400.00. Again, the number that is stored by the program would always remain 1234.00. You must be careful with scaling factors. The program keeps the original number stored to many decimal places so there are no significant rounding errors. However, adding the numbers 1333 + 1333 +1333 = 3999 would give 1 + 1 + 1 = 4 when scaled by a factor of 1000. Applying the scaling factor is not the same as rounding to integers. Note: Use caution when applying scaling factors to individual D-List items because there is no indication in a D-Cube that scaling factors are set, and data can seem to be incorrectly calculated. Remember that you can set a scaling factor for an individual D-Cube. When you type a number into a cell formatted with a scaling factor, type the stored number, not the displayed number. The same rule applies when using D-Links to copy numbers into cells formatted with a scaling factor. You can also set scaling factors in D-Links.
Steps
1. Open a D-List. 2. Select the Format cell of the item you want to format. 3. Click Change item attributes. 4. From the Attribute list, click Numeric. 5. From the Scaling Factor box, type a scaling factor. Choose a factor between 1,000,000 (one million) and .000001 (one millionth). The default setting is 1 (no scaling). Normally, you want a D-Cube to display the actual value stored in a cell (the underlying number). You can use the scaling factor if you want the numbers displayed in the D-Cube to be scaled up or down from the stored value. The stored value is divided by the scaling factor to arrive at the displayed number.
Dates in Calculations
You can create calculations referring to date formatted items - they will calculate using the serial number. For example, you have a D-List containing two detail items, Start Date and Duration, and a formula item, End Date: {End Date} = {Start Date} + Duration Start Date is date formatted (DD/MM/YY).
114 Analyst
Chapter 7: D-Lists If Start Date displays 01/01/97 (serial number is 35,429), and Duration displays 2, then End Date will display 35,431. If End Date is date formatted (DD/MM/YY), it will display 03/01/97.
Date Formats
Thirty-two date format options are available, each of which is represented using a format code. The serial number for date formats containing a day, a month, and a year code (for example, YY-MM-DD, DD/MM/YY) is calculated from the number of days between January 1st, 1900 and the start of the period. For example, an item has been given the date format DD-Mon-YY. In the D-Cube, the date serial number and the displayed cell contents are related.
Serial Number
0 1 35,429 35,429.5
Cell Display
01-Jan-00 02-Jan-00 01-Jan-97 01-Jan-97
Other serial numbers are calculated differently. The day format is an example.
Serial Number
0 1 6 14 14.5
Cell Display
Mon Tue Sun Mon Mon
The following date formats show 4 digit years: DD-MM-YYYY MM-DD-YYYY DD/MM/YYYY MM/DD/YYYY DD.MM.YYYY
Time Formats
There is one time format, represented by the format code HH:mm. The serial number stored for a time-formatted cell is a fraction of a day. For Example:
Serial Number
0 0.5 0.75 1 1.25
Cell Display
00:00 12:00 18:00 00:00 03:00
Specific
The specific format provides the same twenty-four date formats provided by the date format, each supplemented with the time format. Serial numbers are calculated the same as the date. For Example: (Date/Time -Specific DD/MM/YY):
Serial Number
0 1 35,429 35,429.5
Cell Display
01/01/00-00:00 02/01/00-00:00 01/01/97-00:00 01/01/97-12:00
116 Analyst
Chapter 7: D-Lists
Steps
1. With the D-List active, click the Format column of the item you want to format. 2. Click Change item attributes. 3. Select Format from the Attribute box and then click Date/Time. 4. Select Date, Time, Date/Time, and/or Blank if Zero from the Format section. Note: To display un-entered dates as blank (rather than 1st January 1900, which is the base date), select Blank if Zero. This option is available in Analyst and Manager, but is unavailable in Analyst for Excel. 5. Select a date or time format from the Available formats box. Dates may be added or subtracted in formulas. The calculation uses the stored number as the number of days or fractions of a day since January 1st, 1900 (Jan 1st, 1900 is stored as 0, Jan 2nd, 1900 has a stored number of 1, and so on). 6. (Optional) If you want the count to start a day earlier (so that January 1st, 1900 is stored as 1, January 2nd, 1900 as 2, and so on) click Date/Time in the Format section, then click End instead of Start. Then choose the format as usual. 7. From the File menu, click Save. The dates and times can now be typed directly into the formatted cells in the D-Cube.
Steps
1. Open the D-List that contains the items you want to format to accept text. 2. Click the Format column of the item you want to format and then click Change item attributes. 3. Select D-List from the Attribute box. 4. Select a library from the Libraries box. User Guide 117
Chapter 7: D-Lists 5. Select a D-List from the Available D-Lists box. Only those items appearing in this D-List will be allowed in the formatted column. 6. Click Apply. 7. From the File menu, click Save. Tip: When typing in text, the first character or two of a text entry is sufficient as long as it is not ambiguous. If you are unsure of what to type, type a question mark (?) and a drop down menu appears showing all the available items from the D-List.
Steps
1. Open or create a D-List. 2. Click the format cell of the item you wish to format. 3. Click Change item attributes. 4. Select text from the Attribute list. 5. Save and close the D-List.
Timescale D-Lists
D-Lists containing items such as days, weeks, months, quarters, or years need to be defined as timescales. These are necessary for special built in functions (BiFs) that use time to apply calculations such as debtor days, stock-turn days, and creditor days to determine closing balances. Timescale D-Lists also are used for importing data containing dates into the correct period. They also can be used by the Grow command to grow a base value by a certain percentage per period (linear or compound). Typing Jan01 in a Period column automatically generates dates. Dates also may be imported from spreadsheets using CTRL+C to copy a selected range and CTRL+V to paste into the period column. Dates in Analyst run from 1950 to 2049. So if you type the two digit 49, it means 2049. But if you type 50, it means 1950.
118 Analyst
Chapter 7: D-Lists
Chapter 7: D-Lists
Steps
1. Open a D-List and choose D-List>Options. Click the Timescale tab and select the Use as timescale option. The timescale dates can now be set in two modes: Normal and Custom. 2. Choose whether you want to set the Normal or Custom mode: If you want normal mode, set the From & To dates manually or pick up on the D-List item name and the program fills in sensible From and To dates. If you want custom mode, set the length in days and the first From date.
Items of zero length are treated as non-time items and do not have a From and To date attached to them. This allows you to start the timescale at an item other than the first D-List item. You can also allow for non-time items by setting the length to zero. You can switch between the Normal mode and Custom mode.
Chapter 7: D-Lists the program assumes that all periods are equal. The default days setting for a month uses an average of 30.42 days (365/12), which can lead to inaccuracies.
Steps
1. Open the timescale D-List. 2. From the D-List menu, click Options. 3. Ensure that the From and To dates are defined correctly for each period. 4. Click OK. 5. Save the timescale D-List.
Steps
1. Open the D-List 2. Select the D-List you want to copy. 3. Click OK. 4. From the File menu, click Save As. 5. Type the new name. 6. Click OK.
Edit a D-List
You can edit items names and related attributes. You can edit other features, such as timescales, import links, subheaders, and masks definition. A mask is used to hide individual items within a D-List or to prevent people writing over specified items. This is particularly useful when you are operating on a network and want to allow limited access to large D-Cubes. You can be quite specific about the level of security applied to each item by means of applying an item called a mask. A mask contains a security pattern with a list of users and their access rights. It can be attached to one or more D-List items. You may customize the mask to give each user a key to unlock the restrictions. The choices are Read-only, Read/Write, or Invisible. Items that are set to Invisible will not appear on the selection screen at all, whereas items marked Read-only will appear on the screen but can not be over-typed or changed except by some indirect method such as a breakback. Read/Write access means that the items can be changed as usual.
Chapter 7: D-Lists These settings can be defined for each user or for groups of users. If a user is also a member of a group for which access rights have been defined, he assumes the highest level of access available. Steps Open the D-List. To edit item names, click on them and overtype with the new names (p. 123). To add items, from the D-List menu, click Add Items (p. 123). It is possible to add items to a D-List from different sources. For more information, click a link below. Create an Import Link into a D-List (p. 124). Paste D-List items from a spreadsheet database or word processor (p. 125). Import D-List items from another D-List (p. 125). Import items from unmapped ASCII files into a D-List (p. 126). Import D-List items from mapped ASCII files into a D-List (p. 127). Import items from D-Cube data (p. 128). Import items from an ODBC source (p. 129). Import D-List items from a Cognos package (p. 130)
To delete items, from the D-List menu, click Delete Items (p. 131). To change the attributes of an item, select the item you want to edit and then click Change item attributes. Edit the attribute of the items you want to change. Formats (p. 109) Averages, such as Time (p. 106) and Weighted (p. 106) Formulas (p. 93)
To edit other features of the D-List, from the D-List menu, click Options, and then the appropriate tab. Timescales (p. 118) Import Links (p. 124) Sub headers (p. 145) Unique names (p. 141) Security (Masks)
Edit the features you want to change and then click OK. Implement the changes and save the D-list (p. 131).
122 Analyst
Chapter 7: D-Lists
Note: If you change D-List item names, you should check any D-Links in which the D-List is used. If the D-List is paired with a different D-List on a match descriptions basis then the item you have renamed will no longer match.
Steps
1. Open the D-List. 2. Click the item you want to edit. 3. Double-click the item name and type the new or edited name. Note: To split long column headings, double-click the item you want to edit in the Item Name column. Use the pipe symbol "|" (shift+\) to denote a line break so that the column heading displays on two lines. You can have more than one line break. The pipe symbol does not display on the screen. 4. From the File menu, click Save.
Steps
1. Choose to insert items while in a D-List or D-Cube To insert from a D-List, from the D-List menu, click Add Items and select Input. To insert from a D-Cube, right-click your mouse on the D-List dimension, and then click Insert Items. The Input new Items screen allows you to type the new D-List item names and select the options you need, including whether to import items, and if so, what mode to import it by; where to place the new items, and a choice of Subtotals into which the new items may be inserted. 2. Type the D-List item names, or make your selections, and click OK.
Chapter 7: D-Lists
Steps
1. Open the D-List. 2. From the D-List menu, click Options, Import link tab. 3. Choose the type of source file from the Import From drop down box (click one of the following links for more information). ASCII file (p. 127) (text, .csv, .txt or .prn files, and so on). D-List (p. 125) (to import items from another D-List). ODBC (databases) (p. 129). Cognos package (p. 130) D-Cube (p. 128) (to import items from another D-Cube). Finance. No Import Link (to turn off the default setting by selecting).
4. Choose the import mode (p. 132), from the drop down box. If using Update mode the Remove Obsolete check box will become active. Select it to keep specified items. 5. Choose the position and sort order of the items from the Location/Sort Order drop box (p. 143). 6. Use the Subtotal drop box if you wish to insert the new items into existing subtotals in the D-List (p. 145). Whenever you import items to a D-List, or create a new D-List by importing from an eligible source, you will be offered the option to turn this import into an import link for the D-List. If you answer Yes to this question, it will overwrite any existing import link.
124 Analyst
Chapter 7: D-Lists changes will be saved automatically. Depending on the settings in the import link, the existing items could be renamed or deleted altogether, so use caution when running these links.
Steps
1. With the D-List active, from the D-List menu click Update. 2. Position the new items. Note: Skip this step unless the position is set to Select in the Where box. In the Selection window, select items in the Items Available list and choose the insertion point by clicking the Items Included list. Click Move >> to insert the selected items below the chosen insertion point. If duplicates exist that are solely based on the unique part of the D-List item, the program rejects the duplicate items. 3. Check any formulas. 4. From the File menu, click Save.
Steps
1. In the source program, select the items you want to copy. 2. Copy the items to the Windows clipboard by pressing Ctrl+C. 3. Return to Analyst. Create a new D-List, or for an existing active D-List, from the D-List menu, click Add Items and then click Input. 4. In the Enter item names text box, paste items from the clipboard by pressing Ctrl+V. 5. From the File menu, click Save. 6. Name the D-List if a new D-List was created. 7. Click OK.
Chapter 7: D-Lists The procedure below assumes that you are importing D-List items into a new D-List. If, however, you are importing D-List items into an existing D-List, you must open the D-List, and then from the D-List menu, click Add Items, and then start at step 2.
Steps
1. From the File menu, click New, D-List. 2. Click Import and then click Import From Another D-List. 3. Select the D-List containing the source data. 4. Make a selection from the D-List items. Ctrl-click to select non-adjacent items. A blank selection will import all the items. 5. Click OK. 6. Look at the Import of D-List Items dialog box: Click Import Mode (p. 132), and select either Append or Update. Click Subtotals and specify a subtotal, or choose either <None> or <Allocate>. Click Where to select where you would like the items from the ASCII file placed in the D-List. Click Select Attribute to choose from the following: Skip, Item name, Parent, Parent 1 through Parent 8. 7. In the import option box make selections to determine the items to be imported. If you wish to import formulas and format attributes, you must check the relevant boxes. 8. Click OK. 9. Choose whether you want to turn this import into an import link for the D-List. If you click Yes, it will overwrite any existing import link. 10. Click OK to import the items, and then save and close the D-List.
Steps
1. From the File menu, click New, D-List. - or From the File menu, click Open, D-List, and select the appropriate D-List. 2. From the D-List menu click Add Items. 3. Click Import and then select Import Unmapped ASCII. 126 Analyst
Chapter 7: D-Lists 4. Browse for the correct file and then click Open. 5. Look at the Apply Structure dialog box and do the following: Select Use Delimiter and then specify comma, semicolon, colon, tab, or space as the delimiter 6. Look at the Import of D-List Items dialog box: Click Import Mode (p. 132), and select either Append or Update. Click Subtotals, and either specify a subtotal or choose either <None> or <Allocate>. Click Where to select where you would like the items from the ASCII file placed in the new D-List. Click Select Attribute to choose from the following: Skip, Item name, Parent, Parent 1 through Parent 8 or Calc Texts. 7. Click OK. 8. Choose whether you want to turn this import into an import link for the D-List. If you click Yes, it will overwrite any existing import link. 9. From the File menu, click Save. 10. Name the D-List if necessary. Note: The D-List name is case sensitive and must be unique. You can type up to 31 characters including spaces. 11. Click OK.
Steps
1. From the File menu, click New, D-List. - or From the File menu, click Open, D-List, and select the appropriate D-List. 2. From the D-List menu click Add Items. 3. Click Import and select Import Mapped ASCII File. 4. Select a file map, and then click Open. 5. From the Import of D-List Items dialog box: Click Import Mode(p. 132), and select either Append or Update. Click Subtotals and specify a subtotal, or choose either <None> or <Allocate>.
Chapter 7: D-Lists Click Where to select where you would like the items from the ASCII file placed in the new D-List. Click Select Attribute to choose from the following: Skip, Item name, Parent, Parent 1 through Parent 8, or Calc Texts. 6. Click OK. 7. Choose whether you want to turn this import into an import link for the D-List. If you click Yes, it will overwrite any existing import link. 8. From the File menu, click Save. 9. Name the D-List if necessary. 10. Click OK.
Steps
1. From the File menu, click New, D-List. 2. Click Import, and then select Import D-Cube Data. 3. Select the D-Cube containing the source data. 4. Make a selection from the D-Cube dimensions which consists of one page only and columns of formatted data. 5. Click OK. 6. From the Import of D-List Items dialog box: Click Import Mode (p. 132), and select either Append or Update. Click Subtotals, and either specify a subtotal or choose either <None> or <Allocate>. Click Where to select where you would like the items from the ASCII file placed in the new D-List. Click Select Attribute to choose from the following: Skip, Item name, Parent, Parent 1 through Parent 8 or Calc Texts.
128 Analyst
Chapter 7: D-Lists 7. Click OK. 8. Choose whether you want to turn this import into an import link for the D-List. If you click Yes, it will overwrite any existing import link. 9. Click OK to import the items, and then save and close the D-List.
Steps
1. From the File menu, click New, D-List. 2. Click Import, and then select Import from ODBC (SQL database). 3. Select an ODBC source, then click Connect. If required, you may need to log on with your ID and password. 4. Select the table and column that contain the items to import. You can click Fetch to preview the column. 5. Optional: Click Create SQL to create a SQL statement. Experienced SQL users can edit this statement or type a SQL statement directly into the text box. For example, to combine two columns into a single D-List item, type a SQL expression such as Select ProductID & ProductName from Products. 6. Click OK. 7. From the Import of D-List Items dialog box: Click Import Mode(p. 132), and select either Append or Update. Click Subtotals and specify a subtotal, or choose either <None> or <Allocate>. Click Where to select where you would like the items from the ASCII file placed in the new D-List. Click Select Attribute to choose from the following: Skip, Item name, Parent, Parent 1 through Parent 8, or Calc Texts. 8. Click OK.
Chapter 7: D-Lists 9. Choose whether you want to turn this import into an import link for the D-List. If you click Yes, it will overwrite any existing import link. 10. Click OK to import the items, and then save and close the D-List.
Steps
1. Open the D-List. 2. From the D-List menu, click Options, Import Link tab. 3. Choose Cognos Package as the type of source file from the Import From drop down box. 4. In the Cognos Package section, you can click the ...button to select a Cognos package, or if you already have a Cognos package, you can switch to a different Cognos package and then select new Query Items. You can display a preview of the selected Query Items. Select the Display preview of selected query items check box to preview the Query Items. The Preview option only works with Query Items that have not been selected, and helps you select the correct Query Items.
5. Choose the import mode from the drop down box. If using Update mode, the Remove Obsolete check box will become active. Select it to keep specified items. 6. Choose the position and sort order of the items from the Location/Sort Order drop box. 7. Use the Subtotal drop box if you wish to insert the new items into existing subtotals in the D-List. 8. Select an attribute from the drop box. 9. Optional: If you are editing an existing Import link, click Connect. 10. Click OK. Whenever you import items to a D-List, or create a new D-List by importing from an eligible source, you will be offered the option to turn this import into an import link for the D-List. If you answer Yes to this question, it will overwrite any existing import link.
130 Analyst
Chapter 7: D-Lists
Steps
1. Open the D-List. 2. From the D-List menu, click Export as E.List. 3. Choose a location to save the exported D-List. 4. Enter a name for which to save the exported D-List. 5. Click Save to export the D-List as an e.List. Note: The order of the items in the e.List is determined by the order of the items in the D-List item calculations, not the order that the items appear in the D-List itself. A macro called @ExportToEList is also available to automate this export process.
Implement Changes
If you make a change to a D-List, it is necessary to implement the change.
Step
From the D-List menu, click Implement Implement lets you see the effect of your proposed changes in any open D-Cube which uses the D-List, and still revert to the saved version in the event of an error. To revert to the saved version, from the D-List menu click Reset. - or From the File menu, click Save.
Steps
1. Choose whether to delete items while in a D-List or D-Cube: If from a D-List, from the D-List menu, click Delete Items. If from a D-Cube, right-click your mouse on the D-List dimension, and click Delete Items. User Guide 131
Chapter 7: D-Lists 2. In the Selection dialog box, select the items you want to delete and then click Move >>. 3. Click OK. This message appears: X items to be deleted. Do you want to proceed? 4. Click Yes to delete or No to cancel. 5. Save the D-List or D-Cube to make the deletion permanent. Tip: A shortcut for deleting an individual D-List item is to click the row numbers in the D-List attribute screen and then press Delete.
Import Mode
When importing items into a D-List, the import mode determines how to insert new items which may contain a unique code into a D-List.
Unique Names
A D-list item name may consist of a unique code, a specified number of characters in length followed by a description (p. 141). If this is the case and the source data for the import contains an item with the same unique code as an existing D-List item, but a different description, then Append mode will leave the existing description unchanged. Update mode will change the item to use the description in the source data.
In the example shown, the original D-List prior to copying contains 4 items: A, B and C adding to a subtotal X total. No special formatting or calculation options exist on the original D-List, but the unique code portion has been defined as being the first character.
A B C X total = A+B+C
132 Analyst
Chapter 7: D-Lists The source D-List has 4 items: A product, D product, E product adding into X total. In each case all the items from the source D-List are copied together with their formulas and formats. The sort order is set to 'hierarchical' and no subtotal is chosen. In each case, the numeric formats and the formulas are copied across.
A product D product E product X total= A product+ D product+ E product
When copying from ASCII, ODBC or D-Cube data, the source file has two columns consisting of an item and its parent.
A product X total D product X total E product X total
Target D-List Source Target D-List After Copying D-List: Copy before copying all items Append Update Update+Remove Obsolete Update+Remove Obsolete, but KeepB
A B C A Product D product E product A B C D product E product A product D product E product A product D product E product A product
Chapter 7: D-Lists
Target D-List Source Target D-List After Copying D-List: Copy before copying all items Append Update Update+Remove Obsolete Update+Remove Obsolete, but KeepB
D product E product B C B
Importing from ASCII files, ODBC sources, Cognos Packages, or D-Cube data
When importing from ASCII files, D-Cube data, ODBC sources, or Cognos packages using macros, simple subtotals are combined in both Update and Append mode. The descriptions are always modified in Update mode, but not in Append mode. In Update mode, you are allowed to remove obsolete items, but can prevent the deletion of selected items by pressing the Keep button.
Target D-List
Source File
Append
Update
A B C X total = A+B+C
A B C D Product
A Product B C
D Product X total= A product+ D product+ E product E Product X total = A+B+C+D product+ E product
134 Analyst
Chapter 7: D-Lists
Where Drop-Box
When moving or importing items, the Where box lets you define where new items are positioned. Top puts all the new items at the top of the list. Bottom puts all the new items at the bottom of the list. Select lets you position items individually using the selection screen. You must move each new item to the Items Included list by clicking Move >>. You can reposition the items with the arrow buttons on the right of the selection screen. The Reset button lets you start over if an error occurs. Alphabetical sorts the entire list alphabetically and numerically, including reordering existing items. Hierarchical automatically creates subtotals, totals, and grand totals according to the position of each item in a hierarchy defined in the source data.
Subtotals Drop-Box
The Subtotals drop-box lets you modify subtotal formulas to incorporate new items. The subtotal option is available only when the formulas consist of simple additions of items in the D-List. <None> does not change subtotal formulas. <Allocate> lets you set up an allocation table to allocate items into one or more subtotals. This is particularly recommended for long lists with multiple formula hierarchies.
A final option is for you to select a single subtotal from the list. This incorporates all new items into that subtotal formula.
Maintaining Hierarchies
You can create source files for hierarchical D-Lists in ASCII files, databases with ODBC connections or D-Cubes. In all import screens there is a sorting option called hierarchical. This groups newly imported D-List items with their subtotals.
Simple Hierarchies
You do not have to have each level of the hierarchy in a separate column. By defining the first column Item name and the second column Parent in the example below, cities add up into countries, add up into continents You can go straight from Item name to Parent 2 without an intermediate Parent being assigned.
Chapter 7: D-Lists
Item Name
Ottawa Montreal Canada New York Rio de Janeiro Brazil
Parent
Canada Canada Americas Americas Brazil Americas
Steps
1. From the File menu, click New, D-List. 2. Click Import and then select Import from ASCII-files. Note: If the ASCII file is a fixed-width text file, you need to set up a file map to define where each column of data starts and ends. In that case, you select Import from Mapped ASCII files. 3. Select the name of the ASCII file or file map to import. Note: If importing from a delimited ASCII file, select Use Delimiter and then select Comma as the delimiter. 4. Select the column containing the lowest level of the hierarchy and select Item name in the Select Attribute box. Then select the column containing the subtotals and select Parent in the Select Attribute box. At the next highest level of the hierarchy, select Parent 2 (grandparent). 5. Repeat until all columns have been assigned to a level. 6. Set the import mode (p. 132). 7. Click OK to import the items and then save and close the D-List.
136 Analyst
Chapter 7: D-Lists For example, the ASCII file shown below would have the first column defined as Item name and the second column defined as Parent. One hierarchy adds up the products by sub-totalling into countries. A second independent hierarchy adds up the products into soft and hard cheese types. The item names do not have to be in any specific order.
Camembert
St Paulin Edam Roquefort Camembert St Paulin Edam Roquefort
French cheeses
French cheeses Dutch cheeses French cheeses Soft cheeses Hard Cheeses Hard cheeses Soft cheeses
Item name
Ottawa Montreal New York Rio de Janeiro
Parent
Canada Canada
Parent2
Americas Americas Americas
Brazil
Americas
Chapter 7: D-Lists
Steps
1. Open the D-List containing the European cities. Because you cannot have a D-List with no items, you must have at least one item in this list to begin with. 2. Select Options from the D-List menu and click the Import Link tab. 3. In the Import From box, select D-Cube. 4. Select Update from the Import Mode list, then select the Remove Obsolete Items check box. 5. Select Hierarchical from the Location/Sort Option list. 6. Under D-Cube Data Import, click the button to browse for the D-Cube to use as a source table. You must specify a selection and orientation that opens it. 7. At the first selection screen click the slice. Ensure Cities is set as rows, and city hierarchy set as columns. 8. Do not make a specific selection on the Cities dimension (rows). This means that all rows will be looked at, including ones inserted at a future date. 9. Click the second tab and select the column or columns that contain the hierarchy. These are the columns containing the parent or grand-parent names. Within certain limitations, any number of hierarchy levels are allowed. 10. In the Select attribute box, click the first column (E.g. Cities) and select Item name. 11. In the Select attribute box, click the second column and select Parent. If there are more hierarchy levels, repeat this process by highlighting each column in turn and selecting Parent2, Parent3, and so on. 12. To ensure that only the items with a parent are imported, select the Suppress Zero Rows check box, and then click OK. 13. Select Update from the D-List menu. The new items will be imported into the D-List. 14. Save the D-List. The D-List can now be updated very simply at a later date by selecting Update from the D-Cube menu. This will take account of changes to the hierarchical data in the source D-Cube and update the target D-List appropriately.
138 Analyst
Chapter 7: D-Lists
Manage D-Lists
Management of D-Lists occurs in the library. You can copy, rename, print details, see where a D-List is used, and see what other objects the D-List is dependant on.
Rename/Move a D-List
Before you rename a D-List, ensure the list and all D-Cubes using it are closed.
Steps
1. From the File menu, click Library, D-Lists. 2. Select the D-List and move it to the bottom with the down arrow button. 3. Click the Rename/Move button. 4. Type the new name. Note: You also can move D-Lists to a different library. To move the D-List, select a new library from the Target Library list. 5. Click OK.
<< Move
Click << Move to deselect highlighted items in the D-List Selection dialog box. It removes selected items from the Items Included list and moves them to the Items Available list.
Delete a D-List
You can delete D-Lists only if they are not used by another object, and they are not active or open.
Steps
1. From the File menu, click Library, D-Lists. 2. Select the D-List and move it to the bottom with the down arrow button. 3. Click the Delete button. 4. If you are not allowed to delete a D-List, you can check to see its usage by clicking the Show objects that the selected object(s) is used by (p. 140) button. You must delete the D-Cubes and other objects that use the D-List, or amend them to use a different D-List, before you can delete the D-List.
Chapter 7: D-Lists
Steps
1. From the File menu, click Library, D-Lists. 2. From the drop-down box, select a library. 3. Click the Filter button to limit the choice of D-Lists shown. For example, Filter = P* shows anything beginning with P. Alternatively, you can search for a specific name by clicking the Binoculars button and typing the name to search for.
Steps
1. From the File menu, click Library, D-Lists. 2. Select the D-List. 3. Click the Show objects that the selected object(s) is using button.
Steps
1. From the File menu, click Library, D-Lists. 2. Select the desired D-List. 3. Click the Show objects that the selected object(s) is used by button to see where the D-List is used.
140 Analyst
Chapter 7: D-Lists
Steps
1. From the File menu, click Library, D-Lists. 2. Select the D-List and move it to the bottom with the down arrow button. 3. Right-click the D-List and select Upgrade Pipe symbols in D-List item names.
Unique Names
A D-List item may consist of a unique code and name, which makes it easier to match items, especially for data imported from other sources.
Chapter 7: D-Lists
Steps
1. Open the appropriate D-List. 2. From the D-List menu, click Options, Unique names tab. 3. Look at the Unique Names page of the D-List Options dialog box. To mark the start of the unique part, click once in the text box. To mark the end, click again. To remove line breaks, right-click the appropriate break. - or In the Unique Range box, specify the unique range by entering beginning and ending numbers. 4. Usually, the unique part consists of a code, but it could be the entire description. If this is the case, click Select All, OK. 5. From the File menu, click Save.
142 Analyst
Chapter 7: D-Lists The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria.
Steps
1. Choose whether you are reordering from a D-List or from a D-Cube: If reordering from a D-List, from the D-List menu, select Reorder, Manual If reordering from a D-Cube, right-click a D-List dimension and choose Re-Order Items from the list.
2. In the Reorder Itemsdialog box, in the Items Included area, select the items you want to reorder and use the arrow keys to move the selected item up or down to move to the top or bottom. Tip: Non adjacent items can be grouped together: Select the items to group. While holding CTRL, click to select non adjacent items. Group all selected items together at the top or bottom using the arrow keys. You now can position the group of items using the arrow keys to move up or down. 3. When you finish reordering items, click OK. 4. From the File menu, click Save.
Steps
1. Open the D-List you want to sort. 2. From the D-List menu, select Reorder and choose the sort order you want. A summary of the sort orders is given below.
Sort Order
Normal Alphabetical Rev Alphabetical
Explanation
The sort order saved on the D-List. Alphanumeric abc123. Reverse alphanumeric 321cba.
Chapter 7: D-Lists
Sort Order
Totals After/Calc
Explanation
A hierarchical sort, with subtotals below their children, sorted within each subtotal according to the order found in the calculation formulas. The grand total is at the bottom. In the event of multiple overlapping hierarchies, items outside the main hierarchy appear at the bottom, below the grand total of the main hierarchy. The main hierarchy is chosen as the hierarchy below the first grand total in the list. A hierarchical sort, starting with the grand total and then each subtotal appearing above its children. In the event of multiple overlapping hierarchies, items outside the main hierarchy appear at the bottom, below the grand total of the main hierarchy. Same as Totals Below, but sort alphabetically within each subtotal. Same as Totals Above, but sort alphabetically within each subtotal. Same as Totals Below, but sort reverse alphabetically within each subtotal. Same as Totals Above, but sort reverse alphabetically within each subtotal. Same as Totals Below, but uses the current D-list order within each subtotal. Same as Totals Above, but uses the current D-list order within each subtotal.
Totals Before/Calc
Totals Before/Z-A
Totals After/None
Totals Before/None
144 Analyst
Chapter 7: D-Lists 6. Click OK. 7. If you changed the description or the owner's note, save the D-List.
Steps
1. From the File menu, select Open and then click D-List. 2. From the D-List menu, click Options. 3. Click the Subheaders tab. 4. On the Subheaders page, click New and then type the header text in the Header Text box. 5. In the Alignment box, select the position of the text: Select Left for left-justified text. Select Center for centered text. Select Right for right-justified text.
6. In the Fonts section: Select Common font size for one font size and specify the size in the Font size list. Select Multiple font sizes for more than one font size; then click Edit font size to specify. Click OK.
7. In the Select items to include in current header box, click the items you want to go into the subheading from the Items Available list. Whenever any of these items display as row labels in a report, the subheading displays above the first item. 8. To move the selected items to the Items Included list, click Move>>. 9. Click OK to return to the D-List options screen. 10. Click OK to return to the D-List. 11. From the File menu, click Save. Note: In normal use, the subheader displays in reports but not in the D-Cube.
Chapter 7: D-Lists
Steps
1. Open a D-List. 2. Click the small color box to the top left of the D-List. 3. Select a color from the palette. The recommended color conventions are listed below:
Types of D-List
Account codes, Profit and Loss items, balance sheet, other calculation D-Lists
Color
White
Divisions, regions, geographical, cost centers, personnel names Green Products, brands, services Customers Days, months, weeks, quarters, years, time Versions, actual/budget/variance Purple Blue Cyan Yellow
146 Analyst
Chapter 8: D-Cubes
A D-Cube is a store of data within a model. It is multi-dimensional and contains rows, columns and any number of pages. The D-Lists form the dimensions of the cube. Unlike a spreadsheet, D-Cubes can be sliced so that any pair of dimensions can comprise the rows and columns while additional dimensions comprise the pages. Cognos Planning - Analyst can handle any number of dimensions, the only practical limitation being the memory in your PC, but typically a D-Cube will contain no more than 5 or 6 dimensions. A D-Cube must contain at least two D-Lists (similar to a flat spreadsheet). Alternatively, a D-Cube can have three D-Lists, in which case it resembles a three-dimensional worksheet consisting of several flat sheets stacked behind one another. A four or five-dimensional D-Cube can be considered the same as a cross between a three-dimensional spreadsheet and a set of query reports from a relational database. A typical four-dimensional D-Cube would contain the D-Lists: P&L, Divisions, Months, and Variance. Note: Format and Formula priority: When you create a D-Cube, it is best to choose the D-Lists in a set order to overcome any priority conflicts on formulas at a later date. In general, select D-Lists with the most calculations first, particularly when the calculations use IF...Then...ELSE logical operators. Select the aggregation D-Lists next (divisions, customers, products) then the timescale D-Lists. Finish with the versions D-List. The default formula priority is given to the later D-List in a D-Cube, whereas format priority is given to the earlier D-List.
Size Limitations
There is no software limitation on the number of cells contained in a D-Cube, but there is a hardware limitation that depends on the memory in a computer. To determine the size limitation, the number of cells is determined by multiplying the number of rows by the number of columns by the number of pages. To put it another way, the number of cells is the product of the number of D-List items contained in each D-List. Size = (no. items D-List 1)* (no. items D-List 2)* (no. items D-List 3)* . . . *(no. items D-List n). Size limitations vary greatly depending on the memory in your computer. D-Cubes containing long D-Lists of 500 items consume more memory than similarly sized D-Cubes containing D-Lists of 100 items. In general, size limitations become apparent in D-Cubes of four or more dimensions. If you have a three-dimensional D-Cube of 400 pages, adding another dimension of 20 items increases the memory usage twenty-fold. In other words, you increase the data held from 400 pages to 8000 pages. Adding a fifth dimension of 20 items increases the memory usage by twenty-fold again to 160,000 pages of data. In practice, this memory limitation is overcome by creating a series of well-populated D-Cubes of three or four dimensions rather than one sparsely populated D-Cube of five dimensions.
Chapter 8: D-Cubes
Interrupt a Calculation
If a calculation is taking a long time, you can interrupt it. If you interrupt a calculation and you have Undo enabled, and the memory limits are set high enough to contain a full copy of the current D-Cube data in memory, the D-Cube editor will revert to the latest D-Cube version available in memory. If Undo is disabled when you interrupt a calculation, all current changes will be discarded and the D-Cube editor will revert to the last saved version.
Steps
1. To interrupt a calculation, click the red cross that appears in the main toolbar. This button appears only when it is safe to stop calculating. 2. To ensure the integrity of the data after interrupting a calculation when Undo is turned off, from the File menu, click Reset to return to the saved version.
Steps
1. Close all objects so that you start from a blank screen. 2. From the File menu, click Library, D-Cubes. 3. Click the D-Cubes you wish to monitor, and then click the down arrow. 4. Choose whether to set or clear the audit: To set the audit, right-click the D-Cubes, select Set Audit from the list, and then click OK. The status of the audit trail shows if the object is currently being audited. To clear the audit, right-click the D-Cube, select Clear Audit from the list and then click OK. This clears the slate entirely. It will discard all old audit information and prevent any future audit trail from being recorded until you choose Set Audit once more. 5. Close the D-Cube Library window. The program will now begin to record any changes to that object.
148 Analyst
Chapter 8: D-Cubes
Steps
1. Right-click a cell and select Audit. This will show the last session in which the cell was affected, not necessarily the latest session. 2. (Optional) You may browse backwards or forwards through the audit records using the Previous and Next buttons. Each record contains a list of actions between saves. 3. If you want to search for a text string within an audit record, from the File menu, click Find, and then type the text to search for. Clicking Find Next or pressing the F3 key jumps to the next occurrence of the text string within the current page. 4. If you want to print all records, from the File menu, click Print. Tip: To preview the records before printing them, from the File menu, click Print Preview.
Breakback
Breakback answers what-if problems by changing the value of any number of variables to make a formula equal to a value you specify. With breakback, you set a target for a formula, and the variables that make up that formula are changed according to the rules you specify. In the default breakback mode, totals are split pro rata according to the original values contained in the variables that make up the formula. Zeros remain at zero with one exception: if all the variables in a formula are initially zero, the total is split equally down the hierarchy.
Chapter 8: D-Cubes Company Total = North + South + East + West Likewise, a Periods D-List is also used where Period 1 + Period 2 + . . . + Period 12 = FULL YEAR If you type data in the Company Total cell, breakback allocates the total pro rata according to an initial profile or weighting. This profile is determined by the value of the original items held in the detail items. For example, if you have a D-Cube with four divisions and a Company Total, with each division having the number 25 entered in it, the formula would allocate 25 percent of any changes in the total to each variable. If you then typed 1000 in the Company Total cell and pressed Enter, the four divisions would receive 25 percent of 1000, or 250 in each division. The profile need not be a percentage. For example, suppose each division were given an equal initial weighting of 1, then the result would split equally. If you type 1000 in the Company Total cell and press Enter, the result would still be 250 in each division. The same result could be achieved by giving an initial profile of all zeros. Before the breakback, everything reads zero; after entering a number in the Company Total cell, every item receives an equal allocation. Profit = Sales - Costs Initially Sales =60 Costs =40 So Profit = 20 The effect of increasing Profit from 20 to 30 increases Sales by six and decreases Costs by four in direct proportion to their initial values. The percentage change of each variable is determined by the relative size of the initial values. The effect of breakback on formulas containing multiplication is slightly more complex, but again, the pro rata rule applies. For example, if you have the formula: Sales = Units * Price If Sales are doubled, both Units and Price increase by the same percentage with respect to their original values. In this case, both will increase by the square root of 2. The effect of breakback on formulas containing division is similar to multiplication. The effect of an increase in the result is to increase the numerator by the same percentage as the denominator. Again, the pro rata rule applies. For example, if you have the formula: %Margin = (Margin / Sales) * 100 If % Margin is increased, Margin goes up by the same percentage as Sales go down. This keeps both variables in proportion to their original values. In fact, if % Margin doubles, then Margin goes up by a factor of the square root of two whereas Sales go down by a factor of the square root of two. In this last case, it would be better to hold or increase Sales before changing %Margin. The computer lacks the intelligence to know whether an increase in %Margin is best achieved by an increase in Sales, a reduction in Costs, or some mixture of the two.
150 Analyst
Chapter 8: D-Cubes
Steps
1. Create or open the D-Cube to which you want to apply the breakback. 2. Set the profile. Generally, this is done by copying numbers in using a D-Link from the D-Cube where the profile is stored. 3. Enter the target in the total cell. Typically, this is done by copying numbers in using a D-Link from the D-Cube where the targets are stored. 4. Press Enter. The changes are split pro rata across the detail items using the profile as a guide.
Chapter 8: D-Cubes For example, suppose you were to apply a hold to all four divisions and then hold the COMPANY TOTAL cell as well. The program has no freedom at all. Total Company = North + South + East + West Were you to enter data in the North division without releasing any of the other divisions or the total, the Total Company cell would change despite being held. In this case, you would not be giving freedom to the program. The forward calculation would have priority over the hold on the total. If you were to enter data in the Total Company cell without releasing any holds, the total would not change. In this case, the holds on the detail items have priority over the breakback calculation. As a rule of thumb, you should release all holds after each breakback operation.
Apply a Hold
To apply a hold, use D-Cube commands (p. 173).
Remove a Hold
To remove a hold, use the D-Cube Release command (p. 173).
Rounding Errors
Frequently you hear people claim that spreadsheets do not add correctly or that they contain rounding errors. This is a false allegation against spreadsheets that calculate to decimal places. The rounding errors that occur are so minimal as to be insignificant. However, it is not a trivial issue.
152 Analyst
Chapter 8: D-Cubes There are cases where numbers displayed to too few decimal places do not seem to add correctly (see the example that follows). Many hours have been spent using spreadsheet macros and rounding facilities trying to overcome this apparent anomaly. Analyst offers a solution to rounding anomalies by using breakback in integer mode. It should, however, be used with caution. If breakback is set to integer mode, the underlying detail numbers are changed. Although it is useful for presentation purposes, if you are sending the data to be consolidated elsewhere, it is generally better to use decimal mode so that the integrity of the data is maintained. The best solution is to produce reports with numbers formatted to one more decimal place than you have been asked for. In the example below, the sum is 1.333+1.333+1.333+1.000=4.999. However, if you set the decimal places to zero, the sum reads 1+1+1+1=5. This is upsetting because it seems to contravene the rules of mathematics. Actually, it is the mathematically correct solution because each number is rounded correctly, but try telling that to the boss! Breakback in decimal mode does not round the variables at all. Breakback in integer mode rounds the variables to the nearest integer. By rounding to integers, the sum 2+1+1+1=5 seems to add correctly even when no decimal places are shown. This can be useful for presentation purposes. However, a break back must be triggered for the rounding to occur.
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Options, Break-Back tab. 3. In the Options dialog box, do the following: If you do not require rounding when performing breakback, select Decimal. If you require rounding integers when performing breakback, select Integer.
4. Click OK.
Chapter 8: D-Cubes 2. Enter the profile into the detail items. Typical profiles include a seasonality pattern, last year's actual results, a headcount, or other cost driver. Alternatively, enter the absolute numbers and tweak the total using breakback. 3. Optional: Apply any holds or other commands to the detail items. 4. Enter the data into the formula cells, and press Enter. Breakback is triggered automatically, allocating the changes pro rata to the variables that make up the formula.
Create D-Cubes
Use a D-Cube to enter data, perform multidimensional analysis, and calculate and collect data. You use D-Lists to define the dimensions for a D-Cube. The D-Lists are used to perform calculations, control labels, and format data entry. Add D-Lists in order of category number to maintain the correct calculation precedence.
154 Analyst
If the order is wrong, you can change it later from the D-Cube menu, clicking Dimensions, Reorder.
Format Priority
Format priority in a D-Cube cell is determined by the order in which you include D-Lists in the D-Cube. The first D-List in the D-Cube takes precedence.
Chapter 8: D-Cubes Clicking OK without selecting any items in the Selection dialog box selects all items. Alternatively, you can hide rows, columns, and pages at this stage by selecting only the items you want to display.
Open D-Cubes
Open a D-Cube to populate it with real-time data and begin your analysis. You can also open a D-Cube to add some test data before the actual budget data becomes available. You can re-orient the D-Cube so that certain dimensions fall on rows, columns, and pages.
Steps
1. From the File menu, click Open, D-Cube. 2. Click the name of the D-Cube you want to open. You can choose to open a D-Cube from another library if you have access rights. 3. If you choose to open a D-Cube from another library, click the library name to select it, and then select a D-Cube name. 4. Click OK. 5. Choose the mode in which you want to open the D-Cube. Click Full to open the entire D-Cube. The full cell count of the cube appears on this screen whichever option you choose. Click Saved Selection to open a previously saved selection of rows, columns, and pages. Then choose the name of the selection. Click Edit Selection to work on a limited number of rows, columns, and pages by selecting some and hiding others.
Note: If you select Edit Selection, you must move items you want to display to the Items Included list. Select the items you want and then click Move>> to move them to the Items Included List. Repeat for each D-List by clicking the D-List tabs. Leaving the selections blank selects everything. 6. Click OK. The selected rows, columns, and pages of the D-Cube appear. 156 Analyst
Chapter 8: D-Cubes 7. To close the cube, from the File menu, click Close. If you have not saved the D-Cube, you are prompted to do so. 8. To save before closing, click Yes. If two views of the same D-Cube are open, they can be closed one at a time. However, if the selections are different, you must save the changed data when prompted.
Steps
1. From the File menu, click Library, D-Cubes. 2. Choose the correct library from the selection box in the top left hand corner 3. Highlight the cubes you wish to open and click the down arrow to move them to the lower pane 4. Choose a different library and select more cubes, if necessary. 5. From the central toolbar, click the Open objects icon. The active D-Cube is indicated by the blue highlighted title bar. 6. To activate another D-Cube, click anywhere in the window. Tip: To change from one window to another, press Ctrl+TAB.
Expand a Subtotal
Clicking Expand in the Selection dialog box selects the variables that go into a formula. It can be used to expand selected totals in either the Items Available list or the Items Included list. By repeatedly clicking Expand, further levels of the formula hierarchy can be highlighted. It can be used to expand more than one subtotal at the same time. Note: Clicking Expand applies the selection, but does not specify whether the selected items are to be included or not. After clicking Expand the selected items must be moved to the Items included list or the Items available list by clicking Move>>.
Chapter 8: D-Cubes Exchanging the position of D-Lists does not affect the order of the D-List in a D-Cube in terms of calculation order. It changes only the way the D-Cube is displayed.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Selections, New Slice. A new window appears containing another view of the same D-Cube. This can be sliced independently of the first view. The active slice is indicated by the blue highlight at the top of each window. 3. If you want to change the position of the windows, from the Window menu, click Cascade, Tile Horizontally, or Tile Vertically. 4. If you want to move between windows, from the Window menu, select the relevant window. To change from one window to another, press Ctrl+Tab. 5. To close a window, make the slice you want to close into the active window, and then from the File menu, click Close.
Example
If you have a D-Cube that has a D-Cube data allocation that allocates cost centers to both divisions and managers as follows:
Divisions
Cost Center 1 Cost Center 2 USA Germany
Manager
Manager 2 Manager 3
158 Analyst
Chapter 8: D-Cubes
Divisions
Cost Center 3 Cost Center 4 Cost Center 5 Cost Center 6 Cost Center 7 Cost Center 8 Cost Center 9 Cost Center 10 Cost Center Total France U.K. USA Germany France U.K. USA Germany
Manager
Manager 1 Manager 1 Manager 2 Manager 4 Manager 4 Manager 1 Manager 3 Manager 3
Cost Center 1 is located in USA and is managed by Manager 2. Similarly, Cost Center 2 is located in Germany and is managed by Manager 3. In this manner, the remaining cost centers are each located in various countries (USA, Germany, England, or France) and managed by various managers (Manager 1 through Manager 4). Note that one manager can be responsible for multiple cost centers in different cities.
Enter Data
When you enter data in a D-Cube, the color of the data indicates whether the data is saved, a working copy, or not calculated. If you make a mistake while entering data, you can reset a cell to its original or saved value. By default, the Undo facility is not turned on. For large D-Cubes, turning on the Undo can affect performance, so the Reset command can be used as a viable alternative.
Chapter 8: D-Cubes Entering numbers in the black formula cells triggers the breakback function. This is the equivalent to setting a target result and directing the program to break back pro rata with numbers that will meet that target. If you have changed a formula in a D-List, numbers are not recalculated in the D-Cube until you implement the changes.
Cell Type
Normal Protected Locked Held Protected and Held Protected and Locked Locked and Held
Background Color
White Yellow Light gray Light turquoise Light green Light gray Dark gray
Cell Type
Typed, but not calculated data changes Changed detail item Changed formula result Unchanged detail item Unchanged formula result
Text Color
Green Pink Red Blue Black
160 Analyst
Chapter 8: D-Cubes
View a Formula
You can view a formula to better understand complex calculations used in the D-CUbe.
Step
Move the cursor to a black or red formula cell and press F7. Alternatively, from theD-Cube menu, click Show Formulae. The formula currently being used appears first.
Step
To view the origin of a detail cell, click the cell, and then click the Drill Down button. Tip: Alternatively, you can press F9. If the cell is a target of a D-Link then the data which would be transferred to the cell by the D-Link opens in a separate window. If the cell is the target of multiple D-Links then multiple windows will open. The data in the cell may differ from the source data shown depending on which D-Link was the last to run and whether data has subsequently been entered into the cell. To track changes to a cell, use an audit trail (p. 148).
Edit D-Cubes
You can edit D-Cubes by copying data from within the cube or external sources outside the cube, suppressing zero rows, columns, or pages, and annotating cells,
Steps
1. Open a D-Cube. 2. Select the range you want to copy from the source D-Cube. 3. From the Edit menu, click Copy. 4. Select the range to which you want to paste the data.
Chapter 8: D-Cubes You can paste single columns into selected multiple columns. If the range of the target area is smaller than the range copied to the clipboard, only the earlier rows and columns are pasted in. 5. From the Edit menu, click Paste. The data is pasted in the cells and displays in green to indicate that the numbers have not yet been entered. 6. To calculate, click the page once and press Enter.
Steps
1. Open the D-Cube. 2. From the D-Cube menu, click D-Links, Internal. 3. Click the yellow arrow connecting the relevant D-Lists. The default color of the arrow is yellow to indicate that items are matched using a match descriptions pairing (p. 233). 4. Select Change to allocate. This changes the yellow arrow to a green and red arrow, indicating that items are matched using a local allocation table pairing. An allocation table allows you to specify any correspondence of source and target items. You can mix one-to-one, many-to-one, and one-to-many allocations in one allocation table. 5. Select the items to copy. 6. On the Source side, click the D-List item you want to copy. 7. On the Target side, click the relevant D-List item. The allocation table in the center shows how the source and target ranges correspond. Note: If you make a mistake, select the line in the allocation table and press Delete (this action deletes a single line of the table). 8. Repeat with the other items. 9. To copy the range by running the internal D-Link, click the D-Link menu, and then click Execute. Unlike the copy and paste functions, a D-Link calculates in addition to copying, so that numbers display in red to show that they have changed. 162 Analyst
Copy the Underlying Value Contained in a Cell Using the Copy Commands
The copy commands operate on numbers on the same level in the calculation hierarchy. A copy command entered in a detail item copies the item to all subsequent details, skipping any formula items. A copy command entered on a formula copies the formula to all other formulas. For example, 4000> entered in quarter1 skips the months, but copies the number 4000 to all subsequent quarters. Then breakback decides how the quarterly value of 4000 is split by month. Copy commands are terminated by any other copy command in their path or by the colon break (:). The colon (:) acts as a break that copies up to, but does not include, the current cell contents. The following copy commands are available:
command
greater than sign (>) less than symbol (<) pipe symbol (|) 'power of' symbol (^)
description
Copies data to the right along the same row. Copies data to the left along the same row. Copies data down the same column. Copies data up the same column.
Enter a Number and Copy it Across and Down Cells at the Same Time
The copy commands can be combined to facilitate data entry. For example, using the greater than sign (>) followed by the pipe symbol (|) tells the program to copy the number across and down the cells. As with all data entry, copy commands are not processed until you press Enter.
Steps
1. In the desired cell, type the sign for the operation required. 2. Press Enter.
Chapter 8: D-Cubes We recommend the D-Link method because it provides an audit trail back to the source data, provided the D-Link has been saved and does not rely on the relative position of cells. Instead, it effectively gives each spreadsheet cell a range name that can be directed to the correct cell in the D-Cube. For any large spreadsheet, we recommend a D-Link as the optimal choice. If the spreadsheet uses a series of sections, you can use the Follow On facility in the D-Link to direct the data to the correct page. If it is set up as an ODBC source then a 100-page spreadsheet could be copied in one step rather than 100 separate copy-and-paste steps. To be comprehensive, the copy-and-paste method is shown here, although it cannot be stressed enough that the D-Link method is better in almost every case. If you use the copy and paste method, the position of rows and columns must be identical in both the source spreadsheet and the target D-Cube. This is possible if the D-Lists have been created from the spreadsheet itself. It can be a quick method of copying data between a spreadsheet and a D-Cube; however, ensure that blank rows and columns are eliminated and that the areas to copy from and to match exactly. Note: To avoid the possibility of triggering an unwanted breakback in analyst, you should paste data into detail cells of a D-Cube only.
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Options, Lines tab. 3. Look at the Lines page and do the following: Click the list to select where to insert lines (separating columns or lines separating rows). Click Before to insert lines before totals. Click After to insert lines after totals. Note: The lines are inserted automatically to separate the formula items from detail items, regardless of the slice of the D-Cube. 164 Analyst
Chapter 8: D-Cubes Click Color and select a color from the list. Enter a line thickness in the Thickness box. Select a line style from the Style box.
4. Click OK. Note: Although the facility to insert blank lines is not really featured in Analyst, there is a slightly ambiguous method of creating them. Insert D-List items containing just the underscore character ( _ ). Then apply a numeric format (p. 112) to the underscore item and select blank if zero (p. 193). As D-List names have to be unique, the number of underscore characters must vary if more than one blank line is inserted.
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Options. 3. Click the Zeros tab. 4. To hide blank rows, columns or pages, select Suppress Zero Rows, Suppress Zero Columns or Suppress Zero Pages, or any combination of these three options. This will suppress zeros based on the slice. If the Suppress Zero Rows box is selected, zero rows will be hidden no matter which D-List happens to constitute the rows at a given time. Suppress Zero Pages is used to suppress blank pages from being printed or exported to text or ASCII files. 5. Click OK. 6. Save the D-Cube.
Chapter 8: D-Cubes
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Options. 3. Click the Zeros tab. 4. Clear the appropriate Suppress Zero Rows, Columns, and Pages check boxes. 5. Ctrl+Click the highlighted items to clear the selection in the Suppress Zero Items for D-List check box. 6. Click OK. 7. Save the D-Cube. Note: Reset Structure resets the zero suppression settings back to the last saved version of the D-Cube.
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Options. 3. Click the Widths tab. 4. Set the column width in number of characters. This includes the digits, comma delimiters, decimal point, currency and other suffixes and prefixes. The default is a minimum of nine characters. 5. Click Minimum to use the widths setting as the minimum column width, but allow for expansion as needed to fit the largest number. 6. Click Show Column Labels to show the column labels in full. This will automatically widen each column to fit the label. The default is to truncate the column labels according to the width setting. The Show Column Labels option is not available if the width is set to Exact. 7. Click Exact to use the width setting as an exact column width.
166 Analyst
Chapter 8: D-Cubes This sets all columns to the same width. This looks neat but will not allow for expansion of the columns to fit large numbers. If the width of the largest number exceeds the Exact width setting, then a series of ####### symbols will appear and you must increase the width setting. 8. Set the row Width in number of characters. This includes the digits, comma delimiters, decimal point, currency and other suffixes and prefixes. The default is a minimum of 5 characters for the row labels. 9. Click Minimum to use the row widths setting as the minimum number of characters, but allow for expansion as needed to fit the longest label. 10. Click Exact to use the width setting as an exact row width. 11. Click OK. The width settings may be saved with the D-Cube.
Annotate a Cell
You can attach a note to any cell regardless of its format. This is particularly useful for providing additional information regarding a particular cell.
Steps
1. Open or create a D-Cube. 2. Click the appropriate cell, then from the D-Cube menu, click Annotations, Add/Edit. 3. Type in the annotation. A red dot in the top right corner of the cell indicates that a comment or annotation is attached.
Steps
1. To view or edit a single cell annotation, right-click the required D-Cube cell and select Edit Annotation or Show Annotation. The name of the person who last edited the annotation is displayed together with the date and time it was altered. By clicking the D-Cube menu, pointing to Annotations, and then selecting Show, you will see the annotation in a single cell. 2. To view all cell annotations, from the D-Cube menu, click Annotations, Browse All.
Chapter 8: D-Cubes
Steps
1. To remove annotations for single cell, right-click a cell and select Delete Annotation. 2. To remove annotations for a range of cells, highlight a range of cells, then from the D-Cube menu, click Annotations, Delete.
Steps
1. Open a D-Cube and make a selection. 2. From the File menu, click Print or Print Preview. In the Annotations area, select or clear Print at the bottom of the page.
Edit Data
You can edit the data in a D-Cube by Typing directly in a cell Applying D-Cube commands (p. 173) Running D-Links
If a cube is open when the data changes are made, they will not be saved until you save the D-Cube. Changes made to a closed D-Cube are saved automatically. You can alter the appearance of data within a D-Cube by applying formats To individual D-List items (p. 117). Globally to the whole D-Cube (p. 191).
168 Analyst
Chapter 8: D-Cubes
Raises the value to the power of two. Holds the value to protect it from breakback. Releases or removes the hold. Locks or write-protects the value (can be shortened to l). Grows the value by 10 percent per period linearly (works with time periods only). Grows the value by 10 percent per period compounded (works with time periods only).
grow10compound
gro10li
Tip: Typing the word reset over a cell resets the number back to the saved version. Also, typing reset>, reset<, reset>|, reset ^, reset| resets cells to the right, left, above, and below.
170 Analyst
Reset Data
You can reset an entire D-Cube if you have not saved the changes. If you reset data by typing reset in a cell, you can also combine this command with copy commands to reset an entire row or column.
When you reset individual cells in this manner, you can use reset in conjunction with the operators used to copy data.
Chapter 8: D-Cubes The selected range of cells revert to the saved version of the data.
Command
ESC
Recovery Action
Clears a green number (numbers typed in but not yet entered). Retraces one step at a time. Goes forward one step at a time. Reverts the cell data to the last saved version. Resets a selected cell to the last saved version.
Undo Redo Reset Right-click a cell, and then click Reset Reset from Apply to subselection dialog box
172 Analyst
Chapter 8: D-Cubes
Command
Reset Structure
Recovery Action
Resets a D-List contained in the D-Cube without changing the data. Resets data to the last saved version; it does not reset the D-Lists. Closes the file without saving.
Close
D-Cube Commands
Ranges of data can be operated on using commands from the Commands menu.
Commands Menu
The available commands are zero, set, add, subtract, multiply, divide, percent, increase, decrease, reset, hold, release, lock, unlock, protect, unprotect, power, random and round.
Menu Command
Syntax example
Meaning
0 99
Add amount to underlying 1010 values Subtract amount from underlying values 990
Subtract
subtract10
Multiply
multiply1.2
Multiply underlying values 1200 by an amount Divide underlying values by 500 an amount Take a percentage of underlying values 100
Divide
divide2
Percent
percent10
Increase
increase10
Chapter 8: D-Cubes
Menu Command
Syntax example
Meaning
Decrease
decrease10
Decrease underlying values 900 by a percentage Reset range to last saved version Last saved version
Reset
reset
Hold
hold
Hold the range of cells Blue background against breakback (p. 151) Cells can still be changed by entering or copying data or by D-Links.
Release
release
Lock
lock
Write protect the range. Grey background Cells can still be changed by breakback but not by entering data or by D-Links Removes the locks on a range Grey background removed
Unlock
unlock
Protect
protect
Protects the range against Yellow background data entry by manual typing. The cells can still be changed by breakback or by D-Links. Removes the protects on a Yellow background range removed Raises the underlying values 1000000 to the power specified Changes the underlying values to random integers between zero and the number specified Random integer between zero and 100
Unprotect
unprotect
Power
Power2
Random
random100
174 Analyst
Chapter 8: D-Cubes
Menu Command
Syntax example
Meaning
Round
Round10
Rounds the underlying values to the nearest number specified If you round a total, a breakback will be triggered, altering the details so that they add up exactly to the rounded number.
1000
Apply Commands
You can apply commands to a range of cells on the same page or to a range of cells across multiple pages of a D-Cube.
Steps
1. Open a D-Cube. 2. Select the range of data you want to change. 3. Right-click the selected range. 4. Select Apply Commands. 5. In the Apply to Range dialog box, select a command from the list. This command operates on the selected range. Most of the commands require you to type a number after them. 6. To calculate, click OK. In this example, increase15 increases the values in the highlighted range by 15 percent. Increase and decrease apply a percentage change to the underlying values, not an absolute change. Most of the commands are intuitive: add100 adds 100 to the number in every cell in the range; set1000 sets the number 1000 in every cell in the highlighted range. The commands operate on the selected range only. Changed numbers display in red.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Selections, Reselect. 3. To select everything in the current D-List, click Clear. 176 Analyst
Chapter 8: D-Cubes 4. Repeat steps 1 through 3 for the remaining D-Lists in the D-Cube. 5. Click OK.
Steps
1. From the D-Cube menu, click Commands. 2. In the Apply to subselection of dialog box, select unlock, and then click Select All. 3. Click OK.
Steps
1. From the D-Cube menu, click Commands. 2. In the Apply to subselection of dialog box, select unprotect, and then click Select All. 3. Click OK.
Steps
1. From the D-Cube menu, click Commands. 2. In the Apply to subselection of dialog box, select zero, and then click Select All. 3. Click OK. 4. Save the D-Cube.
Chapter 8: D-Cubes 2. Right-click the row or column label you want to set to zero. 3. Select Apply Commands. For information on commands, see "Change Ranges of Data Using Menu Commands" (p. 178). 4. In the Apply to Range dialog box, select zero from the list. 5. Click OK. The entire selection is set to zero.
Paste Holds, Locks, Protects, You can copy and paste Holds, Locks, and Protects patterns from or All one D-Cube to another D-Cube, or all three patterns at once. Protect You can write protect a cell against manual entry or copying from the clipboard.
178 Analyst
Chapter 8: D-Cubes
Remove the write protect from a cell. Locks or write-protects a range against data entry. Removes the locks from a range of data. Holds a range of data against change through breakback. Removes the holds from a range of data. Resets the range back to the saved version. Operates on the highlighted range. The commands available are zero, set, add, subtract, multiply, divide, percent, increase, decrease, reset, hold, release, protect, unprotect, lock, unlock, power, random, and round.
Add Annotation
Meaning
Set range to zero Set range to a value Add amount to underlying values Subtract an amount from the underlying values
0 99 1010 990
multiply1.2 Multiply underlying values by an amount divide2 percent10 increase10 decrease10 Divide underlying values by an amount Take a percentage of underlying values Increase underlying values by a percentage Decrease underlying values by a percentage
Chapter 8: D-Cubes
Meaning
Reset range to last saved version Hold range against breakback Remove the holds on a range of cells Write-protect the range Remove the locks on a range of cells Raise the underlying value to a specified power
Gray background
1000000
180 Analyst
Chapter 8: D-Cubes
Hold Data
Hold is a type of control used to prevent breakback in a cell or a range of cells, but does not prevent data entry. Any user with Write access can remove the hold control from a D-Cube.
Steps
1. Open a D-Cube. 2. Choose whether to hold or release a cell: To hold a cell, type the word hold or H directly into the cell and press Enter. The letter H suffices instead of hold. To release a cell from Hold, type the word rel directly into the held cell and press Enter.
Steps
1. Select the range of cells you want to hold or release. 2. Right-click the selected range. 3. To apply a hold, select Hold. The held cells display with a light turquoise background. 4. To release the hold, click Release. The blue background disappears to indicate that the hold has been removed.
Chapter 8: D-Cubes 3. From the list of commands, select hold. 4. Click Select. 5. In the Choose subselection dialog box, do the following: In the Items available list, select the desired items, and then click Move>> to move the selected items to the Items included list. Repeat for all D-Lists. Click OK.
6. In the Apply to subselection dialog box, click OK. The held cells display with a light turquoise background.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Commands. 3. From the list of commands, select lock or protect. 4. Click Select. 5. In the Choose subselection dialog box, do the following: In the Show box, select Formula. In the Items available list, select the desired items, and then click Move>> to move the selected items to the Items included list. Note: As a rule, do not repeat the selection of formulas for other D-Lists or you will end up locking just a few grand totals, not the desired result at all. Instead, leave the other D-List selections blank to mean 'select all'. Click OK.
182 Analyst
Protect Data
You may write-protect a cell or range of cells to prevent data being from entered manually by applying the Protect command. Protect differs from Lock in that data can still be transferred into a protected cell via a D-Link but you may not type data into a protected cell. By contrast, locked cells prevent data entry entirely whether by typing or via a D-Link. Protected cells are still vulnerable to break back if entering data into a subtotal that has a protected cell as one of its components (The Hold command is used if you want to prevent a cell from being altered by a break back).
Command
Protect Lock Hold Protect and Hold Lock and Hold
Background Color
Yellow Light Gray Light Turquoise Dark Green/Blue Dark Gray
Lock Data
Lock is used to prevent data entry and data loading, but does not prevent breakback.
Chapter 8: D-Cubes You can type the word lock directly into an individual cell. This can be used in conjunction with the operators used to copy data. You can select a range, right-click it, and then select Lock from the shortcut menu. You can apply the lock to a selection of items in each D-List by clicking Commands from the D-Cube menu, and then clicking lock. This commands method is the most common method because it applies a lock to a selection across the entire D-Cube rather than to individual cells or rows and columns. Note: Like any command, locks can be applied only to a subset of the current selection. Ensure you have reselected all the D-List items you need before applying the locks or unlocks. In particular, this applies to unlocking cells using the Select All command, which selects all items from the current selection, not necessarily the entire D-Cube.
4. Click Select. 5. In the Choose subselection dialog box, in the Items available list, select the desired items, and then click Move>> to move the selected items to the Items included list. 6. Repeat for all D-Lists. 7. Click OK. You are returned to the Apply to subselection dialog box. 8. In the Apply to subselection dialog box, click OK. Locked cells display with a gray background. If the D-Cube is unlocked, the gray background disappears to indicate that the lock has been removed.
184 Analyst
Chapter 8: D-Cubes The gray background disappears to indicate that the lock has been removed.
Steps
1. Open a D-Cube. 2. Type the word lock directly into the cell and press Enter (the letter L suffices instead of lock).
Steps
1. Open a D-Cube. 2. Select the locked, held, or protected cell or range of cells you want to copy. 3. Right-click the selected cell or range of cells and select Copy. 4. Select the cell or range of cells where you want to copy the hold, lock or protect patterns. 5. Right-click the selected cell or range of cells and click Paste Holds, Paste Locks, Paste Protects, or Paste All.
Round Command
The Round command lets you round a selection of D-Cube cells to multiples of any number. If you type round1 into a cell, it rounds to integers. Typing round100 into a cell will round to the nearest 100. And typing round0.1 rounds to one decimal place, and so on. Any rounding factor is allowed, and will always round to the nearest multiple of the number that you entered. If you type round12, it will round to the nearest dozen. Note: Rounding should not be applied to D-List formatted or date cells as it will round the underlying ID or date value respectively.
Chapter 8: D-Cubes Rounding is also available using right-click > Apply Commands, or by selecting Commands from the D-Cube menu. Rounding can be put in a macro using the @DCubeCommand macro. You can also round any selection of cells, including totals. If you round a total, a breakback will be triggered, altering the details so that they add up exactly to the rounded number. The Round command is available in Analyst, Manager and Analyst for Excel.
Export Data
You may export data from a D-Cube in a variety of formats. The data must be in a format that is readable by the program to which you are exporting.
D-Cube Export
You may export data from a D-Cube to a text file (ASCII file) or to the clipboard.
186 Analyst
Chapter 8: D-Cubes If you click the Dimension Order button, the export column order is set according to the underlying order of D-Lists in a D-Cube. It is independent of the current orientation of rows, columns and pages in the view you happen to have open. You may control the dimension order manually using the arrow buttons at the bottom of the export screen. Tip: When exporting from Analyst to Cognos Planning - Contributor it is much easier if you export in Dimension Order. It means you can export directly without having to go into SQL Enterprise Manager at all. Because Dimension Order is the default, you can run the Actuals.dts directly without having to change the dimension mapping in Data Transformation Services. Plain Number Format Removes any numeric formatting for the purposes of export. It exports to as many decimal places as are needed, up to the limit stored on the computer. Negative numbers will be prefixed by a minus sign and there will be no thousand separator or percent signs currency symbols or other numeric formats that have been applied on the D-List or D-Cube. Plain Number Format uses the full-stop as the decimal separator unless Apply Regional Settings overrides this. Text, D-List or date formatting will remain as displayed in the D-Cube view. Apply Regional Settings Examines the regional options (set in Control Panel) and uses this format for the thousand and decimal separator. For example, in Germany the number one thousand two hundred and thirty four point five six gets exported as 1.234,56, whereas in the UK and the USA, the same number has 1,234.56 as the export format. Pipes As Spaces The pipe symbol is used to mark a line break for wrapping column headers in Analyst. If you check Pipes as Spaces, the pipe symbol ( | ) gets replaced by a space on export. This is useful for exporting from Analyst to Contributor. Text Qualifier You can specify the text qualifiers for exporting text strings. These can be set to none, double quote or single quote by selecting from the Text Qualifier drop-down box. The text qualifier will be put around D-List items, text, and D-List formatted data cells. The default setting is none. Plain number format relates to exporting numbers. It will not control whether or not text qualifiers appear. The format for plain number format uses the regional setting in Control panel for the decimal separator, to set the number of decimal places to the minimum number to ensure complete accuracy, to use no thousand separator, and to show negative numbers with a leading minus sign and have no prefixes or suffixes. In the DCubeExport macro, the new parameter is added: TextQualifier = single, double, or none. This is not case-sensitive.
Chapter 8: D-Cubes Note: If you have old macros that relied on the plain number format putting double quotes around the text strings, you may need to change these by inserting the option TextQualifier=double in the macro, but usually this is not necessary. Special Cases for text qualifiers If the name contains the text qualifier, it will double up the offending character to avoid ambiguity. For example: If you are exporting a text field containing 1/2" Drill bits to a file that uses double quotes as the text qualifier, it gets exported as "1/2"" Drill bits". Again, if a single quote is used in the name and as a qualifier, it gets doubled up for the export. So 12' ladder exported to a file with a single quote as the text qualifier will repeat the single quote to appear as '12" ladder'. Important: The only way to export numbers with comma delimiters is to use plain number format, or select a file separator other than a comma. Leading blanks Leading blank spaces are not stripped out when you export text or D-List-formatted cells. The Header/Footer tab contains the following options: You may insert your own header/footer to appear at the very top/bottom of the export file. The Zeros tab contains the following options: Suppress Zero Pages You can suppress zero pages for the export, independently of the zero-suppression currently in force in the view you have open on the screen (set under D-Cube>Options). Zero suppression is dimension specific. To suppress zero rows, highlight the dimension labelled R. To suppress zero columns, highlight the dimension labelled C. To suppress zero pages on all dimensions, select Suppress Zero Pages. To suppress zeroes everywhere, highlight all the dimensions and select Suppress Zero Pages. Note: Zero suppression of page dimensions requires Suppress Zero Pages to be selected. It is not sufficient to just put the zero suppression on the dimension. For multiple-column exports, suppression of zero columns is disallowed. This is essential to preserve the correct number and sequence of columns exported in a multiple-column export. Note: There is a special case where a row of zeroes gets exported even though Zero Suppression is ON. This occurs if Zero Suppression is OFF for the page labels, but ON for the row dimension. In this case, a blank page containing just the first row will still get exported. Zero-suppression on export is independent of the zero suppression set on the D-Cube. The Show Det/Tot tab contains the following option:
188 Analyst
Chapter 8: D-Cubes If you have chosen an Empty selection on a dimension (empty selections meaning All Items in this context), you can hide details or totals for the purposes of export. This option is dimension specific. This allows you to cut down the data volumes for the export file.
Chapter 8: D-Cubes
Export to a Spreadsheet
The procedure for exporting data to a spreadsheet via the clipboard is almost identical to exporting via an ASCII file. Then only difference is that the data recorded with the clipboard is temporary, while data recorded in an ASCII file is permanent. Before exporting data, it must first be formatted. See "Format Prior to Export" (p. 189).
Steps
1. Open a spreadsheet. 2. Export the data from your D-Cube (p. 186). If you exported to an ASCII file, click the File menu, and then click Open. The exact syntax for importing from an ASCII file will vary depending on the version and spreadsheet. Name the file as preferred. Remember to change the search to all files (*.*) or it may search for files of the type .xls, .wk4, and so on. If you exported to the Clipboard, click the Edit menu, and then click Paste.
The file will be imported into the spreadsheet. Formulas and formatting are neglected. Blank lines may need to be inserted to separate different sections.
AutoSum
If you highlight a range of cells in a D-Cube view, the sum of the numbers highlighted is automatically displayed in the status bar at the bottom of the screen. This sum stays there until a different range of numbers is highlighted. You can choose from a list of predefined functions that return a single summary value for a group of related values.
Steps
1. Open a D-Cube and from the D-Cube menu, select Options, and then click the AutoSum tab. 2. Choose the type of summary value you want to show: To show the calculated value that represents the sum of the selected data items, click Sum. To show the average value of the selected data items, click Average. To show the number of selected data items, click Count. To show the minimum value of the selected data items, click Minimum. To show the maximum value of the selected data items, click Maximum.
3. Click OK. The summary value of the highlighted cells is displayed in the status bar at the bottom of the screen.
190 Analyst
Chapter 8: D-Cubes
Steps
1. Open a D-Cube. 2. Move the cursor to the point where you want to start searching, then from the Edit menu, click Find. 3. Type in the exact text you want to find. 4. You can search down a column or across a row by clicking the check boxes in the Keep Fixed area. 5. Select the Match Case check box to match the case of the text you entered with the text displayed on screen. 6. To jump to the next occurrence of the text string, from the Edit menu, click Find Next.
Formats
A format sets the form in which data displays and can be in numeric, date/time, or D-List (text) format. Use numeric formats (p. 112) to set decimal places, insert thousand delimiters, set braces for negative numbers, and set prefixes and suffixes. Use date and time formats to display dates and times (such as 6-Jul-97) as data in a D-Cube. Use D-List formats (p. 117) to enter text, restricting the text to the codes and names displayed in a selected D-List. Free text formats (p. 118) are allowed. You can name and save formats for repeated use.
Chapter 8: D-Cubes To load a global format, select a format from the Format Type box, and then click Load. Select an existing saved format, and click OK. To remove a global format, select None in the Format Type box.
3. Click OK to apply. Note: If formats still remain after removing the global D-Cube format, they are local formats applied to items in the D-List. These can be removed by opening the D-List and setting the format on each item to <None>.
Steps
1. Open a D-List. 2. Click the Format cell of the item you want to set decimal places to. 192 Analyst
Chapter 8: D-Cubes 3. Select Numeric from the Attribute list. 4. In the Prefixes or Suffixes areas, make your changes.
Steps
1. Open a D-List. 2. Click the Format cell of the item you want to apply a numeric format. 3. Select Numeric in the Attribute list.
D-Cube Selections
Using selections from a D-Cube allows you to hide rows, columns, or pages. This enables you to work on a subset of the data contained in a D-Cube. Saved selections may be used to save a specific D-Cube orientation. When selecting D-Lists for a D-Cube, the order of selection does not affect which D-Lists end up as rows or columns. In practice, the default setting designates the longest D-List as row labels, and any timescale D-List, or if there is no timescale D-List, the second longest D-List as column labels. This can be changed by transposing rows, columns, and pages as needed. However within a saved selection you are allowed to choose the D-Lists used as rows and columns so that the cube opens with your specified orientation. When a selection of a D-Cube is open, D-Links will only update the current selection. Global commands to change the data applied across a D-Cube will only affect the D-List items in the current selection. Working with a selection provides processing advantages by limiting memory usage for very large D-Cubes. However, if you select totals, the underlying detail items also require memory. A D-Link that needs to copy data to or from a total will also require memory.
Expanded Selections
When you open a limited selection from a D-Cube, only the items you selected are displayed in the D-Cube dialog box. If you have included formula items in your selection, however, an expanded selection may be opened internally, so that the selected formula items can be recalculated and broken back properly. Selections can also be used to do the following: Hide rows, columns or pages.
Chapter 8: D-Cubes Sort rows, columns, and pages. Apply commands to a selection of rows, columns, and pages. Select which items to paste into a formula. Select where to position new items. Select items to delete. Order a D-List. Select a range of rows, columns, and pages for print. Select a range of rows, columns, and pages to export to another program.
If a basic selection includes formula items, the expanded selection will also include all the items on which the selected formula items depend, either directly or indirectly. For example, consider a Months D-List that contains twelve detail items (Jan, Feb, Mar, and so on), four quarterly totals (Q1 = Jan + Feb + Mar, and so on), and one full year total (Full Year = Q1+Q2+Q3+Q4). If you open a D-Cube containing this D-List and select only Q1 from MONTHS, the expanded selection will include Q1 and Jan, Feb, and Mar. If you select only Full Year, the internal expanded selection will include all items in the MONTHS D-List. Remember that Analyst does not save calculated data in the D-Cube when it is closed; data in formula items is only recalculated when required. Selections can be saved for later use. For example, a retail chain might wish to group similar stores into a selection so that budgeting assumptions can be applied to the selection of stores without having to modify each page of data.
Creating a Selection
Various methods are available for creating a selection depending on whether the D-Cube is currently open.
Blank Selections
If the Items included list in the Selection dialog box is left completely blank, every item in the list will be selected. For saved selections, leaving the Items included list blank selects everything including future insertions of extra D-List items. There is a subtle distinction between blank selections and selecting every item: Blank selections from a D-List will select all items; so if items are added, the new items will be loaded with the saved selection. If, however, you save a selection that shows all the D-List items in the Items included list, new items will not be inserted when the saved selection is loaded.
194 Analyst
Chapter 8: D-Cubes
To facilitate selection especially from long D-lists, the following features are available:
Chapter 8: D-Cubes
Show Box
The Show box allows you to reduce the number of items in the Items Available list. It does not select items in its own right, but merely determines the choice of Items Available. Select All to show the full D-List. Select Detail to show detail items only - for example, all D-List items apart from formulas. Select Formula to show only the formulas. Select Filter to show a selection based on a keyword, initial letter, or a text search criterion. It filters the text in the D-List items only, not the values contained in the cells. Wildcard characters are allowed in the filter. Click And to show items that satisfy both criteria. Click Or to show items that satisfy either criteria. If Match Case is selected, it will further refine the filter to match on capitals or small letters.
The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria.
Order Box
The Order box sorts the Items available list to assist in selection. It does not sort the Items included list itself. The options are as follows: Normal - sorts by the normal D-List order. Alphabetic - sorts alpha-numerically. Rev Alphabetic - sorts reverse alpha-numeric. Totals - sorts by expanding the subtotals in the order they appear in the D-List.
Because the Order box only sorts the Items available list, any sorting using the Order box requires moving items from the Items available list to the Items included list by clicking Move >>. The Order by Totals feature is not available when reordering D-Lists permanently, but is available when reselecting from D-Cubes.
Steps
1. Select the appropriate items from the Items available list. Ctrl+Click to highlight non-adjacent items. Click All to select all items. Click Search to search for items (generally for long D-Lists). Click Expand to expand selected totals in either the Items Available list or the Items Included list.
196 Analyst
Chapter 8: D-Cubes Click Slice to specify the D-Lists top be used as rows and columns in the selection
2. Click Move >> to move the selected items to the Items Included list. A blank selection implies select all. 3. In the Items included list, click Sort to sort the items in the Items Included list. Use the Sort Arrows to sort the items. 4. Click Clear to clear the entire selection. 5. Click Reset to reset the selection back to its original format.
Save a Selection
Saved selections may be used to save a specific D-Cube orientation, including a selection of rows, columns and pages for later use. The selected items, sort order, and slice of the D-Cube are all saved in a named selection. When saving a selection, it is recommended that the selection name is similar to the D-Cube name.
Note: The program only knows you are working on a saved selection when you have just loaded it, edited it, and have not left the selection screen. So if you have accessed the main screen in between loading and saving, the program will not remember the name of the original selection. Consequently it will ask you for a new name regardless of whether you choose the Save selection or Save selection as options.
Chapter 8: D-Cubes 5. Name the selection. 6. Click OK when prompted. 7. To recall a saved selection, load (p. 198) the selection.
198 Analyst
Chapter 8: D-Cubes
Because Order sorts only the Items Available list, any sorting using Order must be followed by Move >> to move the ordered items to the Items Included list. The Order by Subtotal feature is not available when reordering D-Lists permanently, but is available when reselecting from D-Cubes. 6. Select the appropriate items from the Items Available list. Ctrl+Click to highlight non-adjacent items. Click All to select all items. Note: Clicking All applies the selection, but does not specify whether the selected items are to be included or not. After clicking All, the selected items must be moved to the Items Included list or the Items Available list using Move. Click Search to search for items (generally for long D-Lists). Wildcard characters are allowed in the filter. Use a question mark (?) to represent any single character. Use the multiplication symbol (*) to represent any series of characters. Click And to show items that satisfy both criteria. Click Or to show items that satisfy either criteria. If Match Case is selected, it will further refine the filter to match on capitals or small letters. The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria.
Chapter 8: D-Cubes Click Expand (p. 157) to expand selected totals in either the Items available list or the Items included list. Click Slice to choose which D-List you would like to appear as rows and which you would like to have as columns. The Slice command is similar to the pivot command in certain spreadsheets, but much more extensive in its scope. The orientation of a D-Cube can be changed so that pages become columns, rows become pages or columns become rows. In fact, any orientation is possible. For four and five-dimensional D-Cubes, simply choose any two of the D-Lists to make up the rows and columns, leaving the other D-Lists to become pages. The slice can be saved with a named selection. 7. Click Move >> to move the selected items to the Items included list. A blank selection (p. 194) implies select all. 8. In the Items included list, click Sort to sort the items in the Items included list. Use the Sort Arrows to sort the items. The D-List order is the default order that rows, columns, and pages will appear in the absence of any numerical or other sort. Generally, the D-List order is the order that items were typed into the D-List when it was first created. Normal is for the order held in the D-List. Alphabetical for alpha-numeric. Rev Alphabetical is for reverse alpha-numeric. 9. Click Clear to clear the entire selection. This is made permanent only when you save an object. 10. Click Reset to reset the selection back to its original format. Clicking Reset reverts to the last saved version you were working with, not necessarily the saved selection. This can be applied to data in individual cells, to a highlighted range on the current page, to a global range across a D-Cube, or to an entire D-Cube. The reset command can be applied to the data, the D-Cube structure, or both. Resetting the structure of a D-Cube allows you to cancel changes that have been implemented (not saved) in the underlying D-Lists as well as any D-Cube sorts and formats. For more information about resetting the structure of a D-Cube, see "Reset the Structure of a D-Cube" (p. 206). Note: Reset does not reset a slice. 11. Ensure any items you want to show are in the Items included list. 12. Click OK.
200 Analyst
Chapter 8: D-Cubes 2. Click the appropriate D-List tab. 3. Make your selection from the Show box. Select All to show the full D-List. Select Detail to show detail items only, such as all D-List items apart from formulas. Select Filter to show a selection based on a keyword, initial letter or a text search criterion. It filters the text in the D-List items only, not the values contained in the cells. 4. Make your selection from the Order box. Normal - sorts by the normal D-List order. Alphabetic - sorts alpha-numerically. Rev Alphabetic - sorts reverse alpha-numeric. Subtotal - sorts by expanding the subtotals in the order they appear in the D-List.
Because Order sorts only the Items Available list, any sorting using Order must be followed by Move >> to move the ordered items to the Items Included list. The Order by Subtotal feature is not available when reordering D-Lists permanently, but is available when reselecting from D-Cubes. 5. Select the appropriate items from the Items available list. Ctrl+Click to highlight non-adjacent items. 6. Click All to select all items. Note: Clicking All applies the selection, but does not specify whether the selected items are to be included or not. After clicking All, the selected items must be moved to the Items Included list or the Items Available list using Move. 7. Click Search to search for items (generally for long D-Lists). Wildcard characters are allowed in the filter. Use a question mark (?) to represent any single character. Use the multiplication symbol (*) to represent any series of characters. Click And to show items that satisfy both criteria. Click Or to show items that satisfy either criteria. If Match Case is selected, it will further refine the filter to match on capitals or small letters. The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria. 8. Click Expand (p. 157) to expand selected totals in either the Items available list or the Items included list. 9. Click Slice to choose which D-List you would like to appear as rows and which you would like to have as columns. The Slice command is similar to the pivot command in certain spreadsheets, but much more extensive in its scope. The orientation of a D-Cube can be changed so that pages become columns, rows become pages or columns become rows. In fact, any orientation is possible. For
Chapter 8: D-Cubes four and five-dimensional D-Cubes, simply choose any two of the D-Lists to make up the rows and columns, leaving the other D-Lists to become pages. The slice can be saved with a named selection. 10. Click Move >> to move the selected items to the Items included list. A blank selection (p. 143) implies select all. 11. Look at the Items Included list: 12. Click Sort to sort the items in the Items Included list. 13. Use the Sort Arrows to sort the items in the Items Included list. Click Clear to clear the entire selection. 14. Click Reset to reset the selection back to its original format. Clicking Reset reverts to the last saved version you were working with, not necessarily the saved selection. This can be applied to data in individual cells, to a highlighted range on the current page, to a global range across a D-Cube, or to an entire D-Cube. The reset command can be applied to the data, the D-Cube structure, or both. Resetting the structure of a D-Cube allows you to cancel changes that have been implemented (not saved) in the underlying D-Lists as well as any D-Cube sorts and formats. For more information about resetting the structure of a D-Cube, see "Reset the Structure of a D-Cube" (p. 206). Note: Reset does not reset a slice. 15. Ensure any items you want to show are in the Items included list. 16. Save the selection by clicking Save on the Selection screen. 17. Click OK to return to the edited D-Cube.
Manage D-Cubes
Memory Management
For very large D-Cubes, you may see a message that states Workspace full, or Memory running low. To increase the maximum capacity, switch off the stored copy. This has the effect of switching off the colors. You have increased memory usage when the program displays changed numbers in red, because it compares two versions side by side in memory. By removing this facility, you effectively double the capacity of the largest D-Cube. The ability to reset the whole D-Cube back to a stored version remains unaffected, although reset will not be available on individual cells or selections.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Options and then select the Stored Copy tab. 202 Analyst
Chapter 8: D-Cubes 3. Clear the Create Stored copy check box. The size of the D-Cube you open increases by a factor of up to two, but it no longer displays changed numbers in different colors.
Steps
1. Open the D-List. 2. Double-click the item name or press f2 while in the Item name column. 3. Type a pipe symbol ( | ) where you want to indicate a new line. 4. Repeat as necessary. The D-List item splits onto a new line when it appears as a column label. The pipe symbol is not usually visible except in references to the D-List item such as in formulas. 5. Save the D-List.
Chapter 8: D-Cubes 3. Choose whether to show or hide Totals or detail items: To hide totals or details, click Hide Totals or Hide Details from the menu. To show totals or details, click Show Totals or Show Details
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Sort. 3. Select the D-List from the Sort Items in D-List box. 4. Click Edit Selection to select specific D-List items. Make your changes in the Select Items to Sort dialog box. 5. Click Ascending or Descending to sort the data in ascending or descending order. Note: The Select items to sort dialog box is identical to the Selection dialog box. For more information about the selection dialog box, see "Facilitate Selection Using the Selection Dialog Box" (p. 195). 6. Select the D-List from the Based on Contents of D-Lists box. 7. Click the Item Name box and select an item on which you will base the sort. 8. Click OK. 9. Click OK in the Sort Options dialog box.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Sort. 3. Select the D-List from the Sort Items in D-List box. 204 Analyst
Chapter 8: D-Cubes 4. Click Edit Selection to select specific D-List items. Make your changes in the Select items to sort dialog box. 5. Click Ascending or Descending to sort the data in ascending or descending order. Note: The Select Items to Sort dialog box is identical (except for the title) to the Selection dialog box. 6. Select the D-List from the Based on Contents of D-Lists box. 7. Click the Item Name box and select an item on which you will base the sort. 8. Click OK. 9. Repeat this procedure for a second D-List in the same D-Cube.
Slice a D-Cube
You can re-orient a D-Cube to change the business perspective of your data.
Steps
1. Open the appropriate D-Cube. 2. From the D-Cube menu, click Selections, Reselect - or -
Chapter 8: D-Cubes Click the Reselect D-Cube button. 3. Click Slice, and then select the D-Lists to make up the rows and the columns. 4. Click OK.
Steps
1. Open a D-Cube. 2. Click the Transpose button. 3. To revert back to the original configuration, click the Transpose button again.
206 Analyst
Chapter 8: D-Cubes
Steps
1. From the File menu, click Open, D-Cube. 2. Select the D-Cube to open. 3. Select Full when prompted. 4. Click OK. All D-List items are selected including any new ones that have been added since you last opened the D-Cube.
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Dimensions, Add. 3. Click Yes when prompted. 4. In the Select D-List to add dialog box, click the appropriate library. 5. Click the appropriate D-List.
Chapter 8: D-Cubes 6. Click OK. 7. In the Select the position for the new dimension dialog box, select the order in which you would like the D-List added (row, column, or end of list). Note: When selecting the order, keep in mind that this may affect the order of D-List priority. 8. Click OK. 9. In the Select the item to which the current data belongs dialog box, select the appropriate items from the Items available box, and then click Move >>. Note: The program will incorporate the existing data from the D-Cube into the selected item. However, when adding a D-List containing subtotals, the subtotal cannot be chosen because a break back is not possible. For example, suppose the value for Monthly Sales Staff on Hand is seventy-eight. If you were to add a Months D-List and specify Full Year (which is the sum of all the months), the program would not allocate 78 pro-rata across the months. 10. Click OK. If the Items Included list in the Selection dialog box is left completely blank, all items from the Items Included list will be selected. 11. Click OK again. 12. Save the D-Cube.
If the Items included list in the Selection dialog box is left completely blank, the program will select everything. 6. Click OK. 7. Save the D-Cube.
208 Analyst
Chapter 8: D-Cubes
Steps
1. Open a D-Cube. 2. From the D-Cube menu, click Dimensions, Substitute. 3. Click Yes when prompted. 4. Select a D-List in the Select D-List to use as a substitute dialog box. 5. Click OK. 6. Select the dimension (a D-List from the D-Cube) to substitute. 7. Click OK. 8. Pair the items in the Old->New: Match Items dialog box. If a calculated item in the old list is being replaced by a detail item, then carry out the following procedure prior to substitution. In the old D-List, enter a new dummy detail item for every calculated item to be replaced. Use an internal D-Link to copy the D-Cube data from the calculated items to the new detail items you have inserted. On substitution match these new detail items with the detail items in the new list. Summation does not calculate weighted averages when substituting D-Lists. Assume you want to substitute a Months D-List with a Quarters D-List (as in this example): Suppose the item Unit Price is a weighted average, weighted by number of units sold. In each of the three months in a quarter the unit price is 10. When you add three months worth of Unit Price to go into one quarter, the values will be summed to display 30 ((10 + 10 + 10), which is incorrect. The correct average figure is 10. When substituting D-Lists that contain weighted averages, it is better to enter a subtotal and a corresponding detail item to which to link the data (as above) prior to substitution so that a one-to-one match is possible. 9. Click OK.
Chapter 8: D-Cubes Note: Data will be lost if you do not define a replacement match for each of the old D-List items. Although the substitution will make D-Links, macros and selections refer to the new D-List. The allocation table that defines how old and new D-List items correspond will not be used to update these objects. Consequently all D-Links, Selections and Macros must be checked and edited after a substitution of a D-List so that the items correspond.
Steps
1. From the File menu, click Libraries, D-Lists. 2. Click the Show objects that the selected object(s) is used by button to reveal the D-Cubes and other objects that use the selected D-List 3. Click the down arrow button to select all the D-Cubes, D-Links and other objects that use the old D-List. 4. Right-click and select Substitute D-List. 5. Select the new D-List to be used as a substitute. 6. Select the old D-List to be replaced. 7. Set up the correspondence between the old D-List and the new D-List, and then click OK. You will be prompted to confirm the substitution of the D-List in the objects selected. 8. Click Close to return to the main screen.
210 Analyst
Chapter 8: D-Cubes If a D-List is deleted, the old D-Links will not function. For example, suppose you were to delete an existing D-List. If you attempt to run the D-Link you will receive the message "D-List xxxxx has been deleted from the D-Cube. The D-Link must be edited." When you edit the D-Link a message will appear saying "The dimension xxxxx can no longer be found in the D-Cube. The D-Link will be updated accordingly". Click OK and edit the D-Link.
Priority Rule 1
Always set percentages, ratios, prices, and any per unit measure as weighted averages that are weighted by the denominator. For example, price per unit must be weighted by the number of units.
Priority Rule 2
When setting up the D-Cube, choose the D-Lists in an order that uses the calculation D-List first and the aggregation D-Lists last. For example, a typical D-Cube is set up to use four D-Lists in the order: P&L Divisions Time Actual/Budget/Variance
This ensures that the additions along the Time dimension override formulas of equal priority on the P&L dimension. Variances are calculated last. This is of particular importance when using IF THEN ELSE formulas on the P&L dimension. Generally, conditional formulas should have low priorities.
Priority Rule 3
As a last resort, change the individual priorities of formulas so that the results come out correctly. In practice, changing formula priorities is very rare, but setting weighted averages is a common occurrence.
Steps
1. Open a D-Cube.
Chapter 8: D-Cubes 2. From the D-Cube menu, click Dimensions, Reorder. 3. To change or view the existing order, click Yes. Note: Although you are told that the operation cannot be undone using the undo facilities, you can always repeat the operation backward to reset the order to the original. 4. In the Reorder dimensions dialog box, select the new order of D-Lists using the arrows. 5. Click OK.
Keys
Arrow Keys Tab Home Ctrl+Home End+Home Page Up Page Down Ctrl+Page Up Ctrl+Page Down
Action
Move one cell to the left, right, up, or down Move one cell to the right Move to the beginning of the current row Move to the top-left corner of the page Move to the bottom-right corner of the page Move up a screen, remaining on the current page Move down a screen, remaining on the current page Move to the previous page Move to the next page
Use the mouse to scroll quickly around the D-Cube by clicking the desired cell. To jump to a cell that is off the screen, drag the scroll bars. Alternatively, click the label box of a D-List and jump to a new row or column.
212 Analyst
Chapter 8: D-Cubes five-dimensional D-Cubes you are simply selecting two dimensions to make up the rows and column labels, leaving the remaining dimensions to make up the pages. However it is important to note that within analyst it is not possible to have multiple or laminated dimensions making up the rows or columns. To do this, you must use Manager or the Analyst for Excel.
Steps
1. Click the page label box (the four-headed arrow appears). 2. Drag the page label box to the center of a column heading. In the new slice, the old page labels become the new column headings (and vice versa). To view a new slice and end up on a specified page drag the four-headed arrow from the page label box to the column label box. of the item. For example, if you have a months D-List forming the columns in your current view and Versions forming the pages, and you wish to make Versions the columns and view the October page, then drag the four headed arrow over the October columns label.
Save D-Cubes
Saving a current cube saves any D-Cube formatting, lines, column and row widths, breakback mode, and zero suppression settings. User Guide 213
Chapter 8: D-Cubes You can also save a copy of an open D-Cube under a different name. The old D-Cube is closed and reverts to its last saved version. Any outstanding changes are saved in the new D-Cube, not in the old one. Unlike the copy facilities in the library, D-Links are not copied when the file is saved under a different name. To save any changes to the formulas in the D-Lists, the D-Lists must be saved.
Step
Choose whether to save an existing cube or save the cube under a new name: To save the existing cube, from the File menu, click Save. Clicking Save does not save the current slice and selection. To do this, from the D-Cube menu, click Selections, Save current. You must give the selection a name. You can load the selection at a later date when you reopen the D-Cube. To confirm the save of the D-Cube, click Yes. The data color changes from pink or red to blue and black (details and formulas) to show that the data is saved. Any changes after this display in pink and red for details and formulas, respectively. To save the D-cube under a different name, from the File menu, click Save As. Enter a new name. To return to the main screen, click OK. The old D-Cube closes and you now are working on the new D-Cube with a different name.
214 Analyst
Chapter 9: D-Links
A D-Link transfers data. The target of a D-Link can be an Analyst D-Cube, a cube in a Cognos Planning - Contributor application, or a Cognos Finance dimension. Where a D-Cube is the target, the source may be another D-Cube, a cube in a Contributor application (p. 276), a dimension in Cognos Finance (p. 285), an ASCII file, an ODBC database (p. 297), or a Cognos package (p. 218). Where the target of the D-Link is a Contributor cube, certain restrictions apply and the source can only be a D-Cube or another Contributor cube. Where the target of the D-Link is a Cognos Finance dimension, the source can be an Analyst D-Cube, or a Contributor cube. Where the source of the D-Link is a Cognos Finance dimension, the target can be an Analyst D-Cube, or a Contributor cube.
Note: Contributor or Cognos Finance must be installed to use them as a target or source of data in an Analyst D-Link. To use a Cognos package as a source, you must first create a model in Framework Manager and publish the model, or elements of it as a package. When you create a D-Link, you specify how the dimensions of the source and the target correspond. Analyst is ODBC enabled, so a D-Link can import data from any source for which an ODBC driver is available, for example, Microsoft Access, Excel, and databases such as Oracle and SQL Server. You can import data in ODBC databases directly into the D-Cube because the ODBC driver presents database data in a strictly defined format. When you import data from an ASCII file, you must first create a file map (p. 731) for the ASCII file to define how the file has been structured, for example, tab separated, and how the data in the ASCII file correspond to the dimensions in the D-Cube. You do not need to open a D-Cube to update the data in it with a D-Link. However the run D-Link icon on the toolbar is only operative if a D-Cube or D-link is open. The D-Link only transfers data when the D-Link is run. There are various ways to run a single D-Link or a batch of D-Links in a specified order. You must run batches of D-Links to update your model when external data or your assumptions change. You can execute batches of D-Links using the D-Links Update list, or using macros. D-Links for which the source is a D-Cube can be run inversely to transfer the relevant data from the target to the source. You can drill down on D-Cube data that was imported by saved D-Links. This displays the original source data, regardless of its source. You can run special lookup and accumulation D-Links to reorganize your data in D-Cubes that contains D-List formatted dimensions (virtual dimensions).
Chapter 9: D-Links
216 Analyst
Chapter 9: D-Links In addition to normal dimensions, a D-Cube may have virtual dimensions, which are introduced when one or more of the D-Lists making up a D-Cube contains D-List formatted items. All D-Lists used as format D-Lists appear as virtual dimensions when the D-Link lists the dimensions of a D-Cube. Virtual dimensions are readily distinguished in the D-Link as the D-List name is enclosed in brackets [ ]. In normal D-Links, any virtual dimension can simply be ignored (left unpaired and no selection made). You only need to concern yourself with them if you are creating special lookup or accumulation D-Links.
Create D-Links
A D-Link is created in the following stages: Steps Select New D-Link from the menu (p. 217) Select a source and a target for the D-Link (p. 217) Pair source and target dimensions (p. 219) Select the required items from unpaired dimensions (p. 219) Change optional settings as required (p. 220) Name and save the D-Link (p. 220) These steps describe how to create a regular D-Link using a D-Cube as the source. You can also use the following as the source: mapped ASCII files (p. 731) ODBC (SQL) (p. 299) Data, Contributor data, Cognos Finance data, and a Cognos package. If you wish to create a lookup or accumulation D-Link, then you must specify the type before pairing source and target dimensions, because virtual dimensions do not appear when creating regular D-Links.
Chapter 9: D-Links 8. Click OK. If both the source and the target for the D-Link are D-Cubes, and one D-List is common to both the source and the target, these D-Lists are paired automatically using match descriptions. If required, you can change to an allocation table pairing, or break the connection by clicking the pairing indicator.
Steps
1. Open the target D-Cube you wish to import the data into. 2. From the File menu, click New, D-Link. 3. Click Source. 4. Click Cognos Package. 5. Select a package from the drop box. 6. Select a Query Subject. 7. Select the available Query Items in the Query Subject and move them to the Selected Query Items pane. 8. Select the Display preview of selected query item check box to preview the Query Items. The Preview option only works with Query Items that have not been selected, and helps you select the correct Query Items. Click OK. The Query Items are brought into the D-Link. 9. Click Mark Data to select the columns containing the data. 10. Pair the dimensions. 11. From the D-Link menu, click Options. In the Cognos Package - Alternative temporary data storage path area, browse to a temporary location in which to store the import data. If you do not specify a location, Analyst will default to the location of the Filesys.ini file. If you specify a different default location, ensure that it is accessible and writable from all Analyst clients and Planning servers. You can also specify the temporary data storage default location before creating your D-Link. From the Tools menu in Analyst, click Options and select the General tab. Under D-Link Temporary Data Storage, you can browse to a custom default location. 12. When you have finished pairing the dimensions, from the D-Link menu, click Execute. The data is imported using the Cognos package. 218 Analyst
Steps
1. Click a source dimension. The D-List items of the selected dimension are displayed in the dimension items section of the D-Link dialog box. 2. Click Ctrl + a target dimension to which you want to pair the selected source dimension. Tip: In general, dimensions belonging to the same category should be paired. For example, timescale D-Lists should be paired and products D-Lists should be paired. However, timescale D-Lists should not be paired with products D-Lists. 3. Select either Match descriptions or Allocate items: Select Match descriptions to have matched source and target items highlighted automatically, or select Allocate items to manually pair source and target items.
Steps
1. Click an unpaired dimension. The items of the selected dimension are displayed in the dimension items section of the D-Link dialog box, ready for you to make a selection of items. 2. Click Select if you want to make a selection of items. Instead of making a selection of items, you can leave the selection empty.The sum of the items is transferred into the designated target cells. 3. Double-click an item in the dimension items list to move it to the Selected items box. To select more than one item, highlight the required items in the dimension items list, and then click the arrow button pointing in the direction of the selected items list. 4. Repeat steps 1 through 3 for all remaining unpaired source and target dimensions.
Chapter 9: D-Links
Steps
1. Select an execution mode from the Mode box: Fill Substitute Add Subtract Select a Dump Item option (this is only relevant when importing data from external sources).
2. Select the D-Link type: Regular - shows only real dimensions. Lookup - shows real dimensions and D-List formatted items for target dimensions. Accumulation - shows real dimensions and D-List formatted items for source dimensions.
3. Specify scaling and rounding options (from the D-Link menu, click Options).
Open D-Links
Steps
1. Click the open D-Link button. 2. In the D-Link Select dialog box: Select a library.
220 Analyst
Steps
1. Make the relevant D-Cube the active D-Cube. 2. From the D-Cube menu, click D-Links, D-Links into D-Cube. 3. In the Select D-Link to Edit dialog box: Select the desired D-Link. lick Edit.
Steps
1. Make the D-Cube active. 2. From the D-Cube menu, click D-Links, D-Links from D-Cube, or click the Run D-Links button.
Chapter 9: D-Links 3. In the Select D-Link to Edit dialog box: Select the D-Link you want to open. Click Edit.
Run D-Links
Run a D-Link to transfer data. Messages are suppressed when executing macros that run ODBC D-Links from SQL7 as a source.
222 Analyst
Chapter 9: D-Links
Step
Make the appropriate D-Link active and click the Run D-Link button. The open D-Link runs. If you have made changes to the D-Link but not saved the changes, only the saved version of the D-Link runs.
Steps
1. From the Tools menu, click one of the following: Run Source Link Run Target Link
2. In the D-Cube Select dialog box do the following: Select a library. Select a target D-Cube. Click OK.
3. If a D-Cube dialog box was active in step 1, this D-Cube is selected in the D-Cube Select dialog box. In the Select D-Link to Execute dialog box do the following: Select the D-Link to run. Click Execute.
Chapter 9: D-Links If a D-Link is run into a closed D-Cube, all data assigned by a D-Link is transferred to the target D-Cube. Internally, Analyst opens the target D-Cube, transfers data into it, and then saves and closes the D-Cube automatically. D-Links do not usually assign data to all cells of a target D-Cube. The selection of cells that a D-Link can affect (assign data to) is known as the target area (p. 253) for the D-Link. Opening a limited selection of the target D-Cube before running the D-Link can be used to temporarily restrict the target area for the D-Link.
Steps
1. Ensure the required D-Cube dialog box is active. 2. Click the Run D-Link button 3. In the Select D-Link to Execute dialog box, select the D-Link you want to run, and then click Execute. D-Links run in this manner will only update data within the open selection of the target D-Cube.
224 Analyst
Chapter 9: D-Links close all affected D-Cubes without saving them. You can also reset any D-Lists with implemented changes by clicking Reset from the File menu. Remember that you cannot experiment in this way with adding, deleting or substituting D-Lists in the source D-Cube. These changes to a D-Cube are immediately saved and cannot be reset.
Run D-Links with the Source D-Cube Open with a Limited Selection
Data within the open selection of the source D-Cube is taken from the open version of the source D-Cube. Data outside the open selection of the source D-Cube is taken from the saved version of the source D-Cube.
Steps
1. From the File menu, click Library, D-Cubes. 2. In the D-Cube Library Functions (p. 301) dialog box do the following: Select the D-Cube you wish to update. Click the Show objects that the selected object(s) is used by button. Make your selection from the Highlight Usage Type list. You have the option to view specific precedents or dependents, depending on their function to the D-Cube. Select the desired D-Links in the Objects Using D-Cube dialog box.
3. Click the Select button. When you select a new item, it is added at the bottom of the selected items list (you cannot reorder items in the selection list). When you run the D-Links, they will be run in the order they appear in the selected items list, so it is important that you select the D-Links in the correct order. Selected D-Links can be reodered using the arrows to the right hand side of the box.
Chapter 9: D-Links 4. Click the Run button. If you want to run additional D-Links targeting different D-Cubes, you can run those selected so far, deselect them and repeat steps 2 to 4 for another D-Cube. 5. When all required D-Links have been run, click Close.
Memory Considerations
If you are experiencing memory problems when running a D-Link then consider use of the slice update facility which allows the D-Link to be run in smaller stages updating one slice of the target at a time. This facility is available for D-Links which target analyst or for D-Links which target contributor. For more information about the slice update facility, see @SliceUpdate (p. 700).
226 Analyst
Chapter 9: D-Links If the D-Link picks up only detail data from the source D-Cube, a basic selection of items, determined by the D-Link definition, is opened. The basic selection includes all items assigned by match descriptions or an allocation table, and all items selected from unpaired source D-Lists. However, if the D-Link imports calculated numbers from the source D-Cube, the selection of items opened will be the expansion of the basic selection. If the source D-Cube is fully open when the D-Link is run, Analyst does not need to open it internally as all the required data can be taken from the open version of the D-Cube. If the source D-Cube is open with a limited selection when the D-Link is run, Analyst may need to open an additional selection internally if all data transferred by the D-Link is not found in the open selection. If the target D-Cube is closed when the D-Link is run, Analyst opens the target D-Cube internally, transfers data into it, saves and closes the D-Cube automatically. The portion of the target D-Cube that Analyst needs to open internally is the expansion of the D-Link's normal target area. The target area includes target items matched by match descriptions (p. 233), target items with entries in a local allocation table (p. 242), and items selected from unpaired target D-Lists (p. 231). If the target D-Cube is open when a D-Link is run, data is only assigned within the open selection of the target D-Cube. Data assigned to cells outside the selection you have opened is not transferred, even if these cells are within the internal expanded selection. So when you run a D-Link into a selection from an open D-Cube, nothing extra is opened and no expansion takes place.
When you use either @DLinkExecute or @DCubeUpdate to run D-Links, the D-Links behave exactly as if they had been run manually. For example, when the @DCubeUpdate command is run, the target D-Cube may be closed, fully open, or open with a limited selection. If closed, data changed in the target D-Cube is saved automatically at the end of the update. If open with a limited selection, only the open selection of the target D-Cube will be updated.
Chapter 9: D-Links Match descriptions (p. 233) pairings are preserved with the source and target D-Lists exchanged. Any subcolumn cut (p. 259) from a D-List is preserved. The case-sensitive setting is not changed. The dump item setting is only relevant when importing data from external sources. Allocation table pairings are preserved. The source and target D-Lists and the source and target columns in the allocation table are exchanged. Any subcolumn cut from a D-List is preserved. The case sensitive setting is not changed. The dump item setting is only relevant when importing data from external sources. Unpaired source and target D-Lists (p. 231) are exchanged. The selection of items made for a D-List is preserved. The D-Link execution mode (p. 252) is unchanged. The scaling option is reversed; data transferred by the inverse D-Link is scaled by the inverse of the scaling factor set for the forward D-Link. For example, if the scaling factor (p. 257) is set to 10 (divide by ten), then the inverse D-Link will use a scaling factor of 0.1 (divide by a tenth) . The rounding option (p. 257) is unchanged; data transferred by the inverse D-Link is rounded according to the setting in D-Link options. The D-Link dump option is only relevant when importing data from external sources.
Note: Special rules apply when running accumulation D-Links inversely; the inverse accumulation D-Link will perform a break back allocation over the source data. (Lookup D-Links should not be run inversely at all). See the Lookup and accumulation D-Links section for more information.
Steps
1. Open a target D-Cube. The D-Cube which is the target for the D-Link as defined, and the source for the inverse D-Link. 2. With the target D-Cube dialog box active, click the Run D-Link button. 3. From the list, select the D-Link you want to run, and then click Inverse. Be sure you have selected the correct D-Link. When you click Inverse, the selected D-Link is run inversely - data is transferred and the source D-Cube is saved automatically. If you have the source D-Cube completely open when you run a D-Link inversely, you can save the data transferred to the source D-Cube after the D-Link has run. You can also run D-Links inversely using a macro. The @DLinkExecInv command runs one D-Link inversely. It always runs the D-Link as it is found when the macro is run, not as it was when the macro was created. The D-Link to run inversely is identified by the macro's only parameter: DLink.
228 Analyst
Chapter 9: D-Links
Unpaired dimensions
In an unpaired source D-List (p. 231), data is taken from all items selected and summed. In a unpaired target D-List (p. 231), data is assigned to each of the items selected.
Cut subcolumns
If multiple items in a source or a target D-List are identical within a subcolumn (the subcolumns were cut (p. 259)), only a single instance of the cut-down item name is displayed in the item names list. The cut-down name may be matched by match descriptions (p. 233) or used in an allocation table entry. In a source D-List, data from all items that match the cut-down name is summed. In a target D-List, data is assigned to the first item in the D-List that matches the cut down name.
Chapter 9: D-Links The D-Link lists only unique item names. This is always case sensitive regardless of the Case Sensitive option. In a source D-List, if match descriptions matches more than one source item with one target item, or more than one item corresponds to one source allocation table entry, then data from all matching source items is summed. In a target D-List, if match descriptions matches more than one target item with one source item, or more than one item corresponds to one target allocation table entry, then data from the source item is assigned to the first matching item in the target D-List.
Dimensions
A D-Cube is made up of dimensions, which are D-Lists, or virtual dimensions.
Virtual Dimensions
In addition to normal dimensions, a D-Cube may have virtual dimensions. Virtual dimensions are introduced when one or more of the D-Lists making up a D-Cube contains D-List formatted items. When Regular is selected as the D-Link type, no virtual dimensions show in the D-Link editor. To view any virtual dimensions in the source cube, set the D-Link type as Accumulation. To view any virtual dimensions in the target cube, set the D-Link type as Lookup. In normal D-Links, any virtual dimension can simply be ignored (that is, left unpaired and no selection made). You only need to concern yourself with them if you are creating special lookup or accumulation D-Links. For information about lookup and Accumulation D-Links. Note: You cannot cut a Subcolumn when pairing virtual dimensions.
Unvisited Dimensions
After selecting the source and target D-Cubes in a new D-Link, all dimensions are considered unvisited (not yet paired or selected). When you select an unvisited dimension in a new D-Link, the dimension items are displayed in the same way as for an empty selection. Unvisited dimensions are assumed to be empty selections; so when you are creating a D-Link, ensure you have made the appropriate selection from all unpaired dimensions. Remember that if a dimension is added or deleted from a D-Cube or external source (for example, in an ASCII file new columns may appear and existing columns may be removed or skipped), then D-Links using the D-Cube (or external source) are likely to have new unvisited dimensions. If a dimension is added, it will be unvisited in D-Links. If a dimension is deleted, any dimension to which it was paired will be unvisited.
230 Analyst
Chapter 9: D-Links Unless you edit the D-Links, unvisited dimensions are considered empty selections. If the empty selection is in the source, all detail items are aggregated. If the empty selection is in the target, all detail items are populated.
Unpaired Dimensions
Usually, you will be left with unpaired dimensions in the source and/or the target of a D-Link. It is recommended that you make a selection (p. 232) of the required items from unpaired dimensions.
Chapter 9: D-Links
Empty Selections
In a D-Link, empty selections can be very useful, as they adapt to changes in the dimension item listing. For a D-List, all detail items are used (or targeted) even if new detail items have been added since the D-Link was defined. For other dimensions, all source items are used even if items have been renamed or added. When a source dimension relates to a column in an external source, it is important to remember that the empty selection will accept all entries found in this column.
5. To remove an item from the Selected items box, double click the item name. To remove more than one item, highlight the required items and click the left arrow. 6. Notice that selected items are not removed from the dimension items list.
Steps
1. Open an appropriate D-Link. 232 Analyst
Chapter 9: D-Links 2. Click the unpaired source or target dimension. 3. Select an item from the Selected items box. 4. Click the left arrow. 5. Repeat as necessary. When emptied, the selection list does not immediately disappear, but when you return to the dimension it will have been removed.
Match Descriptions
In a D-Link, Match Descriptions automatically matches source and target dimension items with the same name. In addition, Match Descriptions can be used to perform an allocation by date. For information about specifying a match description pairing, see "Create a Match Descriptions Pairing" (p. 233).
Chapter 9: D-Links You cannot pair an unpaired dimension from which a selection of items has been made either; you must first clear the selected items list (p. 232).
Steps
1. From the File menu, click New, D-Link. 2. Click Source and select a source. 3. Click Target and select a target D-Cube or Contributor cube. 4. Click a source dimension. The items of the selected dimension are displayed in the dimension items section of the D-Link dialog box. 5. Click Ctrl + target dimension that you want to pair with the selected source dimension. Both the source and target dimension names are now selected, and the items of both dimensions are displayed in the D-Link dialog box. 6. Click Match descriptions. The paired dimensions move above the line, joined by the match descriptions pairing indicator. Click the pairing indicator to change the pairing mode or break the connection. The matching source and target items are highlighted. If required, you can change the case sensitive option, match calculated target items, select a dump item, and cut subcolumns from the source and/or target dimensions.
Case Sensitivity
By default the Case Sensitive option is on. Clear the Case Sensitive check box if you want match descriptions to ignore capitalization in the source item names. Typically, this is used when there are inconsistencies in the capitalization of source item names that you want the D-Link to ignore. When the Case Sensitive check box is selected, a highlighted item in the source will only have one matching item in the target. If cleared, there may be many source items highlighted that all match one target item. Data from all matching source items is summed and assigned to the matching target item. The D-Link lists only unique item names. This is always case sensitive regardless of the Case Sensitive option. For example, the items, ITEM1 and item1, will both be listed whether the Case Sensitive check box is selected or cleared. Tip: While it is not recommended, you may include D-List item names that are duplicates except for capitalization (for example, ITEM1 and item1). If a D-List containing such duplicate names appears in the target and the Case Sensitive check box is cleared, then all of these items will be highlighted, but match descriptions will only assign data to the first highlighted item.
234 Analyst
Chapter 9: D-Links
Steps
1. From the File menu, click New, D-Link. 2. Click Source and select a source. 3. Click Target and select a target D-Cube. 4. Click a source dimension. The items of the selected dimension are displayed in the dimension items section of the D-Link dialog box. 5. Ctrl+Click the target dimension that you want to pair with the selected source dimension. Both the source and target dimension names are now selected, and the items of both dimensions are displayed in the D-Link dialog box. Note: If the source data contains items which match to both the detail and the calculated items in the target, and the target cube is not all zero, the calculation engine ignores the imported data for the totals and only keeps the imported data for the details. This could mean that the D-Link will not transfer data as expected. To avoid this potential problem - set the D-Link to Substitute mode, or use an allocation table to ensure that only calculated items are matched. 6. Click Match description. The paired dimensions move above the line, joined by the match descriptions pairing indicator. Click the pairing indicator to change the pairing mode or break the connection. The matching source and target items are highlighted. If required, you can change the case-sensitive option, select a dump item, and cut subcolumns from the source and/or target dimensions. 7. Select the Match Calculated Target Items check box. This matches calculated totals in the target D-Cube in addition to detail items. Note: If a contributor cube is the target of the D-Link then this option is not relevant as only detail items may be targeted in the target lists.
Allocation
When choosing to allocate items in a D-Link there are three options available Local Allocation tables (p. 242) Loaded Allocation tables (p. 248) D-Cubes used as allocation tables (p. 249)
Chapter 9: D-Links The behavior of D-Links is the same regardless of the type of allocation table used, but there are some minor functional differences between the three options. Subcolumns can only be cut in a local allocation table. Wildcard characters can only be used in a local or loaded allocation tables. Local Allocation table entries may only contain items found in the source and target D-Lists (unless subcolumns are cut) in a local allocation table. Local allocation tables cannot be shared by many D-Links. Sign changing per entry is only supported in the A-Table. You cannot create mixed many-to-one and one-to-many allocations using D-Cube data allocations.
236 Analyst
Source D-List
S1 T1 S2 T2 S3 T3 S4 T4 S5 T5 S Total T Total
Target D-List
T1
S2
T2
S3
T2
S4
T2
S5
T3
S5
T4
T5
Data from S2, S3, and S4 is summed and the total allocated into T2. Data from S5 is allocated into T3, T4, and T5 (not apportioned across T3, T4, and T5).
When you use an external source for a D-Link, the source dimensions relate to columns in an ASCII file or fields in an ODBC database, where the same item name may appear in many rows (records) . The D-Link will display only the unique names, in the order in which they appear in the ASCII file or database. When the D-Link is run, the allocation table takes the data from all records for which an entry exists in the allocation table, sums it, and assigns the total to the target item. User Guide 237
Chapter 9: D-Links
Example
The source dimension in the allocation table above might relate to an ASCII file containing these two columns:
Item
S1 S1 S2 S2 S3 S3 S4 S4 S5 S5
Value
1 2 3 4 5 6 7 8 9 10
When the D-Link is run, data is assigned like this: (1+2) will be assigned to T1. (3+4 + 5+6 + 7+8) will be assigned to T2. (9+10) will be assigned to T3, T4, and T5.
Shortcut
Arrow keys Home
Description
Move the active cell in the direction indicated Makes the first cell in the current row active
238 Analyst
Chapter 9: D-Links
Shortcut
End Ctrl+Home Ctrl+End Page Down Page Up
Description
Makes the last cell in the current row active Makes the first cell in the grid active Makes the last cell in the grid active Moves the active cell down one page Moves the active cell up one page
To select a range of cells in the allocation table grid, drag the first cell to the desired destination. You can also select a range of cells by holding the shift key and pressing the arrow keys above. For example, to highlight the entire allocation table: press Home, then press Shift+Ctrl+End. Tip: To find which source dimension items match an allocation table entry, click a cell in the source side of the allocation table, and the corresponding item from the source dimension is highlighted. If more than one source item matches a source allocation table entry, if the entry contains wildcard characters or the case sensitive option is turned off, all matching items are highlighted. Wildcard characters of * and ? are allowed in a filter or an allocation table. Use a question mark (?) to represent any single character. Use an asterisk (*) to represent any series of characters. Click And to show items that satisfy both criteria. Click Or to show items that satisfy either criteria. If Match Case is selected, it will further refine the filter to match on capitals or small letters. The Name box can be set using the equal symbol (=), or the not equal symbol (<>). Use the equal symbol (=) to show items that meet the criterion. Use the not equal symbol (<>) to exclude items that meet the criteria. For example, if you have an item named P01, and you enter P01*, it will search for anything beginning with the characters P01. If you enter P?????????, it means search for any D-List item that starts with a P and is ten characters long (including spaces). By default the Case Sensitive option is on. Clear the Case Sensitive check box if you want match descriptions to ignore capitalization in the source item names. Typically, this is used when there are inconsistencies in the capitalization of source item names that you want the D-Link to ignore. When the Case Sensitive check box is selected, a highlighted item in the source will only have one matching item in the target. If cleared, there may be many source items highlighted that all match one target item. Data from all matching source items is summed and assigned to the matching target item. The D-Link lists only unique item names. This is always case sensitive regardless of the Case Sensitive option.
Chapter 9: D-Links
Steps
1. Open a D-Link. 2. Select an allocation table pairing. 3. From the D-Link menu, click Allocation Table, Load. 4. In the A-Table Select dialog box do the following: Select a library. Select the required A-Table. Click OK.
The D-Link dialog box will display the A-Table library and name. You can also create a new A-Table by saving a local allocation table in a D-Link as an A-Table.
Steps
1. Open the D-Link and select the required allocation table pairing. 2. From the D-Link menu, click Allocation Table, Save. 3. Select a library from the list, then type a name for the A-Table. 4. Click OK.
Steps
1. Open a D-Link. 2. Click an allocation table pairing (indicated by the allocation table pairing indicator. 3. Select Change to Matched Descriptions.
240 Analyst
Chapter 9: D-Links
Change to Allocation
This feature of Analyst is useful for converting a match descriptions pairing within a D-Link to an allocation table pairing in a few easy steps.
Steps
1. Open a D-Link. 2. Click a match descriptions pairing (indicated by the match descriptions pairing indicator. 3. Select Change to allocation. 4. Pair the source items with target items using the local allocation table.
Other dimensions
Entries in an allocation table corresponding to items in the dimensions of a mapped ASCII file or an ODBC database cannot be linked to the dimension item names. New text in an external source is not recognized. If an item name is deleted from the item name listing, the entries in allocation tables are left unchanged. New item names are not automatically added to any allocation table.
Chapter 9: D-Links Do not accidentally target formula items - one break back can change a large amount of data. Remember: if you run a D-Link into a closed D-Cube, the changed data is saved automatically. After a D-Link is run, the status bar at the bottom of the Analyst screen will display calculation messages. If you see "Backward" calculation messages, the D-Link has caused a break back in the target D-Cube, either because formula items have been targeted, or because formula items are held.
242 Analyst
Chapter 9: D-Links 7. Click an item in the source. 8. Click an item in the target. 9. Repeat as necessary. If required, you can change the Case Sensitive (p. 234) option, select a Dump item (p. 256), and Cut Subcolumns (p. 259) from the source and/or target dimensions. To break the connection, click the pairing indicator and select Break Connection. You cannot pair a dimension that is part of an existing pairing; you must first break the existing connection. You cannot pair an unpaired dimension from which a selection of items has been made; you must first clear the selected items list.
Steps
1. Open the appropriate D-Link. 2. Select the existing allocation pairing or define a new allocation pairing. 3. From the D-Link menu, click Allocation Table, Import from File. 4. Select the required source type from the menu. 5. In the Specify allocation table dialog box do the following: Select the required source dimension and click Source.
Chapter 9: D-Links Select the required target dimension and click Target. Click OK.
The allocation table entries are imported and are displayed in the D-Link dialog box.
Steps
1. Open the appropriate D-Link. 2. Double-click a cell in the local allocation table, or press f2. 3. Type an asterisk ( * ) to represent any number of characters (including none) and a question mark ( ? ) to represent any single character. When you select a source entry containing wildcard characters, all the matching items are highlighted in the source dimension items list. As an example, look at the following allocation table. 612 Canada 613 Central America 614 Latin America Americas Americas Americas
244 Analyst
Chapter 9: D-Links
61*
Americas
61? *
Americas
61?*
Americas
?1?*
Americas
The asterisk ( * ) represents any character in that position and all remaining positions. Therefore, the asterisk ( * ) should only be used at the end of entries. For example, all of the following entries (beginning with characters 61) are assigned to Americas. 61* Latin America 61*Latin 61*Any text here Americas Americas Americas
Priority of source entries: As a result of including wildcard characters in source allocation table entries, one source item may be assigned to a number of target items. A matching source item will be assigned by the first matching allocation table entry. For example, the following allocation table means: Assign items beginning with characters 619 to UNALLOCATED. Then, assign items not already assigned and beginning with characters 61 to Americas. 619* 61* UNALLOCATED Americas
In contrast, the following allocation table means: Assign items beginning with characters 61 to Americas. This allocation table will never assign any records to UNALLOCATED. 61* 619* Americas UNALLOCATED
Suppose the source item 619 Test Market is found when the D-Link is run. It will be assigned by the first matching source entry in the allocation table. The first allocation table will assign this item to UNALLOCATED. The second allocation table will assign it to Americas. This can be a very useful feature, but you must remember to order the allocation table entries correctly. And always take care to avoid including ambiguous source entries accidentally.
Chapter 9: D-Links
246 Analyst
Chapter 9: D-Links 4. Click a target dimension item. The allocation table entry will be added at the end of the existing allocation table.
Add Multiple-Line Entries to an Allocation Table Steps if the source items are adjacent
1. Open a D-Link. 2. Select the local allocation. 3. Drag to include items in the source range (or press Shift+Down Arrow). 4. Drag to include items in the target range.
Chapter 9: D-Links Note: Highlight exactly the same number of source and target items. If the number of source and target items you select is different, then only some of the required entries will be added to the allocation table. 5. The allocation table entries are added. Note: Duplicate allocation table entries If you attempt to add a number of lines, some of which are duplicates, the new lines will be appended at the end of the existing allocation table, the duplicates lines are not added (the original entries are left in place).
248 Analyst
Chapter 9: D-Links in the allocation table. You cannot paste the contents of the clipboard if it contains more rows than the selected paste area. If both the source and target for an allocation table are D-Lists, all the entries pasted must be valid entries in both D-Lists. If they are not, they are rejected. If only the target for an allocation table is a D-List, all the pasted entries must contain valid entries in the target; the source entries may contain anything at all.
D-Cube Allocations
A D-Cube allocation uses a slice of a D-Cube consisting of the rows dimension and one D-list formatted column on a single page to act as an allocation table within a D-Link. A D-Cube allocation D-Link is created and run in the same way as a normal D-Link except that a D-Cube is used for data allocation when pairing source and target dimensions. You can run D-Cube allocations inversely and drill down on data transferred by them in the usual way.
Example
If you have a D-Cube that has a D-Cube allocation that allocates cost centers to both divisions and managers as follows:
Divisions
Cost Center 1 Cost Center 2 Cost Center 3 Cost Center 4 Cost Center 5 Cost Center 6 Cost Center 7 Cost Center 8 Cost Center 9 Cost Center 10 Cost Center Total Usa Germany France U.K. USA Germany France U.K. USA Germany
Manager
Manager 2 Manager 3 Manager 1 Manager 1 Manager 2 Manager 4 Manager 4 Manager 1 Manager 3 Manager 3
Chapter 9: D-Links Cost Center 1 is located in USA and is managed by Manager 2. Similarly, Cost Center 2 is located in Germany and is managed by Manager 3. In this manner, the remaining cost centers are each located in various countries (USA, Germany, England, or France) and managed by various managers (Manager 1 through Manager 4). Note that one manager can be responsible for multiple cost centers in different countries.
250 Analyst
Chapter 9: D-Links
Steps
1. Open the D-Link. 2. Click on the source dimension and click Ctrl + the target dimension. 3. Click Allocate items. 4. From the D-Link menu select Allocation table and Use D-Cube data. 5. Click an allocation D-Cube in the list. 6. Make a selection from the allocation D-Cube, and specify the slice. The selection and slice taken from the allocation D-Cube must: Have just one page Have just one data column Contain appropriate allocation table entries in the row headings and the data column
7. Specify whether the source side of the allocation table is a D-List or a data column.
Chapter 9: D-Links the first D-List included in the D-Cube will form the rows. If there is no timescale D-List in the D-Cube, the first D-List included in the D-Cube will form the rows and the second D-List included in the D-Cube will form the columns. If you are not sure of the order of D-Lists in a D-Cube, they can be reordered by opening the D-Cube, clicking the D-Cube menu, pointing to Dimensions, and then clicking Reorder. You can eliminate the need to re-slice an allocation D-Cube by including the D-Lists in the following order when you create the D-Cube.
Steps
1. The D-List that you will use most frequently as the source (or the target) in allocation tables. Usually, this is the D-List at the lowest level of the hierarchy. 2. The D-List containing the D-List formatted items. 3. Any other D-Lists.
Step
With the D-Link open, click on the pairing you wish to edit.
From the D-Link menu click Allocation Table and Use D-Cube Data. The question Do you wish to edit the existing selection? appears. To view and edit the existing selection click Yes. To choose a new cube click No and select a new cube.
Execution Modes
The execution mode determines how data transferred by a D-Link is combined with existing data within a target area (p. 253) of a target D-Cube. There are four D-Link execution modes: Fill (p. 253), Substitute (p. 253), Add (p. 253), and Subtract (p. 253). To set the execution mode, select a setting from the Mode list. The Fill and Substitute modes have a special meaning when applied to Lookup (p. 266) and Accumulation D-Links (p. 272).
252 Analyst
Chapter 9: D-Links Note: You cannot inversely run a D-Link that has an external source because a D-Link cannot target an external source (which also means that the source for an inverse D-Link will always be a D-Cube).
Fill Mode
Fill is the default execution mode. All numbers within the target area (p. 253) of the D-Cube are replaced with the transferred numbers. For a D-Link that uses a D-Cube as its source, Fill and Substitute are identical in behavior for regular D-Links because the target area of the target cube consists only of cells for which data can be found in the source cube. If a D-Link is from an external source or is a look-up or accumulation D-Link then fill mode will set untargeted cells to zero whereas substitute will leave them untouched. In Analyst, for look up and accumulation D-Links (p. 262) any cell within the target area of the cube is set to zero if no data exists in the source cube for that cell. The fill is applied first to zero the data, and then the data is written as if in substitute mode. In Contributor, for a look up and accumulation links that targets both detail and calculated items at the same time, the zeros to fill and the data to set are merged into a single update of the target cube. The different methods for Fill for Analyst and Contributor causes different breakback behavior to occur. If the Analyst method is required for Contributor, you can use one link to zero the data, then an accumulation link running in substitution mode. For a D-Link using an external source, any cell within the target area of the cube is set to zero if no data exists in the source file for that cell.
Substitute Mode
Numbers within the target area of the D-Cube are replaced by the transferred data, but if no data is found in the source for a particular cell, the data in that cell is left unchanged. For look up and accumulation D-Links any cell within the target area of the cube is left untouched if no data exists in the source cube for that cell. For a D-Link using an external source, any cell within the target area of the cube is left untouched if no data exists in the source file for that cell.
Add Mode
Transferred data is added to existing data within the target area of the D-Cube.
Subtract Mode
Transferred data is subtracted from existing data within the target area of the D-Cube.
Chapter 9: D-Links The target area can be described as a selection of items from each of the D-Lists making up the D-Cube, like any other D-Cube selection. The treatment of each target D-List in a D-Link determines which items are within the target area selection.
Items with an entry in the target side of the allocation table With a D-Cube as source: Matched detail items. With an external source: All detail items, except on the DATA dimension where only items matched in the source are selected.
Notice that the type of source completely changes the target selection for a match descriptions pairing. This means that when importing data from an external source, all unmatched target items in a match descriptions pairing are set to zero if the execution mode is set to Fill (p. 253). If a D-Cube is open, a D-Link targeting the D-Cube can only change data within the open selection. Thus, you can run D-Links into limited selections of D-Cubes if you reduce the target area of the D-Link.
Dump Options
The dump option determines the treatment of all unassigned records found in an external source. It is not applicable to D-Links that use a D-Cube as their source. There are four D-Link dump options: Ignore, Edit, Print, and File. The default setting is Ignore, where unassigned records are simply overlooked (any dump item set in an allocation table or match descriptions pairing is still operative). The other three settings will produce a report listing all unassigned records.
254 Analyst
Chapter 9: D-Links
Edit
Unassigned records are presented in a dialog box within Analyst. The field (or fields) within each record that could not be assigned are highlighted in red, enabling you to identify the errors in the source file. You can copy a selection from this report, or you can copy the entire report to the Windows clipboard if required.
Print
Unassigned records are sent directly to the default printer.
File
Unassigned records are written to a delimited ASCII file of your choice.
Steps
1. Open or create a D-Link. 2. Match source items with target items. 3. Select File from the Dump drop-down box. 4. In the Select Dump file dialog box, select a destination directory and a name for the file. 5. Click OK.
Chapter 9: D-Links The chosen directory and filename are then shown at the top of the D-Link dialog box, along with a button marked with an ellipsis (. . .). Click this button to change the dump file location and/or name.
Dump Item
This option allows you to assign data from all source items in a D-Link that do not have an entry in an allocation table to a single dump item in a target D-List. When the D-Link has run, you can drill down on any data assigned to the dump item to see which records were not matched. If necessary, you can edit the source data file or the local allocation table. You may also need to add an item to the target D-List. The dump item is only applicable when data is being imported from an external source, either a mapped ASCII file, an ODBC database, or Contributor data. If the source for a D-Link is a D-Cube, the dump item is inactive; source items excluded from the allocation table will not be transferred to the target.
256 Analyst
Chapter 9: D-Links
Step
Select a cell or a range of cells, then click the Drill Down button.
Scaling Factors
You can enter as a scaling factor any number you like, positive or negative. When a D-Link is run, all data transferred is divided by this number. If a rounding factor is also set, data is scaled before it is rounded. Note: Scaling factors can also be set in a D-List. For more information about scaling factors within D-lists, see "Set Scaling Factor within a D-List" (p. 113).
Rounding Factors
The available rounding factors range from six decimal places to millions. When the D-Link is run, all data transferred is rounded to the chosen accuracy. For example:
Chapter 9: D-Links
Rounding Factor
6 decimals 4 decimals 1 decimal Units Tens Millions
Normal Number
1.123456789 1.123456789 1.123456789 123456789.1 123456789.1 123456789.1
Rounded Number
1.123457 1.1235 1.1 123456789 123456790 123000000
Data midway between two rounded numbers is rounded up. For example:
Rounding Factor
Units Units Tens Tens Millions Millions
Normal Number
0.5 0.499 -5 -5.01 1500000 1499999
Rounded Number
1 0 0 -10 2000000 1000000
258 Analyst
4. Click OK. When you next run the D-Link the scaling and rounding options you have set will be active. Remember to save the D-Link if you want to make the change permanent.
Subcolumns
By default, Match Descriptions (p. 233) analyzes the entire text of the dimension item names. However, it is possible to match descriptions on a limited portion of the item names by cutting a subcolumn (p. 259). This is particularly useful when you wish to match items or exclude invalid descriptions. When a subcolumn is cut, the D-Link dialog box displays the cut-down item names. Only entries that are unique within the subcolumn are listed. Often subcolumns are cut when dimension item names contain a unique code and a description (for example, a product code and description). When importing D-List items into a D-List on a regular basis, it is often useful to define which part of a D-List item contains a unique code. This lets you test whether it is a genuinely new item or just a slightly different spelling of the description. The unique portion of the D-List item is case sensitive and takes into account leading and trailing spaces. After you have set the unique part of a D-List item you can not type, paste, or import any duplicate items using a D-Link beginning with that code. For example, a typical product code consists of a code followed by a description such as P03 Camping Gear (P03 is the code, Camping Gear is the description). If, the following month, you are updating the list of product codes and an item named P03 Campin' Gear displays, the program recognizes the code (P03) and ignores the different spelling of the description (Campin' Gear). This prevents duplication of the same product. Remember, if you need to cut subcolumns from the dimensions of a Mapped ASCII file, you can do it in the D-Link as described in the Cut a Subcolumn examples, or you can do it in an ASCII file Map. Note: When working with virtual dimensions, it is impossible to cut a subcolumn.
Cut a Subcolumn
You can cut a subcolumn from any dimension in a D-Link except an unpaired dimension (p. 229) where a selection (p. 232) of items has already been made. However, it is recommended that you pair the dimensions before cutting subcolumns. For a match descriptions pairing (p. 233), this enables you to see which items match as you cut the subcolumns.
Chapter 9: D-Links If you change the pairing mode (Match Descriptions or Allocate items), or break the connection between paired dimensions, any cut subcolumns are preserved. Even if you change the target for a D-Link, subcolumns cut from source dimensions will be preserved (and vice versa).
Steps
1. From the File menu, click New, D-Link. 2. Click Source and select a source. 3. Click Target and select a target D-Cube. 4. Click a source dimension. The items of the selected dimension are displayed in the dimension items section of the D-Link dialog box. 5. Ctrl+click the target dimension that you want to pair with the selected source dimension. Both the source and target dimension names are now selected, and the items of both dimensions are displayed in the D-Link dialog box. 6. Click Match Descriptions. 7. Click the Cut Sub-Column icon. In the Sub-Column dialog box, click at the start of the subcolumn (to the left of the first character of the subcolumn). Note: If the subcolumn starts at the beginning of the item name (at character 1), you do not need to define the start of the subcolumn; you can skip to step 9. The dimension items are displayed in a non-proportional font (each character is the same width) . A ruler at the top of the screen indicates the character number at the end of a column of characters. Left-click - to create a column break Click+drag - to move a column break Right-click - to delete a column break
8. Click at the end of the subcolumn (to the right of the last character of the subcolumn). 9. Click OK. You will return to the D-Link dialog box. The character range in square brackets after the dimension name indicates that a subcolumn has been cut, and displays which characters are included in the subcolumn.
260 Analyst
Chapter 9: D-Links 2. Select the required pairing. 3. Double-click the name of the dimension that has the subcolumn you want to change. 4. In the Subcolumn dialog box, drag the column break you want to move. If the existing subcolumn starts at the beginning of the item name and you want the new subcolumn to start at another character, click the point at which you want the subcolumn to start. 5. Click OK. You will return to the D-Link dialog box. The character range in square brackets after the dimension name indicates which characters are included in the new subcolumn.
Clear a Subcolumn
Steps
1. Open the relevant D-Link. 2. Select the required pairing. 3. Double-click the name of the dimension that has the subcolumn you want to change. 4. In the Subcolumn dialog box, right-click the column breaks that you want to remove. If the existing subcolumn starts at the beginning of the item name, you will only need to right-click the end of subcolumn break. 5. Click OK. You will return to the D-Link dialog box. The absence of a character range in square brackets after the dimension name indicates that the subcolumn has been removed.
Chapter 9: D-Links If A001 is highlighted by match descriptions and the D-Link is run, data will only be assigned to the item A001 Description 1. You may find that duplicate formula items are removed from the list when a subcolumn is cut. This does not matter, as match descriptions does not target formula items unless otherwise specified by clicking Match Calculated Target Items. For example, many D-Lists have a structure like the following: A001 Xx Xxxx A002 Xxxx Xxx Total Group A B001 Xxxx Xx B002 Xxx Xxxxx Total Group B If the first four characters from this D-List are cut as a subcolumn, the D-Link will display only one instance of "Total."
Terminology
An item in a D-List that has been given a D-List format is called a D-List formatted item. A D-List containing a D-List formatted item is referred to as a lookup D-List. The D-List chosen for the format is called the format D-List.
Sparse D-Cube
A sparse D-Cube contains limited dimensions and sparse data. For example, employee cost data can be held in an ordinary three-dimensional D-Cube, containing the D-Lists Employees, Levels, and Divisions. The following table shows one page of this cube for Employee A.
Division 1
Level 1 0
Division 2
0
Division 3
0
Total
0
262 Analyst
Chapter 9: D-Links
Division 1
Level 2 Level 3 Level 4 0 0 0
Division 2
0 80,000 0
Division 3
0
Total
0 80,000
A sparse D-Cube stores the salary data inefficiently. Each page of this D-Cube contains just one number; thus, this D-Cube is a sparse D-Cube. However, you can transfer data from this D-Cube into a D-Cube containing a Divisions D-List using a normal D-Link. Alternatively, the data in the D-Cube above can be held in a simpler two-dimensional D-Cube.
Employees
A B C D E
Salary
80,000 50,000 45,000 60,000 20,000
This is also a sparse D-Cube, and there are two problems with it: First, you can no longer see which level or division an employee belongs to. Secondly, it is awkward to create a normal D-Link to transfer this data into another D-Cube that contains a Divisions D-List. You have to create an allocation table to assign each employee separately. You can store this allocation of Employees to Divisions in a saved A-Table and use this in D-Links. Alternatively, you can create a special allocation D-Cube, and use the Allocate Using D-Cube Data option when you create the D-Link. For more information see "Use D-Cube Data in Allocation " (p. 250). The latter approach is preferable because an allocation D-Cube is easier to maintain and update than a saved A-Table. However it would be more efficient to store the data in a two dimensional cube as follows. Here the D-List forming the columns would have two D-List formatted items, Division, formatted on a Divisions D-List and Level formatted on a Levels D-List. Only the Salary item would be numeric.
Employees
A B
Division
Division 3 Division 2
Level
Level 2 Level 4
Salary
80,000 50,000
Chapter 9: D-Links
Employees
C D E
Division
Division 1 Division 4 Division 2
Level
Level 5 Level 3 Level 6
Salary
45,000 60,000 20,000
You cannot use multiple lookup D-Lists. If a D-Cube contains multiple D-Lists each with D-List formatted items, the D-Link will display the format D-Lists belonging to more than one lookup D-List. After you have paired a format D-List belonging to one lookup D-List, you cannot pair other format D-Lists that belong to a different lookup D-List. You may, however pair multiple format D-Lists if they all belong to the same lookup D-List. You can only create lookup and accumulation D-Links when the source for the D-Link is a D-Cube or Contributor cube. You cannot use the scaling or rounding options (p. 257) in a lookup or accumulation D-Link. You cannot use a saved A-Table that uses the sign changing option in a lookup or accumulation D-Link. You cannot cut subcolumns (p. 259) from a format D-List. You cannot make many to one allocations on the real dimensions of a lookup D-Link
Lookup D-Links
Lookup D-Links are D-Links that literally "look up" data from a source D-Cube based on text data using a database D-Cube as a target. You define a D-Link as a lookup D-Link by selecting the Link Type, pairing a normal D-List from a source D-Cube with a format D-List from a target D-Cube. Normally source and target D-Lists are formatted to use the same D-List. For example create a two dimensional cube containing Salaries based on levels.
264 Analyst
Chapter 9: D-Links
Level
Level 1 Level 2 Level 3 Level 4 Level 5
Salary
60,000 70,000 80,000 85,000 100,000
Use this as a source D-Cube and set up a D-Link to transfer the salary to a Costs D-Cube based on Level. When this D-Link is run, data is transferred to the employees in the Employee Costs D-Cube based on level:
Employees
A B C D E
Division
Division 1 Division 1 Division 2 Division 3 Division 2
Level
Level 3 Level 2 Level 5 Level 1 Level 1
Salary
80,000 70,000 100,000 60,000 60,000
In this example, the Employee Costs D-Cube is the database D-Cube, and the Annual Salaries D-Cube is the source D-Cube. The paired format D-List (Levels) drives the lookup D-Link when it runs.
Steps
1. Click an unpaired dimension. The items of the selected dimension are displayed in the dimension items section of the D-Link dialog box, ready for you to make a selection of items. 2. Click Select to make a selection of items. 3. Double-click an item in the dimension items list to move it to the Selected items box. To select more than one item, highlight the required items in the dimension items list, then click the arrow button pointing in the direction of the selected items list. Repeat steps 1 through 3 for all remaining unpaired source and target dimensions.
Steps
1. Open the target D-Cube - the target database for the normal D-Link, which will be the source when the D-Link is run inversely. 2. Click the Run D-Link button. 3. Select a D-Link from the list of those targeting the D-Cube and click Inverse. A lookup D-Link run inversely does not become an accumulation D-Link. For example, the source D-Cube (Salary by Level) for a lookup D-Link contains the D-Lists, Levels and Salaries, and the following data.
266 Analyst
Chapter 9: D-Links
Salary
60,000 70,000 80,000 85,000 100,000
The target D-Cube (Employee Costs) for the lookup D-Link contains the D-Lists, Employees and Employee Attributes. Employee Attributes contains two D-List formatted items Division and Levels. It contains the following data.
Division
Division 1 Division 1 Division 2 Division 3 Division 2
Level
Level 3 Level 2 Level 5 Level 1 Level 1
Salary
80,000 70,000 100,000 60,000 60,000
In the lookup D-Link to transfer data from Salary by Level to Employee Costs, the item Salary within the target D-List Employee Attributes, is paired with the item Salary in the source. The target D-List Employees is left with an empty selection (p. 232) (auto-allocated D-Lists). The source D-List Levels, is paired with the target format D-List Levels using match descriptions. In a lookup D-Link, unpaired D-Lists in the target D-Cube that do not contain a selection are referred to as auto-allocated D-Lists (with the exception of the lookup D-List). Each (detail) item in an auto-allocated D-List contains one entry from the driving format D-List (that is, in the driving D-List formatted item in the lookup D-List). This entry determines which data is taken from the driving source D-List. If this lookup D-Link is run inversely with the execution mode set to Substitute, the data in Salary by Level is unchanged.
Chapter 9: D-Links However, if it is run with the mode set to Fill, the data in Salary by Level will be changed as follows because there is no data in the Employee Attributes cube for level 4 - so this is set to zero.
Level
Level 1 Level 2 Level 3 Level 4 Level 5
Salary
60,000 70,000 80,000 0 100,000
If Employee Costs contains inconsistent data, the last matching entry (based on D-list order) from this database D-Cube is transferred. For example, if Employee Costs contains the following data:
Employees
A B C D E
Division
Division 1 Division 1 Division 2 Division 3 Division 2
Level
Level 3 Level 2 Level 5 Level 1 Level 1
Salary
80,000 70,000 100,000 60,000 45,000
and the lookup D-Link is run inversely, then the following data is transferred to the Salary by Level D-Cube:
Salary
45,000 70,000 80,000 85,000
268 Analyst
Chapter 9: D-Links
Level
Level 5
Salary
100,000
Salary
45,000 70,000 80,000 0 100,000
These same results would be obtained even if the D-Cube were re-sorted in any way based on the cube data, as the last matching item is based on the order of the Employees D-List.
Chapter 9: D-Links
Accumulation D-Links
Accumulation D-Links are D-Links that consolidate data from a source database D-Cube to a target sparse D-Cube (p. 262) based on D-List formatted text. You can run an accumulation D-Link inversely to perform a breakback (p. 149) allocation in the database D-Cube. You define a D-Link as an accumulation D-Link by pairing a format D-List in a source D-Cube with a normal D-List in a target sparse D-Cube and selecting Accumulation as the D-Link type. Normally source and target D-Lists are formatted to use the same D-List. You need to specify the D-Link as an accumulation D-Link based on how the dimensions of the source and target correspond by pairing a formatted D-List with a normal target D-List dimension. You can create an accumulation D-Link in more than one dimension by pairing more than one source format D-List. Be cautious because certain restrictions (p. 264) apply.
270 Analyst
Chapter 9: D-Links
Chapter 9: D-Links It must contain at least one D-List formatted item (p. 117) that can be used as a source to consolidate data from a database D-Cube to a target D-Cube based on text data. Only one format D-List is paired in the D-Link.
You define a D-Link as a two-dimensional accumulation D-Link by pairing two format D-Lists in a source D-Cube with two normal D-Lists in a target D-Cube. Normally source and target D-Lists are formatted to use the same D-Lists.
Employees
Employee A Employee B Employee C Employee D Employee E
Division
Division 1 Division 1 Division 2 Division 3 Division 2
Level
Level 3 Level 2 Level 5 Level 1 Level 1
Salary
80,000 70,000 100,000 60,000 45,000
The target D-Cube (Levels by Divisions) for the accumulation D-Link contains the D-Lists, Divisions and Levels. Initially, it contains the following data: 272 Analyst
Chapter 9: D-Links
Division 1
Level 1 Level 2 Level 3 Level 4 Level 5 1,000 1,000 1,000 1,000 1,000
Division 2
1,000 1,000 1,000 1,000 1,000
Division 3
1,000 1,000 1,000 1,000 1,000
Division 4
1,000 1,000 1,000 1,000 1,000
Division 5
1,000 1,000 1,000 1,000 1,000
Total
5,000 5,000 5,000 5,000 5,000
In the accumulation D-Link to transfer data from Employee Costs to Levels by Divisions, the source D-List, Employee Attributes, is left unpaired with the item Salary, selected. The source D-List, Employees, has been left an empty selection (auto-allocated D-Lists). The source format D-List, Divisions, is paired with the target D-List, Divisions, using match descriptions (p. 233). The source format D-List, Levels, is paired with the target D-List, Levels, using match descriptions. If the execution mode for the D-Link is set to Fill, the following data is transferred to the Levels by Divisions cube:
Division 1
Level 1 Level 2 Level 3 Level 4 Level 5 0 70,000 80,000 0 0
Division 2
45,000 0 0 0 100,000
Division 3
60,000 0 0 0 0
Division 4
0 0 0 0 0
Division 5
0 0 0 0 0
Total
105,000 70,000 80,000 0 100,000
Some of the cells are set to zero because no record was found in the database D-Cube. If the execution mode for the D-Link is set to Substitute, the following data is transferred to the Levels by Divisions cube:
Division 1
Level 1 Level 2 Level 3 1,000 70,000 80,000
Division 2
45,000 1,000 1,000
Division 3
60,000 1,000 1,000
Division 4
1,000 1,000 1,000
Division 5
1,000 1,000 1,000
Total
108,000 74,000 84,000
Chapter 9: D-Links
Division 1
Level 4 Level 5 1,000 1,000
Division 2
1,000 100,000
Division 3
1,000 1,000
Division 4
1,000 1,000
Division 5
1,000 1,000
Total
5,000 104,000
The cells without records stay the same (the data is still 1,000).
Division
Employee A Employee B Employee C Employee D Employee E Division 1 Division 1 Division 2 Division 3 Division 5
Levels
Level 3 Level 2 Level 5 Level 1 Level 1
Total Salary
88,000 78,000 104,000 64,000 64,000
The target D-Cube (Overheads) for the accumulation D-Link contains the D-Lists, Levels and Divisions. It contains the following data.
Division 1
Division 2
Division 3
Division 4
Division 5
Divisional Total
658,000 24,000 0
223,000 8,000 0
112,000 4,000 0
193,000 4,000 0
55,000 4,000 0
75,000 4,000 0
274 Analyst
Chapter 9: D-Links
Division 1
Division 2
Division 3
Division 4
Division 5
Divisional Total
682,000
Total Overheads
231,000
116,000
197,000
59,000
79,000
In the accumulation D-Link to transfer data from Employee Costs 2 to Overheads, the source D-List, Employee Attributes 2, is paired with the target D-List Overheads and the items, Basic Salary and Benefits, are matched. The source D-Lists, Employees and Levels, has been left with an empty selection (p. 232) (an auto-accumulated D-List). The source format D-List Divisions is paired with the target D-List Divisions using match descriptions (p. 233). In a lookup D-Link, unpaired D-Lists in the target D-Cube that do not contain a selection are referred to as auto-allocated D-Lists (with the exception of the lookup D-List). Each (detail) item in an auto-allocated D-List contains one entry from the driving format D-List (that is, in the driving D-List formatted item in the lookup D-List). This entry determines which data is taken from the driving source D-List. The data in Overheads has been transferred from Employee Costs 2 using the accumulation D-Link described above.
Division 1
Division 2
Division 3
Division 4
Division 5
Divisional Total
370,000 28,000 0
100,000 4,000 0
60,000 4,000 0
0 0 0
60,000 4,000 0
166,000
104,000
64,000
64,000
398,000
But, suppose we change the number in the Division 2 column, Benefits row from 4,000 to 8,000. And then run the accumulation D-Link inversely. The following data is transferred to Employee Costs 2 D-Cube.
Division
Employee A Employee B Employee C Division 1 Division 1 Division 2
Levels
Level 3 Level 2 Level 5
Total Salary
88,000 78,000 108,000
Chapter 9: D-Links
Division
Employee D Employee E Division 3 Division 5
Levels
Level 1 Level 1
Total Salary
64,000 64,000
Note that Employee C's benefits have increased from 4,000 to 8,000. When an accumulation D-Link is run inversely, any holds set in the source D-Cube are respected. Also, where there are a number of detail items, the total is broken back in the same ratio as the detail items.
Analyst<>Contributor Links
You can transfer data between Contributor and Analyst using Analyst's D-Link function. All the standard features of a normal D-Link are available. For example, the use of A-tables, D-Cube allocations, local allocation tables, match descriptions, and matching on codes. There are three types of links available: Analyst>Contributor Contributor>Analyst Contributor>Contributor
276 Analyst
Chapter 9: D-Links
Otherwise, most D-Link types will be permitted. You can use Match Descriptions, local allocation tables, A-tables, and D-Cube allocations. You can cut subcolumns, letting you match on codes. You can run accumulation links both ways, but lookup links run from Contributor to Analyst only. Note: If you use a saved allocation table and rename when using Contributor as a source or target in a D-Link, the allocation table must be manually updated in order for the D-Link to work like it did before the item was renamed.
Installation
Analyst users who do not have the Contributor Administration Console installed are not able to run Analyst<>Contributor D-Links. Note: When you have installed Client tools onto a workstation, it is installed only for the user doing the installation.
Security
To run a Contributor<>Analyst link, users must: Have Analyst and the Contributor Administration Console installed.
Chapter 9: D-Links Belong to a user, group or role which gives them rights to Analyst and the appropriate Contributor applications.
In addition, organizations may lock down access to the database or the Web server using the IP address, limiting who can run these links. Note: D-Links from ASCII and ODBC directly into Contributor are not allowed. You must use Contributor Import to do this.
Analyst>Contributor Links
These links can target either the production or development version of Contributor. If targeting the development version, they only appear on the Contributor screens after the Go to Production process is completed. If targeting the production version, you do not need to run a full Go to Production process. Instead, an activate process is run which moves the data into the import production queue and creates a snapshot of the data at the time the link was executed. Then a reconcile job is triggered, which updates the e.List items with the new data. The following steps occur when you target the development application. When you run an Analyst>Contributor Link, the data is read out of Analyst when you run the D-Link. The prepared data is written directly to the import queue in the Contributor application datastore as a prepared data block, e.List item by e.List item when you run the Go to Production process in the Contributor Administration Console, or through Automation.
278 Analyst
Chapter 9: D-Links You can have multiple links target the same e.List in the same Contributor cube. This is done by having each link create its own bucket in the import queue, so multiple links in the same import queue can target the same e.List. If the same link is run twice, the last run will overwrite the first run in the bucket.
There may be a delay between the Go to Production process and the data being reconciled in the Web client. If, in the meantime, a planner has edited one of the cells targeted by the link, that cell will be overwritten when the reconciliation takes place. This behavior is very similar to the reconciliation that takes place when you import data into Contributor from text files or via DTS. The following occurs when targeting the production application: The data is read out of Analyst when you run the D-Link. An activate process is run that applies the data to a cube. If running the link through the Analyst interface, the activate process happens automatically. If running the link using macros, you must run the @DLinkActivateQueue macro to activate the link. The import queue targeting the production system can be activated from Analyst.
Contributor>Analyst Links
The following steps occur when a Contributor>Analyst Link is run: A snapshot is taken of the production version of the Contributor Application. To ensure a consistent read if you are using the @SliceUpdate macro, take the Contributor application offline, or use the @DLinkExecuteList macro. The link process causes a prepare publish job to be run. You can monitor this in the Contributor Job Management screen. Once the Prepare publish job has run, a publish job is created and immediately set to ready. Note that the job is not run, this is because the Contributor job executor is not used. Analyst executes the transfer of data. A Contributor session is loaded and the entire data block is loaded for each e.List item. If the link is set up for more than one e.List item, it is the equivalent of loading a multi-e.List item view; a very memory intensive process. The data is written directly to the Analyst cube data file (H2D file).
Chapter 9: D-Links
Contributor>Contributor Links
These links go from the Production version of a Contributor source into the development version of the Contributor target. They are typically used between separate applications. If the applications are small, Contributor>Contributor links can be fast. However, if you transfer data between larger applications this way, you may run into problems due to memory use and scalability problems. You can avoid these issues by using the @SliceUpdate macro. You can also use Administration Links in the Contributor Administration Console. These copy data between Contributor cubes and applications. This process is scalable and so can move large volumes of data into either the development or production version of the Contributor application.
Save As Method
This method results in a copy which refers to the original Contributor application(s) and/or Analyst D-Cubes.
Steps
1. Open the link. 2. From the File menu, click Save As. 3. Choose a Library in which to copy the link. 4. Enter a name for the link copy. 5. Click OK.
Library Method
This method lets you select the link with or without other objects and choose either to copy or move the link. This results in a link which refers to the original Contributor application(s) although the source or target Analyst D-Cube (if it is not a Contributor > Contributor link) could be changed by this method if certain reference options are chosen when copying.
Steps
1. From the File menu, click Library, Objects. 2. Select the link with or without other objects and move it down. 3. Click the Copy selected objects button.
280 Analyst
Chapter 9: D-Links 4. In the Copy dialog box, enter a new name for the link, select a target library in which to copy the link, and select how to remap references. 5. Click OK.
Steps
1. Use the Library Copy wizard to copy the link and any related Analyst template cubes at the same time. 2. Create a Contributor application based on the copied Analyst template D-Cubes. 3. Point the link to your new application by using one of two ways. Open the link and then select your new Contributor application when prompted. From the File menu, click Library, Object. Double-click the link to move it down and then right click the link and select Change Contributor source on D-Links.
Chapter 9: D-Links Available RAM. The more available, the better. Multi-e.List item views with access tables, are not cut down as much as a single e.List item view with access tables. Maximum workspace setting (MAXWS) in Analyst.
This is the amount of space reserved for use by Analyst. As a general rule, this should not be more than half the available RAM. Setting this option too high can grab so much memory for the Analyst process that it does not leave enough for the Contributor process.
Opening a Link From a Computer that Does not Have Access to the Original Datastore
If a Contributor cube is used as a source or target, and the link is opened from a computer different from the one the link was created on (different datastore), you are prompted to reselect the connection and application to point to the data store and application name that holds the cube the link was built on. All matching is then preserved. You save the link, and the new connection will be saved, and the link will run in the future. This allows multiple data sources to be used. If the two applications are built from the same Analyst library, the GUIDs will match when pointing the link to the original datastore. Running a link from a workstation that does not have access to the original datastore will require manually opening the link and reselecting the connection. You can also update the connection for several links at once. Note: Analyst <>Contributor and Contributor <>Contributor links are associated with Contributor applications using unique identifiers (GUIDs). If you change the source or target Contributor application, you must remap the D-Link connections because the GUIDs have changed.
Steps
1. Click File, Library, Objects and select the links that you want to update and move then to the bottom pane. 2. In the bottom pane, right click and select Change Contributor Source on D-Links. 3. Enter the connection details for the new datastore. 4. Select the appropriate substitution option. This will update all the selected links with the new connection details.
282 Analyst
Chapter 9: D-Links rather than the actual time when the D-Link is run. This ensures consistency across D-Links coming from the same Contributor data source. If a subsequent D-Link in the macro has a different Contributor data source, the old source is closed and the new one opened. Similarly, if you have two @DLinkExecuteList steps in the same macro or in a sub-macro called via a @MacroExecute step, each time the old data source is closed and the new one is opened.
You can use Contributor>Contributor links to preserve data during cube dimensional restructuring, for example when adding a dimension.
Steps
1. Take the Contributor application offline. 2. Run a link from the production version of the Contributor application to the import queue of the development application. 3. Run Go to Production.
Chapter 9: D-Links However, this only applies to lookup and accumulation D-Links. In normal D-Links, if an item is not included in the right-hand side of an allocation table, it is assumed to be untargeted, so the original target data is kept unchanged, irrespective of whether you use Fill or Substitute mode. Similarly, on normal real dimension pairings that use match descriptions, unmatched items are kept untouched when the D-Link is run. This applies to both Fill and Substitute modes.