Page 1 of 1

CreateCube from csv source, using TI

Posted: Wed May 30, 2012 3:17 pm
by kastellu
Hi,

Is there a why how i could create a cube from a csv source by using TI. In the csv there would be a list of dimension.

CreateCube(CubeName, d1, d2,....n)

How i could generate this script based on a list of n dimension from csv file.

Regards,
K

Re: CreateCube from csv source, using TI

Posted: Wed May 30, 2012 5:06 pm
by rkaif
kastellu wrote: CreateCube(CubeName, d1, d2,....n)
First of all the the correct function to create the cubes is CubeCreate() - not CreateCube which you have mentioned.

Personally I think that creating cubes from the CSV might not be a good idea but yes you can create the cubes using a CSV files. You can have two columns in the CSV - one for the Cube Name and another for the Dimensions of that cube. You will have to make sure that the Dimensions are listed in the order which you want for your cube to be created.

In your TI before you CubeCreate() you need to parse through the CSV and put the dimensions column values into different variables.

Rather then going down the path of using CSV files I would simply create different variables in TI and will use those variables in the CubeCreate() function.

Re: CreateCube from csv source, using TI

Posted: Wed May 30, 2012 5:12 pm
by tomok
kastellu wrote:Hi,

Is there a why how i could create a cube from a csv source by using TI. In the csv there would be a list of dimension.

CreateCube(CubeName, d1, d2,....n)

How i could generate this script based on a list of n dimension from csv file.

Regards,
K
This is all covered in the Turbointegrator Guide, in the section appropriately entitled "Creating a Cube From a Text File". Imagine that.

Re: CreateCube from csv source, using TI

Posted: Wed May 30, 2012 8:03 pm
by Wim Gielis
Or... use Cognos Insight (TM1 10.1)