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.
Exporting an Excel Report's DBRW cells with all their dimension elements information
- 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
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,
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
www.infocat.co.uk
Re: Exporting an Excel Report's DBRW cells with all their dimension elements information
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.
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.
-
- 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
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.
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.
-
- 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
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.MyString=ActiveCell.Formula
Sounds like a lot of work...
Declan Rodger