Advertisement

05.29.2008 at 03:43AM PDT, ID: 23440942
[x]
Attachment Details

How can Excel be stopped from updating the cube results when a filter is applied?

Asked by kinton in OLAP, Microsoft Excel Spreadsheet Software, SQL Server 2005

Hi all,

I have an SQL 2005 Olap cube that i'm using in Excel 2003 & 2007.
I recorded a macro and applied a filter, which updated instantly.

When I ran the macro i'd recorded there was a delay while it actually applied the data for the first command (which blanks the filter and shows the whole data set).  It didn't do that when it was run in the usual manner rather than code.

    ActiveSheet.PivotTables("PivotTable4").PivotFields( _
        "[Campaign].[All Campaigns By Magazine].[Campaign Magazine]").VisibleItemsList = Array("")
    ActiveSheet.PivotTables("PivotTable4").PivotFields( _
        "[Campaign].[All Campaigns By Magazine].[Campaign]").VisibleItemsList = Array( _
        "[Campaign].[All Campaigns By Magazine].[Campaign Magazine].&[My Magazine].&[Y0502XBRO]")

Is there a method of setting the cube so it doesn't refresh the data when the filter is applied i.e.

Turn off updating.
Run 2 lines above.
Turn on updating.

I have a couple of other instances where this would be helpful when applying filters through code as well, but if i'm doing something else wrong in the example above and there is another solution i'd be very grateful to hear it anyway.

Regards,
KintonStart Free Trial
[+][-]05.29.2008 at 03:58AM PDT, ID: 21667847

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: OLAP, Microsoft Excel Spreadsheet Software, SQL Server 2005
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.29.2008 at 06:22AM PDT, ID: 21668839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 06:54AM PDT, ID: 21669098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906