Methods for Inputting Data into TM1 Cube
-
- Posts: 9
- Joined: Fri Dec 10, 2021 1:41 pm
- OLAP Product: TM1, PA, CA, FM
- Version: 2.0
- Excel Version: 2019
Methods for Inputting Data into TM1 Cube
Hello All,
What are the different method to input the data into tm1 Cube?
I'm particularly interested in understanding if it's possible to input data into a TM1 Cube directly from an Excel file(not .csv and not .cma) using a process. Has anyone attempted this?
Thanks!!!
What are the different method to input the data into tm1 Cube?
I'm particularly interested in understanding if it's possible to input data into a TM1 Cube directly from an Excel file(not .csv and not .cma) using a process. Has anyone attempted this?
Thanks!!!
-
- MVP
- Posts: 2834
- 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: Methods for Inputting Data into TM1 Cube
TM1 cannot natively read the data in an Excel file so you would have to use another mechanism. TM1 supports ODBC and there is a driver from Microsoft that allows you to access the Excel file as if it were a database table. The key here is that the Excel file has to be structured just like an SQL table with rows representing records and columns as fields. It can't just randomly look into the Excel file and grab random cells or named ranges. Good luck. I did this exact thing about fifteen years ago and it worked fine. Better option would be a .csv file.rrizwansayed10 wrote: ↑Fri Apr 19, 2024 11:41 am Hello All,
What are the different method to input the data into tm1 Cube?
I'm particularly interested in understanding if it's possible to input data into a TM1 Cube directly from an Excel file(not .csv and not .cma) using a process. Has anyone attempted this?
Thanks!!!
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: Methods for Inputting Data into TM1 Cube
As an alternative, you could open the file in Excel and add DBSW formulae down the rows to send the data to the cube. Not the neatest, but TM1 had this in version 6 before Turbo Integrator was a gleam in Manny Perez' eye.
-
- Posts: 9
- Joined: Fri Dec 10, 2021 1:41 pm
- OLAP Product: TM1, PA, CA, FM
- Version: 2.0
- Excel Version: 2019
Re: Methods for Inputting Data into TM1 Cube
Thank you so much for your reply
but can we take excel and convert it into csv by TI process, and then can we upload csv into tm1?
Is there anything similar we can do?
but can we take excel and convert it into csv by TI process, and then can we upload csv into tm1?
Is there anything similar we can do?
-
- Posts: 117
- Joined: Wed Apr 03, 2019 12:10 am
- OLAP Product: IBM PA
- Version: 2.0.9.x
- Excel Version: Microsoft 365 x64
Re: Methods for Inputting Data into TM1 Cube
If you have access to Excel and access to TI, why not “save as” in Excel to CSV? If multiple files, I suggest writing a VBA that automates this within a chosen folder. You may be able to build a VBScript (or other solution) and then trigger the .xlsx to .csv within TI using ExecuteProcess.
-
- MVP
- Posts: 3185
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Methods for Inputting Data into TM1 Cube
Yes, e.g. what Adam describes: in the past I wrote PowerShell to do just that.
Best regards,
Wim Gielis
IBM Champion 2024
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
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
-
- Posts: 9
- Joined: Fri Dec 10, 2021 1:41 pm
- OLAP Product: TM1, PA, CA, FM
- Version: 2.0
- Excel Version: 2019
Re: Methods for Inputting Data into TM1 Cube
Thanks Adam and Wim,
I really like this idea, can both of you tell or share a step by step process or a link to do this, I totally dont know VBS and Powershell, so please guide me to do this. I only know Cognos.
I really like this idea, can both of you tell or share a step by step process or a link to do this, I totally dont know VBS and Powershell, so please guide me to do this. I only know Cognos.
-
- Posts: 117
- Joined: Wed Apr 03, 2019 12:10 am
- OLAP Product: IBM PA
- Version: 2.0.9.x
- Excel Version: Microsoft 365 x64
Re: Methods for Inputting Data into TM1 Cube
Google (or ChatGPT) will help as .xlsx to .csv isn’t exactly a tm1-specific problem to solve.
-
- Posts: 9
- Joined: Fri Dec 10, 2021 1:41 pm
- OLAP Product: TM1, PA, CA, FM
- Version: 2.0
- Excel Version: 2019
Re: Methods for Inputting Data into TM1 Cube
OK, Thanks a lot.
- WilliamSmith
- Posts: 44
- Joined: Tue Dec 13, 2022 8:54 pm
- OLAP Product: TM1 / PA / PAx / PAW
- Version: TM1 11
- Excel Version: 365
Re: Methods for Inputting Data into TM1 Cube
I've had success with three methods:
1.) Use VBA to re-calculate DBSS formulas, to push data into cube cells. (Slow)
2.) Use VBA to send JSON payloads to the TM1 Rest API (Slower) (Could only figure out how to send one cell at a time)
3.) Use VBA to export data to a flat .CSV file, in a location the TM1 server can access. Send Rest API command to trigger Turbo Integrator to import .CSV file. (Fast)
Happy to discuss further.
1.) Use VBA to re-calculate DBSS formulas, to push data into cube cells. (Slow)
2.) Use VBA to send JSON payloads to the TM1 Rest API (Slower) (Could only figure out how to send one cell at a time)
3.) Use VBA to export data to a flat .CSV file, in a location the TM1 server can access. Send Rest API command to trigger Turbo Integrator to import .CSV file. (Fast)
Happy to discuss further.
-
- MVP
- Posts: 3185
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Methods for Inputting Data into TM1 Cube
Python and tm1py (hence REST API) would also be an option.
Best regards,
Wim Gielis
IBM Champion 2024
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
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
-
- Community Contributor
- Posts: 162
- 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: Methods for Inputting Data into TM1 Cube
I have created a Python Script to do that. I pass the excel file to a python script, create a dataframe, I clean up the dataframe and at the end I store the Dataframe to a CSV file, which is consumed by a TI Process. The TI process can be executed from within Python Script (TM1Py), or it can be executed from the same TI process that called the Python script (with Wait=1)
But you can also update the cube directly from Pandas Dataframe with TM1Py
But you can also update the cube directly from Pandas Dataframe with TM1Py
Ardian Alikaj
-
- Posts: 17
- Joined: Thu Feb 20, 2014 8:42 am
- OLAP Product: TM1
- Version: PA 2.0.9
- Excel Version: 2016
- Location: Russia, Saint-Petersburg
Re: Methods for Inputting Data into TM1 Cube
Excel + VBA:
1) First button on the sheet = write the range (or the desired cells and rows) to CSV (the directory and file must be accessible from tm1);
2) Second button on the sheet = run “tm1runti.exe” with parameters and call the process to read the CSV and write data to the cube.
1) First button on the sheet = write the range (or the desired cells and rows) to CSV (the directory and file must be accessible from tm1);
2) Second button on the sheet = run “tm1runti.exe” with parameters and call the process to read the CSV and write data to the cube.
- Attachments
-
- Example_2026.04.26_VBA.txt
- Example_2026.04.26_VBA
- (5.74 KiB) Downloaded 691 times
-
- Example_2026.04.26_tm1runti_files
- Example_2026.04.26_tm1runti_files.png (87.97 KiB) Viewed 3755 times