How to recal multiple sheets at once?

Post Reply
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

How to recal multiple sheets at once?

Post by macsir »

Is there any way to recal multiple sheets in one workbook at once? It would save lots of time instead of refreshing them one by one.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: How to recal multiple sheets at once?

Post by Alan Kirk »

macsir wrote:Is there any way to recal multiple sheets in one workbook at once? It would save lots of time instead of refreshing them one by one.
I don't follow the question. If by "recal" you mean "recalculate"... which part of the [F9] (calculate all) key is not working?
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Wim Gielis
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: How to recal multiple sheets at once?

Post by Wim Gielis »

Hello macsir

Either you need a short macro to do it, either you can use [F9] BUT:

- [F9] also calculates all other worksheets in all other open workbooks
- you have to set the EnableCalculation property to False, for those sheets that you do not want to be calculated:

For example with VBA: sheet1.EnableCalculation = False
Manually: go to the Properties pane in VBE and locate the same property where you can set it manually
The problem is, that this setting is not retained when you close and reopen the workbook again.
Meaning that the best approach would be to set the EnableCalculation to False in the Workbook_Open event of the workbook (to avoid manual work).

So in practice, AFAIK it will always be a macro (or otherwise an icon in the toolbar that does the same).

Wim
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
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: How to recal multiple sheets at once?

Post by macsir »

Thanks, everybody. Sorry for late update.
I am using Active form excel file which has many active form reports in it. If I press F9, it would just recal values in formulas in excel itself and would not get updated data from cube, right ? I have to use "rebuild current book" to get all updated data from cube for all active form reports?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: How to recal multiple sheets at once?

Post by Alan Kirk »

macsir wrote:Thanks, everybody. Sorry for late update.
I am using Active form excel file which has many active form reports in it. If I press F9, it would just recal values in formulas in excel itself and would not get updated data from cube, right ? I have to use "rebuild current book" to get all updated data from cube for all active form reports?
You might find the post by Summerbrewgal in this thread useful with regard to recalculating active forms.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: How to recal multiple sheets at once?

Post by macsir »

Thanks, Alan. It is useful.

Alt-F9 = rebuild of the active form (there is also a rebuild button on the toolbar). You need to do this if you've changed any of the parameters that would affect the view generation (anything in the TM1RPTView, TM1RPTRow or added new columns with a formula linked to the TM1RPTview statement). The active form will start back in the opening state.

F9 = standard recalc (recalc button on toolbar) ... will fetch new data in the form, show/hide rows that should/should not be there based on zero suppression if you've changed a title dimension element, but doesn't reset the form (i.e. if you've drilled for instance, it will remain in that state)

Do you know what is the scenario which I need to press Shift-F9 or Ctrl-Alt-Shift F9? I am still confusing with these two.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
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: How to recal multiple sheets at once?

Post by Olivier »

SHIFT + 9 will recalculate the active spreadsheet only ( but not rebuild the active forms).

CTRL + ALT + SHIFT + F9 will "relink" the workbook to Tm1 when the connection was "confused" between Excel and "Perspectives".
i.e. SHift + F9 does not seems to refresh the data anymore where everything seems to be fine. Try then CTRL + ALT + SHIFT + F9, it shoudl then recalculate.

I am not sure what can cause the Excel / Perspectives confusion.

Hope this helps,
HTH
Olivier
Post Reply