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
CreateCube from csv source, using TI
- 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: CreateCube from csv source, using TI
First of all the the correct function to create the cubes is CubeCreate() - not CreateCube which you have mentioned.kastellu wrote: CreateCube(CubeName, d1, d2,....n)
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.
Cheers!
Rizwan Kaif
Rizwan Kaif
-
- 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: CreateCube from csv source, using TI
This is all covered in the Turbointegrator Guide, in the section appropriately entitled "Creating a Cube From a Text File". Imagine that.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
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: CreateCube from csv source, using TI
Or... use Cognos Insight (TM1 10.1)
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly