Hi,
I want to export from multiple views in the same cube to a CSV file. Anybody can help me with the logic to achieve this?
Thanks
kkmk
Multiple View as Data Source
- jim wood
- Site Admin
- Posts: 3961
- 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: Multiple View as Data Source
Create one standard process for exporting data from the cube. Within the process set a parameter for the view name. Then use within the process data source override (check out the reference guide) This way you can fire off the same process for multiple views. Obviously this is based on the views being in place already. If not create a process to create views against the cube then call the export process that I mentioned above for each of the views. Keep in mind you'll want to create the views on the prolog and call the process for each view on the epilog.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Posts: 73
- Joined: Wed Jan 25, 2012 9:08 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2
- Excel Version: 2013
Re: Multiple View as Data Source
Any sample processes to refer?
Thanks
kkmk
Thanks
kkmk
- jim wood
- Site Admin
- Posts: 3961
- 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: Multiple View as Data Source
I don't have exact examples of what I suggested. If you do a search for view creation on this forum you should be able to find a good starting point.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- 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: Multiple View as Data Source
In the same process? Can't be done. You'll have to run the process once for each view and then concatenate the files together with batch file command.kkmk wrote:I want to export from multiple views in the same cube to a CSV file. Anybody can help me with the logic to achieve this?
-
- Posts: 73
- Joined: Wed Jan 25, 2012 9:08 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2
- Excel Version: 2013
Re: Multiple View as Data Source
Hi,
Thank you all for your suggestion and I have complete this task:
Work Note:
1. Written different process to export the view to CSV.
2. Create a bat file in the command prompt.
3. In the command prompt written copy command to append all the files.
Copy file1.csv + file2.csv + file3.csv finalfile.csv
4. Call this Bat from the TI process using ExecuteCommand.
Thanks
KKmk
Thank you all for your suggestion and I have complete this task:
Work Note:
1. Written different process to export the view to CSV.
2. Create a bat file in the command prompt.
3. In the command prompt written copy command to append all the files.
Copy file1.csv + file2.csv + file3.csv finalfile.csv
4. Call this Bat from the TI process using ExecuteCommand.
Thanks
KKmk
- jim wood
- Site Admin
- Posts: 3961
- 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: Multiple View as Data Source
I'm glad you found a way round it and thanks for sharing your solution.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7