[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Excel 2010 analysis services multiple reports

Posted on 2012-09-05
3
Medium Priority
?
391 Views
Last Modified: 2012-09-05
I developed a series of monthly reports for a user using Excel 2010 connected to an analysis services cube. There are 16 tabs with 16 different reports, all connected to the same cube. Each report is filtered to show data through the end of "last month" by the user clicking on the Date and changing the filter by bumping it up a month. So, to get a new set of his monthly reports, the user has go to into each of the 16 tabs and change the month filter 16 times.

I can't just use "current" data because the cube is updated every day through "yesterday". For example, he would not want to see data for Sept 1- Sept 4 (yesterday) included in the numbers for his August reports.

Is there a way to automate the refresh of the Date filter across all the tabs?

Thanks in advance!
0
Comment
Question by:notawahoo2
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Norm Dickinson earned 2000 total points
ID: 38369023
You should be able to simply record a macro to do it, and then attach the macro to a button.

You'll probably need to customize the ribbon to find it. Go to File, Options, Customize Ribbon, Main Tabs - click Developer and OK.

On the Developer Tab the Record Macro button will then appear. Start recording, click the refresh button on every tab, stop recording. Test the new macro and use it where you need it.
0
 

Author Closing Comment

by:notawahoo2
ID: 38369087
You're totally right, I can't believe VBA didn't occur to me! The recorded macro generated this, so all I have to do is figure out why 1139 means July 2012 and 1140 means August 2012 so that I can make it self-maintaining across years. Thanks !!        

ActiveSheet.PivotTables("PivotTable1").PivotFields( _
        "[Date Admit].[By Fiscal Year].[Fiscal Mth]").VisibleItemsList = Array( _
        "[Date Admit].[By Fiscal Year].[Fiscal Mth].&[1139]", _
        "[Date Admit].[By Fiscal Year].[Fiscal Mth].&[1140]")
0
 
LVL 13

Expert Comment

by:Norm Dickinson
ID: 38369098
Good old date codes. You're welcome - we are here to help!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question