Display Element Attribute in Worksheet

Post Reply
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Display Element Attribute in Worksheet

Post by bunchukokoy »

Hi!

Does anyone know how I am gonna dispalay a specific element attribute to a cell in excel?

It's like I have an attribute for Dimension Stores which is EStablishedDate. This attribute is a string type. And I want to display on a cell the attribute of Store#1.

Does anyone know how?
Thanks!

bunchukokoy :D
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Display Element Attribute in Worksheet

Post by Alan Kirk »

bunchukokoy wrote: Does anyone know how I am gonna dispalay a specific element attribute to a cell in excel?

It's like I have an attribute for Dimension Stores which is EStablishedDate. This attribute is a string type. And I want to display on a cell the attribute of Store#1.
Check the TM1 help files for Excel worksheet functions. The function that you want is DBRA()
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Display Element Attribute in Worksheet

Post by bunchukokoy »

Hi! Allan,

I have used the function so I have this sample =DBRA("server:store",$A$1,"EST DATE"), but it returns blank. But when I hard-code the Store into
=DBRA("server:site","106","EST DATE"), it returns the right one... Do you know what's wrong Sir?

I did reference the control objects, the cube for the attributes of this dimension and it also returned the right one, But I kinda like the one you mentioned.

Thanks!
:D
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Display Element Attribute in Worksheet

Post by Alan Kirk »

bunchukokoy wrote:Hi! Allan,

I have used the function so I have this sample =DBRA("server:store",$A$1,"EST DATE"), but it returns blank. But when I hard-code the Store into
=DBRA("server:site","106","EST DATE"), it returns the right one... Do you know what's wrong Sir?
My bet is that the value in cell A1 is stored as a numeric one. To force the DBRA formula to read it as a string, insert a single quote in front of it; so '106 (the quote won't be visible in Excel) rather than just 106.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Display Element Attribute in Worksheet

Post by bunchukokoy »

Wow!

You're right Allan.

Thanks very much Allan... You're indeed a help. Thanks! :D :D :D
bskalli
Posts: 21
Joined: Wed May 14, 2008 7:53 am

Re: Display Element Attribute in Worksheet

Post by bskalli »

You can also use DBRA("server:store",Text($A$1,"@"),"EST DATE")
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Display Element Attribute in Worksheet

Post by Alan Kirk »

bskalli wrote:You can also use DBRA("server:store",Text($A$1,"@"),"EST DATE")
That's correct, though I probably wouldn't; as far as possible I try to strip out any unnecessary formulas in an Excel report workbook using TM1. By themselves the calculation time can be insignificant but as more and more functions go in it can start to have a performance impact. If you have say 30 stores, that's an extra 30 function calls that Excel has to make in the process of calculating the sheet. But certainly that expression should still return the correct result.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply