Automation of Excel TM1 Based Reports

Post Reply
User avatar
jim wood
Site Admin
Posts: 3951
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:

Automation of Excel TM1 Based Reports

Post by jim wood »

Guys,

We are looking to automate the production of some excel reports. Here is our plan of attack (Well my plan really :mrgreen: ):

1) Add some VBA script to each report that will: automatically logon, refresh the data (easy I know), publish the file to pdf and finally close the file.

2) Create a windows scheduled batch to run each report in turn.

Could you guys let me know if there are any issues with any of the above and also if you have had experience of completing a similar approach,

Jim.

PS. May run the schedule from SQL in stead of windows if possible.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
wissew
Posts: 54
Joined: Tue Jun 17, 2008 7:24 pm
OLAP Product: TM1
Version: 9.5.2; 10.2.2; 11
Excel Version: 2003 SP3 - 2013
Location: Beaverton, OR

Re: Automation of Excel TM1 Based Reports

Post by wissew »

Good plan. That's what we do.
User avatar
bihints.com
Posts: 52
Joined: Tue May 20, 2008 8:56 am
OLAP Product: TM1
Version: 9.0.3
Excel Version: 2003
Contact:

Re: Automation of Excel TM1 Based Reports

Post by bihints.com »

Hi Jim,

I have put together some VBA code that reads from a TM1 cube what reports to update, where to save them, whom to email/notify it or print.
All entries are consolidated into rollups such as "Monday" "Tuesday" etc.. So the script runs only the reports on the given days specified.

So I do not need to change or add VBA to an existing report, I just need to give the location of the report in that central reporting cube and what to do with it (save as values somewhere, email, print..)

Hopefully I should clean up that code and publish it. It is pretty basic actually and I'm sure other people on the forum have come up with something similar and certainly better.
vaneagle
Posts: 30
Joined: Mon Jun 15, 2009 6:13 am
OLAP Product: Cognos Express and TM1
Version: 9.4 to 10.2
Excel Version: Excel 02 to 10
Location: Sydney

Re: Automation of Excel TM1 Based Reports

Post by vaneagle »

I do a similar process from ms access. Refresh data in excel and save via windows scheduling.

In the next 6 months, perhaps longer (ie once i learn how) i plan to use tm1 to do the same thing...

ie refresh reports, save or send to pdf and then email.

It sounds like methodlogy os sound! ;)
User avatar
jim wood
Site Admin
Posts: 3951
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: Automation of Excel TM1 Based Reports

Post by jim wood »

Many thanks all. I will post on here any code that we create,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Olivier
Community Contributor
Posts: 159
Joined: Thu Jun 26, 2008 5:46 am
OLAP Product: TM1
Version: Tm1 10.2.2fp4 -> 2.09
Excel Version: Excel 2013 - 2019
Location: Sydney

Re: Automation of Excel TM1 Based Reports

Post by Olivier »

Hi Jim,

I have seen use this principle in order to "burst" reports out of Tm1 cubes.
1 master file contain all the vba and the configuration and the references to the folders and templates to be used.

One issue we are having regurlarly is for example a "Save Data All" happening on the server while the report are beeing produced, it will prevent the refresh sequence to happen properly without stopping Excel from continuing bursting, very likely to produce half cooked reports...needing the automtion to be re run several times for full completion...

I guess it can be administrate more efficiently,
but i don't see report bursting as a convenient approach to deliver reporting out of Tm1.
( even if i think i understand your constraint in producing disconnected reports i.e pdf...)

Hope this helps.

Kind Regards,

Olivier
HTH
Olivier
User avatar
jim wood
Site Admin
Posts: 3951
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: Automation of Excel TM1 Based Reports

Post by jim wood »

It's more of an automation of what we already do. Also we currently run all our automated loads / saves through SQL. What I am going to do is add the reporting part to the same SQL schedule after all saves to make sure we avoid the issue you have raised. Also we looking at a package called ghost script to publish all the excel reports to pdf before they are emailed,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Olivier
Community Contributor
Posts: 159
Joined: Thu Jun 26, 2008 5:46 am
OLAP Product: TM1
Version: Tm1 10.2.2fp4 -> 2.09
Excel Version: Excel 2013 - 2019
Location: Sydney

Re: Automation of Excel TM1 Based Reports

Post by Olivier »

As you publish in pdf, i am sure you have consider web based publication ?
Why do you distribute througth email ?
Is that because you consider the web wouldn't provide any added value to your publications ?

i am just trying to figure out how much your environment match my current one ;)

Kind Regards,

Olivier
HTH
Olivier
User avatar
jim wood
Site Admin
Posts: 3951
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: Automation of Excel TM1 Based Reports

Post by jim wood »

Good question.... We are going to do both. We are going to post the reports on a site but we are also going to email some reports for 2 reasons:

1) Some of the reports would be considered too risky in the wider company domain

2) We have some directors who still think that the web is sole domain of the spider.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Olivier
Community Contributor
Posts: 159
Joined: Thu Jun 26, 2008 5:46 am
OLAP Product: TM1
Version: Tm1 10.2.2fp4 -> 2.09
Excel Version: Excel 2013 - 2019
Location: Sydney

Re: Automation of Excel TM1 Based Reports

Post by Olivier »

Fair enougth ;)

Funny how data security becomes an issue as soon as you talk about web were usually you find that previously the excel reports were hanging in a totally unsecure NT network ...

On the other hand i find quite rare that web publishing add any value to the publication itself.
I feel that publishing a pdf or static report througth the web doesn't really achieve much appart from reducing paper and disk space consumption...

I beleive a big area of improvement in our field is in the improvement of intereactivity of web publication.



Olivier
HTH
Olivier
rscully
Posts: 2
Joined: Wed Sep 30, 2009 1:28 pm
OLAP Product: TM1
Version: 9.1 SP4
Excel Version: 2003

Re: Automation of Excel TM1 Based Reports

Post by rscully »

Hi Jim-
We're looking to do the same thing you did. Would you be willing to share the code so that I don't have to recreate it?

Thanks!
Rich
User avatar
jim wood
Site Admin
Posts: 3951
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: Automation of Excel TM1 Based Reports

Post by jim wood »

We didn't do this in th end. The whole idea of reporting kicked off a massive project in our company. We have purchased Oracle OBIEE to deliver it and we are in the process of rolling it out now,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
rscully
Posts: 2
Joined: Wed Sep 30, 2009 1:28 pm
OLAP Product: TM1
Version: 9.1 SP4
Excel Version: 2003

Re: Automation of Excel TM1 Based Reports

Post by rscully »

lol... well thanks for getting back to me I certainly appreciate it! Good luck with your Oracle rollout.

Rich
ParisHilton
Posts: 73
Joined: Fri Apr 23, 2010 11:35 am
OLAP Product: Tm1
Version: 9.5
Excel Version: 2007 2010

Re: Automation of Excel TM1 Based Reports

Post by ParisHilton »

jim wood wrote:We didn't do this in th end. The whole idea of reporting kicked off a massive project in our company. We have purchased Oracle OBIEE to deliver it and we are in the process of rolling it out now,

Jim.

Why did you go for OBIEE over IBM-Cognos BI?
“The way I see it, you should live everyday like its your birthday”


TM1 9.5 Cognos BI 8.4 Excel 2007. 128GB Ram. E7450@2.40Ghz -24 core. Fluffy white dog.
VRGultom
Posts: 8
Joined: Tue Jan 12, 2010 4:44 am
OLAP Product: SqlServer 2005
Version: SqlServer 2005
Excel Version: 2005

Re: Automation of Excel TM1 Based Reports

Post by VRGultom »

We are looking to automate the production of some excel reports. Here is our plan of attack (Well my plan really :mrgreen: ):

1) Add some VBA script to each report that will: automatically logon, refresh the data (easy I know), publish the file to pdf and finally close the file.

Why don't you use OLAP programming such as dot net, VB, etc separately to access data from TM1 cube?
it is better than VBA script in excell


2) Create a windows scheduled batch to run each report in turn.
If I am not mistaken you can use chore to do that

Could you guys let me know if there are any issues with any of the above and also if you have had experience of completing a similar approach,
User avatar
jim wood
Site Admin
Posts: 3951
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: Automation of Excel TM1 Based Reports

Post by jim wood »

ParisHilton wrote:
jim wood wrote:We didn't do this in th end. The whole idea of reporting kicked off a massive project in our company. We have purchased Oracle OBIEE to deliver it and we are in the process of rolling it out now,

Jim.

Why did you go for OBIEE over IBM-Cognos BI?
I didn't. Also TM1 was not included in BI when we went through the selection process and it's inclusion was only a rumour that Cognos would neither confirm or deny. Oh and the demo given by Cognos wasn't great. I sat through it. I still feel now it's 2 hours I'll never get back. I think they thought that with EP and TM1 already in the business it would be a push over. One slight problem, both are owned by Finance and IT completed the selection process with "some" advice from the business.

Is OBIEE perfect? No. Is it better than Congos BI? Not sure. We are finding weaknesses all over the shop but I'm sure the same would apply if we had gone for Cognos BI.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Post Reply