I am trying to load data based on columns names.If elements belong to Parent A load Coloumn A data ,If elements belong to Parent B load coloumn B data using a TI process.The issue i am facing is number rounding .
If i use vcomp = xyz * 100000 and use vcomp directly to load data it is showing correct numbers.
when i tried to load vcomp data using an IF statment it rounding up to nearest number
IF (ELISCOMP('Accounts' , v11,'ParentA') @=1);
vcomp = xyz*1000000 ;
ELSEIF( ELISCOMP('Accounts' , v11,'ParentA') @=1 ) ;
vcomp = ABC*1000000 ;
ENDIF;
If i load vcomp directly iam getting correct numbers but if i use IF statement it is rounding to nearest number.
Ex: XYZ = 1.362844071
vcomp value with out IF statement =1362844.071
vComp value in IF statement = 1388931.767,
I checked values using ASCIIOUT extract .
I am using TM1 10.2.2 on windows 2008 R2.
Thanks for you help in advance
Number Rounding issue in TI process
-
- 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: Number Rounding issue in TI process
Since when is 1388931.767 the next nearest number to 1362844.071??? They're not even close.
-
- MVP
- Posts: 600
- Joined: Wed Aug 17, 2011 1:19 pm
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2003 2007
- Location: York, UK
Re: Number Rounding issue in TI process
Never mind the rounding. How does @=1 even compile?
- jim wood
- Site Admin
- Posts: 3958
- 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: Number Rounding issue in TI process
It looks to me like you really need to trace your numbers. Create a smaller data source that you know what the answer should be and trace it through. As Tomok pointed out this certainly isn't a rounding issue.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Community Contributor
- Posts: 164
- Joined: Tue Apr 02, 2013 1:41 pm
- OLAP Product: tm1, cognos bi
- Version: from TM1 9.4 to PA 2.0.9.6
- Excel Version: 2010
- Location: Toronto, ON
Re: Number Rounding issue in TI process
In your IF statement you dont cover all cases ( you have IF and ELSEIF conditions only) , so in case none of conditions are true, then the value of your vComp could be coming from a previous row in your data source.
Can you post all the code from data tab?
This is definitely not a rounding issue. Just check the data
Can you post all the code from data tab?
This is definitely not a rounding issue. Just check the data
Ardian Alikaj
-
- Posts: 62
- Joined: Tue Mar 13, 2012 4:34 am
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2007 2010 SP1
Re: Number Rounding issue in TI process
Thanks every one for the replies .
I was scratching my head from yestarday thinking it is round off issue, Fresh pair of eyes always helps .I modified my IF ELSE statement it is working perfect.
Thanks every one for your time.
I was scratching my head from yestarday thinking it is round off issue, Fresh pair of eyes always helps .I modified my IF ELSE statement it is working perfect.
Thanks every one for your time.