hello everyone
please explain to me why we can not use the ATTRN in the link for another cube, for example:
= N: IF ( ATTRN('Dim_X',!Dim_X,'Num') = ATTRN ( 'Dim_Y', !Dim_Y, 'Num1'),
DB('Cube1',!Dim1, Dim2, ATTRN('Dim3',!Dim3,'Num')), DB('Cube2',!Dim4, Dim5, ATTRN('Dim6',!Dim6,'Num'));
gives an error when I save
thank you
ATTRN in other cube
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: ATTRN in other cube
It's failing because attrn() returns a number and dimension references need to be strings.
-
- Posts: 37
- Joined: Fri Feb 21, 2014 9:55 am
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 10
Re: ATTRN in other cube
You mean that if in the link is present ATTRN, all elements of dim. should be string?
-
- 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: ATTRN in other cube
What he is telling you is that the DB function requires strings for all its arguments and you are using ATTRN as some of those arguments and that function returns numbers. Convert them to string using the STR function.
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: ATTRN in other cube
Wirt,
Think about it. If you build a TI all the element variables have to be string. You may able to store numbers against them but all element names are strings, how else would you mix numbers and text so freely when creating elements?
Jim.
Think about it. If you build a TI all the element variables have to be string. You may able to store numbers against them but all element names are strings, how else would you mix numbers and text so freely when creating elements?
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7