Therefore, I put together a GUI utility that uses the Essbase Java API to output the result of an MDX query to a table that can then be saved to a file. The file is tab-delimited, so it can easily be imported to Excel. The tool is ever so aptly named the MDX Query Tool. Hey, I'm an Essbase geek, not a marketing guru! If anyone else has a better name, I'm willing to rebrand the tool posthaste.
Once unzipped, you'll see a lib directory. The ess_es_server.jar file included with the MDX Query Tool is for version 11.1.2.3. If you're on a different version, you'll need to find the ess_es_server.jar in your install and copy it to the lib directory. For example, it resides in ORACLE_HOME/common/EssbaseJavaAPI/11.1.2.0/lib in my 11.1.2.3 installation.
After launching the MDXQuery.bat|sh file, you'll need to input the appropriate parameters for your environment, as seen below:
Clicking on the "Save to file" button at the bottom will open a dialog box that will allow you to choose a file path/name for the file. You can then open this file, copy the contents, and paste directly to Excel. If there is demand, I will add the ability to copy the results directly from the table to the clipboard. Just let me know in the comments.
I hope this tool makes it easier for you to work with MDX queries.
Nice work! You gonna go open source on this by chance?
ReplyDeleteThanks, Jason. This tool actually contains mdx-related code that is also in cubeSavvy. So that would kinda be like Tim Tow open-sourcing Dodeca. Hey, at least I'm giving it away for free.
ReplyDelete