Book Image

Oracle Essbase 11 Development Cookbook

By : Jose R Ruiz
Book Image

Oracle Essbase 11 Development Cookbook

By: Jose R Ruiz

Overview of this book

Oracle Essbase is a Multi-Dimensional Online Analytical Processing (OLAP) server, providing a rich environment for effectively developing custom analytic and enterprise performance management applications. Oracle Essbase enables business users to quickly model complex business scenarios. This practical cookbook shows you the advanced development techniques when building Essbase Applications and how to take these applications further. Packed with over 90 task-based and immediately reusable recipes, this book starts by showing you how to use a relational data model to build and load an Essbase cube and how to create a data source, prepare the mini schema, and work with the data elements in Essbase Studio. The book then dives into topics such as building the BSO cube, building the ASO cube, using EAS for development, creating Calculation Scripts and using MaxL to automate processes.
Table of Contents (17 chapters)
Oracle Essbase 11 Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Using MDX for extracting data using API


In this recipe, we will extract data using the APIs in Excel and an MDX script. We will be using the Visual Basic editor to load the smartviewvba.bas file, enter the code needed to connect to Essbase, and extract data specified in our MDX script. In addition, we will conduct a similar task manually using the Execute MDX option in Smart View.

Getting ready

To get started, click on the Start menu and navigate to Programs | Microsoft Office | Excel.

How to do it...

  1. In Excel, click on Sheet1 and press Alt+F11. You will launch Microsoft Visual Basic editor, which should look like the following screenshot:

  2. Right-click on Microsoft Excel Objects under VBAProject (Book1), click on Import File..., in the Import File menu, browse to C:\Oracle\SmartView\Bin, click on SmartviewVBA.bas, and click on the Open button. You should see the file imported under the Modules folder.

  3. Double-click on the SmartviewVBA module and type the following database constant variables below...