help in coding part;
String to numeric, the data will be entered as text and it should be converted into numeric and finally it should be calculated as average of it.
thanks and reagards,
tm1 9.5
excel 2007
windows vista
string to number
-
- Posts: 9
- Joined: Mon Apr 04, 2011 7:03 pm
- OLAP Product: TM1
- Version: 9.5.1
- Excel Version: 2007
-
- Site Admin
- Posts: 6667
- 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: string to number
After you (doubtless) read the Request For Assistance Guidelines, specifically the parts which say:sreecharan wrote:help in coding part;
String to numeric, the data will be entered as text and it should be converted into numeric and finally it should be calculated as average of it.
(in this case, Rules or TI, either of which could be "the coding part" depending on how it's interpreted) and2) Ensure that you specify the component of the software that you're having a problem with. If someone states that they have a problem with number formatting, people need to know whether that's in Cube Viewer, Web, EV, or wherever.
which manuals or help files did you look in, exactly?5) Give a brief outline of what you've done to find the answer; which manuals or guides you've looked in, what tests you've done.
"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.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- rkaif
- Community Contributor
- Posts: 328
- Joined: Fri Sep 05, 2008 6:58 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.1 or later
- Excel Version: 2003 or later
Re: string to number
First of all as Alan said please follow the Request for assistance guidelines.sreecharan wrote:help in coding part;
String to numeric, the data will be entered as text and it should be converted into numeric and finally it should be calculated as average of it.
I will try to guess what you are looking for. If your data source has got data as text then in your TI Process you can use StringToNumber() to convert it to a number.
Then you can write a TM1 Rule to calculate the Average.
(my answer is based on assumptions as your question is not explanatory)
Cheers!
Rizwan Kaif
Rizwan Kaif
-
- Posts: 9
- Joined: Mon Apr 04, 2011 7:03 pm
- OLAP Product: TM1
- Version: 9.5.1
- Excel Version: 2007
Re: string to number
thank you
but this belongs to a requirement,
the requirement is like when you enter the data in a cube, the entered data will be text,
but in the report of the same cube,the text should be numeric.
thanks and regards
but this belongs to a requirement,
the requirement is like when you enter the data in a cube, the entered data will be text,
but in the report of the same cube,the text should be numeric.
thanks and regards
-
- 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: string to number
I don't know of any piece of software that can convert ABCDE into a number unless you are talking about the ASCII character codes. If you are talking about entering 12345, what makes you think TM1 would consider that text? Do you wiggle your left toe while hitting the number keys to indicate text and then wiggle your right toe to indicate a number? The answer, of course is neither. The determing factor as to whether it is text or a number is the cube design. If the spot in the cube you are sending to is configured to accept text then it will be text. If it is configured as numeric it will be numeric.sreecharan wrote:but this belongs to a requirement,
the requirement is like when you enter the data in a cube, the entered data will be text,
but in the report of the same cube,the text should be numeric.