+ Reply to Thread
Results 1 to 6 of 6

Updating a pivot filter with another pivot updated by a Slicer

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Updating a pivot filter with another pivot updated by a Slicer

    Hi

    I have this problem which I have simplified below:

    Sheet 2 contains a Pivot table. One of the report filters is "Month-Year" (Eg, May-14 - in date format 'mmm-yy') which is selected by a Slicer on sheet 1.

    Cell D1 on Sheet 2 contains a formula which calculated/displays the mmm-yy of the same period last year (eg May-13).


    I want a code so that when I select the 'Month-Year' Slicer to filter the pivot table on Sheet 1 (eg to May-14), another Pivot on Sheet 3 is filtered with the previous year mmm-yy (May-13).


    Any help is most appreciated.

    Cheers

  2. #2
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Updating a pivot filter with another pivot updated by a Slicer

    Any ideas?

  3. #3
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Updating a pivot filter with another pivot updated by a Slicer

    Do a macro filtering the pivot pointing to that cell and another to the original date and it's all ok
    "The quieter you become, the more you are able to hear"

    Any reputation (*) points appreciated.

    "If you know yourself but not the enemy, for every victory gained, you will suffer defeat."

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Updating a pivot filter with another pivot updated by a Slicer

    Thanks stephenloky.
    Do you mean use the same pivot? The example I've given is simplified, but i need to filter on the second formula derived date in a separate pivot table.

  5. #5
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Updating a pivot filter with another pivot updated by a Slicer

    I mean like ... in Cell A1 you have a date-1 year rigth? So you in the macro you put a filter in the first pivot with the Date(now) and in the other pivot (by macro) you do a filter based on cell A1 or Date(-1 year)...get the logic? do you know how to do that? sorry if im not clear.

  6. #6
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Updating a pivot filter with another pivot updated by a Slicer

    I think so.
    The problem I have is I need the macro to run when the slicer updates the 1st pivot, to update the 2nd. And not sure how to do that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Chart not updating when Pivot filter changes
    By kmac153 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-30-2014, 02:45 AM
  2. VBA : Updating Pivot Source = Lost Slicer Connection
    By flipsyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 06:17 PM
  3. [SOLVED] Link Pivot Tables, Filter with One Slicer
    By Pierce Quality in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-23-2013, 11:19 AM
  4. [SOLVED] Use slicer selections on one pivot table to filter another pivot table
    By porkandbeans in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2013, 12:30 AM
  5. Update Pivot Report Filter Value based on cell updated by formula
    By carlwin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2013, 08:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1