Exporting an Excel Report's DBRW cells with all their dimension elements information

Post Reply
Sandy
Posts: 4
Joined: Thu Oct 27, 2016 10:51 am
OLAP Product: TM1
Version: 2.1
Excel Version: 365

Exporting an Excel Report's DBRW cells with all their dimension elements information

Post by Sandy »

Hello everyone,

As we know that the DBRW function is used to retrieve values from a specific Cube, or to write values to the cube, based on the dimension element intersections.
Conversely, could anyone help me to get a simple .csv export of all the dimension elements along with the measure value for each cell in the TM1 excel report, while taking the Excel application report as the input.

Thanks in advance.
User avatar
Steve Rowe
Site Admin
Posts: 2464
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Exporting an Excel Report's DBRW cells with all their dimension elements information

Post by Steve Rowe »

Hi Sandy,
Suggest you read up on the help for TI processes and search the forum and other on line resources for information on this.

It is pretty much as straightforward as you can get with a TI process and you'll learn a lot more researching the issue yourself.

Feel free to come back after you have worked on the problem yourself and encounter any problems.

Cheers,
Technical Director
www.infocat.co.uk
Sandy
Posts: 4
Joined: Thu Oct 27, 2016 10:51 am
OLAP Product: TM1
Version: 2.1
Excel Version: 365

Re: Exporting an Excel Report's DBRW cells with all their dimension elements information

Post by Sandy »

Hi Steve,

I am not trying to retrieve the cube data with a TI process- quite the contrary.
I want to -
* Take a TM1 Perspective Excel Report as the Source [not the Cube].
* For each DBRW cell in the Report, retrieve all the dimension elements[as seen in the 'Function Arguments'], and put them in a seperate .csv file, along with the cell amount value.

Thanks in advance.
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Exporting an Excel Report's DBRW cells with all their dimension elements information

Post by tomok »

You can't do what you want using any functionality in TM1 that I know of. An Excel report can only be used as a data source in a TI when you have a range in the workbook defined as a table and you have that workbook defined on your server as an ODBC data source. Even in this case you would not see the DBRW, only the value that the DBRW last evaluated to before your process was run.

You might be able to write some sort of Macro in VBA that would do what you want. I've never had the need to do something like this so I can't tell you where to start. Good luck.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Exporting an Excel Report's DBRW cells with all their dimension elements information

Post by declanr »

MyString=ActiveCell.Formula
The above can be used in VBA to get the formula of a cell as a string. You would need to loop the whole worksheet or book; get the formula as a string for each cell... check if it starts with DBRW and then cycle through the delimiters to get each next dim element... but if the dim element is a formula itself you would need to keep cycling back until you find the element name.

Sounds like a lot of work...
Declan Rodger
Post Reply