Using Essbase API, Excel VBA, and ODBC to Get Transaction Level Data
- Author Gidon Albert
- Published July 18, 2011
- Word count 743
Hyperion Essbase has this cool tool called Drill-Through Reports that allows you to drill into leaf level data in the cube. The tool comes standard with Version 9 and above. Users love drill-through because it is a natural extension of the process of analysis. After a balance has been identified, drill-through allows the user to see the transactions that comprise it.
However, sometimes you can’t use the built-in feature. For example, when data is fed into Essbase via a flat file, a data warehouse Drill-Through can only drill back into the source data. In the above example, Drill-Through will go into the source and simply load the transaction that makes up the balance, resulting in the same information. Another example is if data undergoes several transformations before it is loaded into the Essbase cube.
There is another way: develop a completely customized tool that can recognize the data coordinates and launch an ODBC call into the source database to retrieve the transactions. I have developed such a tool. It takes some time to build, but when it’s done, it’s great!
The idea is simple. When users are in ad-hoc analysis mode in Excel, they can:
-
Use the EssVGetDataPoint API function to identify the coordinates for a given data point.
-
Use the EssVGetMemberInfo to API function to get information about the data point.
-
Run validations to make sure the data point is drillable. These validations will be specific to each cube and data type. For example, make sure the element is a leaf level element.
-
Construct a SQL query using the coordinates collected in Step 1.
-
Open a temporary ODBC connection with the source transaction database.
-
Get the transaction data and paste it into a new sheet in Excel.
These steps are captured in a sequence of VBA calls and packaged in a friendly user interface (I use the cell context menu—see figure below) for easy access.
Well, it all sounds easy enough, but there are four things that need to be done before we even start dealing with the data and the metadata:
-
Check to see if Essbase is installed. If not, it won’t show the Drill menu.
-
Check to see if the user has an active connection to Essbase. If not, same as above.
-
Check to see if the user is in an ad-hoc analysis grid.
-
Check to see if the selected cell is a valid data cell.
To get things moving along, you must customize the process to test for specific conditions in the metadata. Depending on the configuration of the Essbase application, these conditions can include identifying cubes, tables, members, aliases, and even calculation rules. The nice thing is that the API provides the tools to deal with almost any situation. The wide variety of functions available through the Essbase API opens up endless possibilities for customization. The only limitation is the developer’s imagination.
In one environment, I created a solution that had to distinguish between two separate cubes. The cube structures were different so the solution had to execute different metadata tests and ODBC calls. The nice thing about this specific solution was that the two cubes were related. Drill-Through from one cube resulted in detailed balances from the other cube. After drilling through from the first cube, the user could continue to drill through from the second cube to get transaction level detail data from the source.
Of course, you can’t use this approach in every case. In the above example, the mapping between the Essbase data and the source data was very similar. This meant a relatively simple SQL statement and fairly straightforward validation tests. In other instances, the mapping may be extremely complex. In these instances, using this approach may be impractical.
Advantages of the Essbase tool:
• Cross Platform (Essbase, Planning, HFM)
• Integrated security
• Built-in functionality
Drawbacks of the Essbase tool:
• Depends on ETL process
• Requires lots of customization
• "One Size Fits All" functionality
Advantages of the custom VBA/API approach:
• Completely customizable
• Independent of ETL process
• Can be adapted for other OLAP platforms and any data source
Disadvantages of the custom VBA/API approach:
• Completely customizable
• Not native to Essbase
• Only works in Excel
When is it good to use the custom VBA/API approach?
• Data source does not have transaction level data
• Simple mapping between data source and Essbase
• Multiple hops to get to transaction level data
Anyone out there trying this? I’d love to hear your thoughts!
Gidon Albert, a consultant for TopDown Consulting, has 15+ years experience successfully managing increased responsibilities in large-scale, integrated and complex Fortune 500 organizations. He is a Certified Project Management Professional and a Certified Hyperion Essbase Analytics Developer with an extensive background in the several broad-based competencies.
Article source: https://articlebiz.comRate article
Article comments
There are no posted comments.
Related articles
- Why "China Literacy" is the New Global Career Currency
- Is full synthetic oil better?
- Indian Tapestries & Embroidered Wall Hangings: Artisan Valentine's Day Treasures
- The Artisan Edit: Carved Doors – A Beautiful, Authentic Valentine's Gift
- A Bollywood Dream House: Where Indian Doors & Tapestries Meet Movie Magic
- A Townhome That Tells a Thousand Stories
- Antique Carved Armoires: Statement Pieces That Transform Your Space
- Team Romines Guide to Manufactured Home Affordability (Updated for 2026)
- Best Oil for Lawn Mower Engines: A Complete Guide
- Semi Truck Oil:The Trucker's Guide to Million-Mile Engines!
- Bobcat Skid Steer Hydraulic Oil
- 2 Stroke oil for boat motor: Amsoil HP Marine® 100% Synthetic 2-Stroke Oil
- Peliccan Cars – Trusted Airport Transfer Service Across London
- Why Patterned Carpet Is Being Used More Intentionally in Modern Homes
- The Top Mistakes That Make Your Bids Too Wordy (And How To Fix Them)
- Jewel-Toned Armoires & Carved Doors: The Bold Color Revival
- Sacred Spaces in Paradise: Mogul Interior's Hand-Carved Heritage for Bahamas Wellness Resorts
- Small Space, Big Impact: POS Display Strategies That Work In Busy Hospitality Environments
- The Art of Confident Color: A Virginia Home That Celebrates Bold Design
- Pattern Alchemy: When Carved Wood Meets Brass and Bold Textiles
- Online home search portals vs. working directly with a real estate agent. What is the difference?
- Synthetic Power Steering Fluid: Why Your System Deserves Better Than Generic Options
- This Colonial Revival Mudroom Proves Practicality Can Be Stunning
- Final Fantasy I & II Premium Package (Japanese PlayStation) — Complete Collector’s Guide
- Miami Bungalow Is a Masterclass in Seaside Whimsy
- Blues That Wow: Inside an Estate Where Drama Meets Serenity
- Nintendo GameCube Official Storage Chest Station Rack Japan Collector’s Guide
- Peoria AZ Roofing Contractor – Residential Shingle Roof Specialists
- Are Smart Locks Really More Secure? Breaking Down The Myths, Risks, And Reality
- Villa Azalea: The Best Airbnb in Nagano Prefecture Japan