As the beginner i'm traying to solve the follwing issue in TI:
The imported % data is set up as whole number in the source file (25, 35, ...). When imported to the cube, where format is set for %, these data becomes 2500%, 3500% (inested of 25%, 35%). My idea is to divide imported data by 1000 in TI porcess, however I cannot find on he net any scrpits how to do it. Could anyone show me the scrpt to divide imported data before getting into the cube ? Thanks a lot for your help
Arithmetics in TurboIntegrator
-
- 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: Arithmetics in TurboIntegrator
First things first I think you want to divide by 100 not 1000.adasko wrote:As the beginner i'm traying to solve the follwing issue in TI:
The imported % data is set up as whole number in the source file (25, 35, ...). When imported to the cube, where format is set for %, these data becomes 2500%, 3500% (inested of 25%, 35%). My idea is to divide imported data by 1000 in TI porcess, however I cannot find on he net any scrpits how to do it. Could anyone show me the scrpt to divide imported data before getting into the cube ? Thanks a lot for your help
In the event that your variables tab shows the value from source as vValue and your dimension variables are called v1, v2 etc for subsequent dimensions.
Code: Select all
nValuePercentage = vValue \ 100;
CellPutN ( nValuePercentage, sCub, v1, v2, ... 'Measure' );
Declan Rodger
-
- Posts: 13
- Joined: Fri May 16, 2014 12:06 pm
- OLAP Product: Cognos Tm1
- Version: 10.1
- Excel Version: 10
Re: Arithmetics in TurboIntegrator
You're right. Thanks a lot