Oracle Essbase 11 Development Cookbook
By Jose R. Ruiz
()
About this ebook
Related to Oracle Essbase 11 Development Cookbook
Related ebooks
Microsoft Dynamics NAV 7 Programming Cookbook Rating: 0 out of 5 stars0 ratingsPostgreSQL 9 Administration Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsOracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook Rating: 0 out of 5 stars0 ratingsOracle Database 12c Security Cookbook Rating: 0 out of 5 stars0 ratingsSAP BusinessObjects Dashboards 4.1 Cookbook Rating: 0 out of 5 stars0 ratingsMicrosoft SQL Server 2008 R2 Administration Cookbook Rating: 5 out of 5 stars5/5Microsoft Dynamics CRM 2011 Scripting Cookbook Rating: 0 out of 5 stars0 ratingsOracle Essbase 9 Implementation Guide Rating: 0 out of 5 stars0 ratingsVote!: The Complicated Life of Claudia Cristina Cortez Rating: 0 out of 5 stars0 ratingsInstant Pentaho Data Integration Kitchen Rating: 0 out of 5 stars0 ratingsThe Business Analyst's Guide to Oracle Hyperion Interactive Reporting 11 Rating: 5 out of 5 stars5/5Oracle SOA Suite 11g Administrator's Handbook Rating: 0 out of 5 stars0 ratingsRDBMS Relational Database Management System A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsGetting Started with Oracle Data Integrator 11g: A Hands-On Tutorial Rating: 5 out of 5 stars5/5Oracle CPQ Cloud Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsOracle Hyperion Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsOracle Cloud Applications A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsOracle RAC Database A Complete Guide Rating: 0 out of 5 stars0 ratingsOracle Business Intelligence Enterprise Edition 12c - Second Edition Rating: 0 out of 5 stars0 ratingsLearn T-SQL Querying: A guide to developing efficient and elegant T-SQL code Rating: 0 out of 5 stars0 ratingsOracle Fusion Applications A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsORACLE 12C Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsExpert T-SQL Window Functions in SQL Server 2019: The Hidden Secret to Fast Analytic and Reporting Queries Rating: 0 out of 5 stars0 ratingsApplication Support A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsOracle SOA BPEL Process Manager 11gR1 A Hands-on Tutorial Rating: 5 out of 5 stars5/5Pro Oracle SQL Development: Best Practices for Writing Advanced Queries Rating: 0 out of 5 stars0 ratingsOracle Business Intelligence Enterprise Edition 12c A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsInstant SQL Server Analysis Services 2012 Cube Security Rating: 0 out of 5 stars0 ratingsIBM InfoSphere DataStage A Complete Guide - 2019 Edition Rating: 5 out of 5 stars5/5Oracle HCM Cloud A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratings
Information Technology For You
Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Summary of Super-Intelligence From Nick Bostrom Rating: 4 out of 5 stars4/5CompTIA A+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Core 1 Exam 220-1101 Rating: 0 out of 5 stars0 ratingsCompTia Security 701: Fundamentals of Security Rating: 0 out of 5 stars0 ratingsHow to Write Effective Emails at Work Rating: 4 out of 5 stars4/5A Mind at Play: How Claude Shannon Invented the Information Age Rating: 4 out of 5 stars4/5COMPUTER SCIENCE FOR ROOKIES Rating: 0 out of 5 stars0 ratingsData Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5Learning Microsoft Endpoint Manager: Unified Endpoint Management with Intune and the Enterprise Mobility + Security Suite Rating: 0 out of 5 stars0 ratingsSupercommunicator: Explaining the Complicated So Anyone Can Understand Rating: 3 out of 5 stars3/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Cyber Security Consultants Playbook Rating: 0 out of 5 stars0 ratingsCybersecurity for Beginners : Learn the Fundamentals of Cybersecurity in an Easy, Step-by-Step Guide: 1 Rating: 0 out of 5 stars0 ratingsInkscape Beginner’s Guide Rating: 5 out of 5 stars5/5Machine Learning Interview Questions Rating: 5 out of 5 stars5/5CompTIA ITF+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam FC0-U61 Rating: 5 out of 5 stars5/5CODING INTERVIEW: Advanced Methods to Learn and Excel in Coding Interview Rating: 0 out of 5 stars0 ratingsCompTIA Network+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008 Rating: 0 out of 5 stars0 ratingsLinux Command Line and Shell Scripting Bible Rating: 3 out of 5 stars3/5Google SketchUp for Game Design: Beginner's Guide Rating: 5 out of 5 stars5/5Self-Sovereign Identity Rating: 0 out of 5 stars0 ratingsUnity Game Development Essentials Rating: 5 out of 5 stars5/520 Windows Tools Every SysAdmin Should Know Rating: 5 out of 5 stars5/5Getting started with Audacity 1.3 Rating: 5 out of 5 stars5/5Get Programming with Haskell Rating: 0 out of 5 stars0 ratingsDevOps Handbook: What is DevOps, Why You Need it and How to Transform Your Business with DevOps Practices Rating: 4 out of 5 stars4/5
Reviews for Oracle Essbase 11 Development Cookbook
0 ratings0 reviews
Book preview
Oracle Essbase 11 Development Cookbook - Jose R. Ruiz
Table of Contents
Oracle Essbase 11 Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Understanding and Modifying Data Sources
Introduction
Setting up an Account or Measures dimension with a parent-child reference
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up dimensions with a generation reference
Getting ready
How to do it...
How it works...
See also
Adding columns for outline formulas
Getting ready
How to do it...
How it works...
Adding the solve order column to tables that have ASO formulas
Getting ready
How to do it...
How it works...
Adding and populating the Sort Order Column
Getting ready
How to do it...
How it works...
See also
Adding tables for varying attributes
Getting ready
How to do it...
How it works...
See also
Determining hierarchies in relational tables
Getting ready
How to do it...
How it works...
There's more...
See also
Using the Essbase Outline Extractor to extract dimensions
Getting ready
How to do it...
How it works...
There's more...
Using Star Analytics to build your star schema from existing Essbase cubes
Getting ready
How to do it...
How it works...
See also
2. Using Essbase Studio
Introduction
Advantages of Essbase Studio
Disadvantage of Essbase Studio
Creating TBC sample database and connecting to the data source
Getting ready
How to do it...
How it works...
Adding user-defined tables
Getting ready
How to do it...
How it works...
Building your minischema
Getting ready
How to do it…
How it works...
See also
Setting up joins in a minischema
Getting ready
How to do it...
How it works...
There’s more…
See also
Adding tables to a minischema
Getting ready
How to do it…
How it works…
See also
Using a text file data source
Getting ready
How to do it…
How it works…
Working with Common Platform Language (CPL)
Getting ready
How to do it…
How it works…
Using Sort Order on data elements
Getting ready
How to do it…
How it works...
3. Building the BSO Cube
Introduction
Creating hierarchies using a parent-child reference table
Getting ready
How to do it…
How it works…
See also
Creating hierarchies using a generation reference table
Getting ready
How to do it…
How it works…
Adding attribute dimensions to hierarchies
Getting ready
How to do it…
How it works…
See also...
Building a Calendar dimension
Getting ready
How to do it…
How it works...
Creating date elements
Getting ready
How to do it…
How it works...
Creating Alias tables
Getting ready
How to do it…
How it works...
There's more...
Developing cube schema and an Essbase model
Getting ready
How to do it…
How it works...
There's more...
See also
Setting Essbase properties
Getting ready
How to do it…
How it works...
Deploying a cube
Getting ready
How to do it…
How it works...
Creating an OLAP Model in EIS
Getting ready
How to do it…
How it works...
Creating an OLAP metaoutline in EIS
Getting ready
How to do it…
How it works...
4. Building the ASO Cube
Introduction
Using the Connection Wizard to set up an ASO cube
Getting ready
How to do it...
How it works...
Building a Measures dimension from the fact table
Getting ready
How to do it...
How it works...
There's more...
See also
Creating an ASO Cube Schema and an Essbase Model
Getting ready
How to do it...
How it works...
Understanding Essbase Model properties for the ASO cube
Getting ready
How to do it...
How it works...
There's more...
See also
Designing a drill-through report
Getting ready
How to do it...
How it works
There's more
Using the View dimension for Dynamic Time Series reporting
Getting ready
How to do it...
How it works
5. Using EAS for Development
Introduction
Adding an application and database on an Essbase Server
Getting ready
How to do it...
How it works...
Using the outline editor to add dimensions
Getting ready
How to do it...
How it works...
Using dimension build rules to add the parent-child dimension
Getting ready
How to do it...
How it works...
See also
Creating dimension build rules to add a base and attribute dimensions
Getting ready
How to do it...
How it works...
There's more...
See also
Using dimension build rules to add user-defined attributes and associate dimensions
Getting ready
How to do it...
How it works...
Creating load rules for flat file data loads
Getting ready
How to do it...
How it works...
Creating substitution variables
Getting ready
How it works...
There's more...
There's more...
See also
Using If/Else logic and substitution variables in outline formulas
Getting ready
How to do it...
How it works...
See also
Using Text measures on a BSO cube
Getting ready
How to do it...
How it works...
See also
Using Date measures on a BSO cube
Getting ready
How to do it...
How it works...
See also
Using different outline formula logic at parent level
Getting ready
How to do it...
How it works...
See also
Creating a load rule for SQL data load using substitution variables
Getting ready
How to do it...
How it works...
See also
Using MDX in aggregate storage applications
Getting ready
How to do it...
How it works...
6. Creating Calculation Scripts
Introduction
Using Essbase Set function commands and Calc All to calculate cubes
Getting ready
How to do it...
How it works...
See also
Using control flow commands, conditional, and logical operators
Getting ready
How to do it...
How it works
See also
Using substitution variables in calculations script
Getting ready
How to do it...
How it works...
See also
Using UDAs and Calc Two Pass in calculation scripts
Getting ready
How to do it...
How it works...
There's more...
See also
Using Attributes in calculation scripts
Getting ready
How to do it...
How it works...
See also
Clearing data and using the cross- dimensional operators in a calculation script
Getting ready
How to do it...
How it works
See also
Using allocation functions in calculation scripts
Getting ready
How to do it...
How it works...
See also
Modifying Essbase settings to improve calculation performance
Getting ready
How to do it...
How it works...
See also
Using MDX to calculate Aggregate Storage database
Getting ready
How to do it...
How it works...
7. Using MaxL to Automate Process
Introduction
Setting up folder structure and other files needed for MaxL automation
Getting ready
How to do it...
How it works
There's more...
Executing dimension build rules using MaxL
Getting ready
How to do it...
How it works...
See also
Executing load rules using MaxL
Getting ready
How to do it...
How it works...
See also
Executing calculations using MaxL
Getting ready
How to do it...
How it works...
Executing partitions using MaxL
Getting ready
How to do it...
How it works...
Executing report scripts using MaxL
Getting ready
How to do it...
How it works...
Adding or changing substitution variables with MaxL
Getting ready
How to do it...
How it works...
See also
Using ASO incremental data loads
Getting ready
How to do it...
How it works...
There's more...
Using encryption in MaxL scripts
Getting ready
How to do it...
How it works...
Deploy dimension created in Essbase Studio
Getting ready
How to do it...
How it works...
8. Data Integration
Introduction
Using report script to extract data to a text file
Getting ready
How to do it...
How it works...
See also
Using the DATAEXPORT function to extract data into a text file
Getting ready
How to do it...
How it works...
See also
Using the DATAEXPORT function to extract data into a relational source
Getting ready
How to do it...
How it works...
See also
Exporting data using column format
Getting ready
How to do it...
How it works...
See also
Using MaxL to extract the outline in XML format
Getting ready
How to do it...
How it works...
Using @XREF functions to move data between BSO cubes
Getting ready
How to do it...
How it works...
Partitioning data from BSO to ASO cubes
Getting ready
How to do it...
How it works...
Using MDX for extracting data using API
Getting ready
How to do it...
How it works...
There's more...
9. Provisioning Security Using MaxL Editor or Shared Services
Introduction
Using MaxL editor to add and externalize a user
Getting ready
How to do it...
How it works
There's more...
Using Shared Services to add and provision a user
Getting ready
How to do it...
How it works...
Using MaxL Editor to set up a filter for MetaRead and Write access
Getting ready
How to do it...
How it works...
Using Shared Services to provision filters to a group
Getting ready
How to do it...
How it works...
Using Shared Services to provision calculation scripts to a group
Getting ready
How to do it...
How it works...
Using MaxL to export security file
Getting ready
How to do it...
How it works...
10. Developing Dynamic Reports
Introduction
Creating a connection and using substitution variables in financial reports
Getting ready
How to do it...
How it works...
See also
Using the column templates and formatting reports
Getting ready
How to do it...
How it works...
See also
Retrieving data using UDAs and Attributes
Getting ready
How to do it...
How it works...
See also
Retrieving data using children and descendants member set functions
Getting ready
How to do it...
How it works...
See also
Using User Prompts and the POV to select members
Getting ready
How to do it...
How it works...
See also
Using conditional formatting and suppression in financial reports
Getting ready
How to do it...
How it works...
Adding related content to financial reports
Getting ready
How to do it...
How it works...
Creating a web analysis report
Getting ready
How to do it...
How it works...
Index
Oracle Essbase 11Development Cookbook
Oracle Essbase 11 Development Cookbook
Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2012
Production Reference: 1170112
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-326-5
www.packtpub.com
Cover Image by Sandeep Babu (<[email protected]>)
Credits
Author
Jose R. Ruiz
Reviewers
Alexia Rodriguez Alwine
Satyanarayana Bodhanapu
Acquisition Editor
Kerry George
Lead Technical Editor
Susmita Panda
Technical Editor
Llewellyn F. Rozario
Copy Editor
Neha Shetty
Project Coordinator
Vishal Bodwani
Proofreaders
Aaron Nash
Chris Smith
Indexer
Rekha Nair
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
About the Author
Jose R. Ruiz is an Oracle Essbase 11 Certified Implementation Specialist with over nine years experience in developing enterprise-level Essbase applications. He has maintained and conducted post-production development on 18 Essbase databases. In addition, Jose Ruiz has been charged with developing E-commerce, Fixed Assets, Balance Sheets, Point of Sales, and Inventory databases.
Jose Ruiz is currently working with Oracle consultants on designing, developing, and implementing an Inventory, Purchase Order, and Sales Data Mart and an Essbase database at his current employer.
I would like to thank my colleagues and friends Peter Beddoe and Alexia Alwine for their review and advice. In addition, I would like to thank my wife, Yaneth C. Ruiz, for her support and patience throughout this endeavor.
About the Reviewer
Alexia Rodriguez Alwine is a Project Manager with extensive experience in the pharmaceutical and consumer products industries. She has worked with Unilever, Inc. and several of its subsidiaries; Steifel Laboratories, a GlaxoSmithKline company; and BE Aerospace. In addition to serving as a Project Manager, she has served as Hyperion Administrator, Systems Analyst, and Finance Manager. Her experience with Oracle includes Web Analysis, Financial Reporting, FDM, HFM, Hyperion Planning, Oracle Upgrades, and Essbase Migration Projects. She also has experience with SAP and Data Mart implementation.
Alexia graduated with a bachelor's degree in economics, communications, and international relations from the University of Pennsylvania. She received her MBA from the University of Florida. In her spare time, she researches and conducts workshops concerning the impact of technology on the family.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read, and search across Packt's entire library of books.
Why Subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Instant Updates on New Packt Books
Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.
Preface
Oracle Essbase 11 Development Cookbook will help you learn the tools necessary for the development of Essbase databases in Oracle Essbase version 11.1.2.1. Here you will find over 90 recipes that explain everything from how to use a relational data model to building and loading an Essbase database in Essbase Studio. The book also goes over how to build the Block Storage (BSO) databases and explains some of the options are exclusive to building an Aggregate Storage (ASO) database. In this book, we will be using Essbase Studio, Essbase Integration Services (EIS), and Essbase Administration Service (EAS) to build databases, and we will discuss the strengths of each tool. Moreover, we discuss how to create Calculation Scripts, use MaxL to automate your processes, and integrate data. Finally, we step through how to effectively implement security, and how to build dynamic reports. The reader is encouraged to use these recipes as the foundation for their own customized databases and scripts.
What this book covers
Chapter 1, Understanding and Modifying Data Sources. This chapter explains how to prepare your data source to build hierarchies and load data in Essbase databases. Because you should not have to rebuild the wheel, we cover some tools that will assist us in extracting hierarchies from existing Essbase databases for the purpose of setting up your star schema in a relational environment. The goal of this chapter is to show the reader the components needed to maintain metadata in a relational environment and set up that environment to support drill-through reporting. This being said, most of the techniques used in this chapter can be implemented using flat files as well.
Chapter 2, Using Essbase Studio. We will begin this chapter by discussing advantages of and disadvantages of Essbase Studio when compared to development tools like Essbase Integration Services (EIS) and Essbase Administration Services (EAS). This chapter also has some of the more basic yet necessary steps needed to build your database using Essbase Studio. We will review how to create a data source, minischema, and manipulate data elements with Common Platform Language (CPL).
Chapter 3, Building the BSO Cube. In this chapter, we build and deploy the TBC Block Storage (BSO) database using Essbase Studio. We also explore the building of TBC databases using Essbase Integration Services (EIS).
Chapter 4, Building the ASO Cube. This chapter explains some of the options exclusive to building the Aggregate Storage (ASO) model. In addition, we learn how to build a Measure dimension from the fact table, and how to build a drill-through report in Essbase Studio.
Chapter 5, Using EAS for Development. This chapter explains how to build the Sample Basic database using the Essbase Administration Services (EAS) outline editor, build rules, load rules, and flat files. We also explore the use of Text and Date measures, outline formulas in the BSO model, and MDX in an aggregate storage database.
Chapter 6, Creating Calculation Scripts. In this chapter, we learn how to use calculation scripts to run complex formulas that require multiple passes through the Essbase database, data allocations, copying data, clearing data, aggregating data, and some best practices for optimizing your calculations' performance.
Chapter 7, Using MaxL to Automate Process. This chapter teaches you how to automate the updating, building, and loading of an Essbase database. This chapter more specifically shows MaxL script techniques designed to make scripts reusable and portable. These techniques will allow us to move our automation from development to staging or production without having to re-write our MaxL script before migration.
Chapter 8, Data Integration. This chapter explains how to integrate data in between Essbase and relational databases. In addition, we discuss how to move data between Essbase databases.
Chapter 9, Provisioning Security using MaxL Editor or Shared Services. This chapter shows how to use Shared Services and MaxL to set up security. Essbase has very flexible and powerful security features. This functionality, if planned carefully, can make your database more intuitive and customized to the needs of each end user.
Chapter 10, Developing Dynamic Reports. In this chapter, you will learn how to build a more dynamic Financial Report. Moreover, we discuss how to build a simple Web Analysis Report for an even more dynamic user experience.
What you need for this book
You will need the following software to complete the recipes in this book:
Oracle EPM Essbase 11.1.2.1
Essbase Studio 11.1.2.1
Essbase Integration Services (EIS)
Financial Report & Web Analysis
SQL Server 2008/ Oracle 11g
Essbase Outline Extractor
Star Integration Server – Express Edition
Who this book is for
If you are an experienced Essbase developer, Essbase Database Designer or Database Administrator, then this book is for you. This book assumes that you have good knowledge of Oracle Essbase.
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: enter connection: \'TBC'::'TBC.dbo.MEASURES'.'CHILD'||
- ||connection : \'TBC'::'TBC.dbo.MEASURES'.'MEASURES_ALIAS' in the textbox.
A block of code is set as follows:
Create Table PRODUCTS(
PRODUCTID int NOT NULL,
SKU varchar(15) NULL,
SKU_ALIAS varchar(25) NULL,
Constraint PK_PRODUCTS_PRODUCTID Primary Key (PRODUCTID)
);
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: Click on cell F2, then click on the box to the right and bottom of the cell, and drag it down to cell F12.
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]> with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
Questions
You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.
Chapter 1. Understanding and Modifying Data Sources
In this chapter, we will cover the following topics:
Setting up an Account or Measures dimension with a parent-child reference
Setting up dimensions with a generation reference
Adding columns for outline formulas
Adding the Solve Order column to tables that have ASO formulas
Adding and populating the Sort Order Column
Adding tables for varying attributes
Determining hierarchies in relational tables
Using the Essbase Outline Extractor to extract dimensions
Using Star Analytics to build your star schema from existing Essbase cubes
Introduction
In this chapter, we will build components into our relational environment that will allow us to successfully build an Essbase database and facilitate drill-through reporting. Although we are discussing relational data sources, the properties, attributes, and concepts discussed in this chapter can be used to build hierarchies off data sources such as flat files for example. The techniques used here can be used in tools like Essbase Administrative Services, Essbase Integration Services, and Essbase Studio. This chapter also has recipes on the Essbase Outline Extractor and Star Analytics. These two tools allow us to extract hierarchies from existing Essbase cubes. We would use these tools to extract existing hierarchies or modify existing hierarchies to build all or parts of our star schema.
Setting up an Account or Measures dimension with a parent-child reference
In this recipe, we will set up a relational table in a parent-child reference format. We will also review the type of properties that can go in each column and their definitions. The Account or Measure dimension is normally the most dynamic dimension in a financial database and it is recommended that you use the parent-child structure to build the dimension in a relational environment. The parent-child reference also allows ragged hierarchies without having to add columns to your tables when an additional level or generation is needed. We will also review an alternative method, which requires us to use the measures field in our fact table to build our Measure dimension.
Getting ready
To get started, open your SQL Server Management Studio, and add a database called TBC. For this recipe, we are using T-SQL, but the PL\SQL equivalent will be provided where applicable. You should add a SCHEMA called TBC using tools such as TOAD, SQL Developer, or Golden, if you are using Oracle.
How to do it...
Run the following scripts to create the Measures table. We can change the script below to PL/SQL by replacing int with INTEGER and varchar() with VARCHAR2(). A screenshot of the table follows the script:
--This is the syntax in T-SQL
create table MEASURES
(
SORTKEY int not null,
MEASURESID int not null,
PARENT varchar(85) null ,
CHILD varchar(85) not null,
MEASURES_ALIAS varchar(85) null ,
CONSOLIDATION varchar(85) null ,
TWOPASSCALC varchar(85) null ,
STORAGE varchar(85) null ,
VARIANCEREPORTING varchar(85)