Turbo Integrator snapshot to Excel

Post Reply
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Turbo Integrator snapshot to Excel

Post by Plunge pool »

Is there anyway to have a view of aggregated data snapshotted to excel using a TI process?

I have a cube that is using daily values....its huge and if I use the ascii output for that it takes forever.
So I made a view to aggregate into weeks. I can snapshot into excel no problem and doesn't take too much time. I can't figure out how to use the TI asciioutput using aggregate weeks without it taking forever/crashing the server.

Would luike to have it run as a chore to run at night or something into excel...as a best case scenario

I am probably not explaining in the best way, but will try my best to answer if I required
Wim Gielis
MVP
Posts: 3230
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: Turbo Integrator snapshot to Excel

Post by Wim Gielis »

Plunge pool wrote:I can snapshot into excel no problem and doesn't take too much time. I can't figure out how to use the TI asciioutput using aggregate weeks without it taking forever/crashing the server.
Do you exclude 0 cells in the views?
What exactly is in the view - to you create the view using TI code or do you create the view manually?
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
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Turbo Integrator snapshot to Excel

Post by AmbPin »

Hello,
I dont know that there is a way to "snapshot" to Excel from TI, I think you may have been on the right track with the AsciiOutput function although be aware that there are versions of 9.5.2 where the server crashes if you try to export consolidated values.
As you said in your post, perhaps some further clarification is required, but could you have an MDX statement on the time dimension to make sure that a CubeView is always looking at just your most recent data?
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Re: Turbo Integrator snapshot to Excel

Post by Plunge pool »

Yes, I exclude the zeros. I should rephrase that sentence. I can figure that out....but I am more interested in copying EXACTLY what is in the view I created and exporting EXACTLY what is in that view to a cma file or excel file. Hence the question about snapshotting to Excel

Thanks!
lotsaram
MVP
Posts: 3702
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Turbo Integrator snapshot to Excel

Post by lotsaram »

Why "using a TI process"?

The best way to get data from a view into Excel is to have an array of DBRW formulas in Excel and simply recalculate. Easy, quick, simple, no fuss. Why complicate things? If this requires automation and output in an excel file with no links to a tm1 server then IMO the easiest and most effective route would be windows scheduler with some vba to log in then refresh then hard copy then save as. Why does TI need to be part of the solution? There might be a valid reason but if so you haven't explained what it is.
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Re: Turbo Integrator snapshot to Excel

Post by Plunge pool »

lotsaram wrote:Why "using a TI process"?

The best way to get data from a view into Excel is to have an array of DBRW formulas in Excel and simply recalculate. Easy, quick, simple, no fuss. Why complicate things? If this requires automation and output in an excel file with no links to a tm1 server then IMO the easiest and most effective route would be windows scheduler with some vba to log in then refresh then hard copy then save as. Why does TI need to be part of the solution? There might be a valid reason but if so you haven't explained what it is.
Thanks for your insight Lotsaram. The only reason to have TI as part of the solution is to also give the option to give the user the ability to run a process on demand. I am intrigued by your suggestion though.

My end goal is to have a report to provide users, but I am also thinking of using this report as a datasource for other applications. This is why I want ot get the cube data to snapshot into excel in a certain way.
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Re: Turbo Integrator snapshot to Excel

Post by Plunge pool »

Plunge pool wrote:
lotsaram wrote:Why "using a TI process"?

The best way to get data from a view into Excel is to have an array of DBRW formulas in Excel and simply recalculate. Easy, quick, simple, no fuss. Why complicate things? If this requires automation and output in an excel file with no links to a tm1 server then IMO the easiest and most effective route would be windows scheduler with some vba to log in then refresh then hard copy then save as. Why does TI need to be part of the solution? There might be a valid reason but if so you haven't explained what it is.
Thanks for your insight Lotsaram. The only reason to have TI as part of the solution is to also give the option to give the user the ability to run a process on demand. I am intrigued by your suggestion though.

My end goal is to have a report to provide users, but I am also thinking of using this report as a datasource for other applications. This is why I want ot get the cube data to snapshot into excel in a certain way.
Sorry, one more thing that goes against your suggestion though. I don't think VBA supports logging in through the CAM screen right? ie. don't think I can get sendkeys to work via that route?
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Turbo Integrator snapshot to Excel

Post by AmbPin »

Hello,
I think you may be jumping ahead a little considering API programming and data exports at this stage. The requirement you have described (as I understand it) seems to be fundamental TM1/Excel functionality as suggested by lotsaram.
My suggestion would be
  • Build a report in Excel that shows the data that you need using a slice or active form (which ever is most appropriate)
  • If you need to increment dates to look at the most recent data you can do this in Excel using formulae to create column/row headers or you can reference a dynamic subset which uses MDX;
Using this approach, your report could be made available to all users via Excel directly or TM1 Web.
I note that you have also been looking at http://www.tm1forum.com/viewtopic.php?f=3&t=8845 which is about report bursting. You could perhaps use this idea to distribute your report should that become necessary.
I would be wary of exporting data to become a data source in it's own right.
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Re: Turbo Integrator snapshot to Excel

Post by Plunge pool »

AmbPin wrote:Hello,
I think you may be jumping ahead a little considering API programming and data exports at this stage. The requirement you have described (as I understand it) seems to be fundamental TM1/Excel functionality as suggested by lotsaram.
My suggestion would be
  • Build a report in Excel that shows the data that you need using a slice or active form (which ever is most appropriate)
  • If you need to increment dates to look at the most recent data you can do this in Excel using formulae to create column/row headers or you can reference a dynamic subset which uses MDX;
Using this approach, your report could be made available to all users via Excel directly or TM1 Web.
I note that you have also been looking at http://www.tm1forum.com/viewtopic.php?f=3&t=8845 which is about report bursting. You could perhaps use this idea to distribute your report should that become necessary.
I would be wary of exporting data to become a data source in it's own right.
Thanks. However, their is one more requirement. The cube is setup with daily values. I only need weekly values. Therefore a snapshot takes ALOT less time to generate on demand. I am aware of the bursting, and had even set this up, but that takes a long time to generate because of the nature of the cube.
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Turbo Integrator snapshot to Excel

Post by AmbPin »

Without knowing some more detail it is difficult to help but
  • Could you put weekly consolidations in your time dimension
  • Calculate the latest weeks consolidation in the spreadsheet/websheet
An alternative approach might be to build a reporting cube with weekly slots that is populated via TI from your daily data. As I say, without knowing your ircumstances it is difficult to assist properly.
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Turbo Integrator snapshot to Excel

Post by AmbPin »

Hello,
I was thinking about this from your earlier post:-
Plunge pool wrote:Therefore a snapshot takes ALOT less time to generate on demand
I assume you mean generating a snapshot to Excel from a cube view. I may be completely wrong here but I would have thought that the work involved for TM1 in the initial generation of eiher a snapshot or slice (or Active form for that matter) was pretty much the same, I certainly don't recall seeing any significant time differences.
Apologies if I have I mis-understood your point?
Plunge pool
Posts: 17
Joined: Sun Mar 24, 2013 2:17 am
OLAP Product: Sql
Version: 10.1
Excel Version: 2010

Re: Turbo Integrator snapshot to Excel

Post by Plunge pool »

AmbPin wrote:Hello,
I was thinking about this from your earlier post:-
Plunge pool wrote:Therefore a snapshot takes ALOT less time to generate on demand
I assume you mean generating a snapshot to Excel from a cube view. I may be completely wrong here but I would have thought that the work involved for TM1 in the initial generation of eiher a snapshot or slice (or Active form for that matter) was pretty much the same, I certainly don't recall seeing any significant time differences.
Apologies if I have I mis-understood your point?

I know it sounds weird. But for some reason when I have the cube layed out in a weekly view, i guess its already "read". Therefore a snapshot at the point is a quick one.
Whereas slicing it/active form would require another read through the values in daily fashoin, and populate to excel.

I might be completely wrong herre though, as I am a compelte newb.
tomok
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: Turbo Integrator snapshot to Excel

Post by tomok »

Plunge pool wrote:I know it sounds weird. But for some reason when I have the cube layed out in a weekly view, i guess its already "read". Therefore a snapshot at the point is a quick one.
Whereas slicing it/active form would require another read through the values in daily fashoin, and populate to excel.

I might be completely wrong herre though, as I am a compelte newb.
No, you're not wrong. It's called caching of calculated intersections and TM1 makes heavy use of this principle. However, I don't see what, if anything, that has to do with having a TI process create a snapshot versus doing it in an Excel sheet. First of all, you can't do it in TI because a TI process can only create a text file, not an Excel sheet. The best you could do is create a CSV file that Excel could read in. No formatting, no nothing, just values and maybe column headers if you know what you're doing. On the other hand, with Excel you can do most anything you want, just range value the TM1 formulas as your last step. This is very common and their are a number of posts on this site about how to do it.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Turbo Integrator snapshot to Excel

Post by AmbPin »

I agree with tomok. A well thought out Excel sheet will give you the best user experience and provide the opportunity to interact further with that data should people wish to perform further investigation of the high level results presented.
Gabor
MVP
Posts: 170
Joined: Fri Dec 10, 2010 4:07 pm
OLAP Product: TM1
Version: [2.x ...] 11.x / PAL 2.0.9
Excel Version: Excel 2013-2016
Location: Germany

Re: Turbo Integrator snapshot to Excel

Post by Gabor »

When Excel introduced > 1 Mill rows I saw people trying to use this huge grid for snapshots. Then TM1 (I have tested using 9.5.2) becomes very slow after a certain limit (pure data). Lets say 1 min for 50.000 lines, but 120 min for 1.000.000 lines.

Apart from the fact, that I hate this, there are always some people, who want to see their "wallpaper" and load it into Excel and play with it.
(useless to tell them, that's why we enjoy TM1)

The only workaround I found was to run a TI, which writes into a .csv (as already mentioned above). Even if the file size runs high to several hundred MB, the TI is still able to write my example in less than 10 min and Excel can open the file very fast.
Post Reply