+ Reply to Thread
Results 1 to 4 of 4

Pivot Table & Chart not responding consistently with Data Slicer

  1. #1
    Registered User
    Join Date
    04-17-2017
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Pivot Table & Chart not responding consistently with Data Slicer

    I'm working on a project that's trying to understand and display purchasing information (# of "purchase packages" and "$$" of those packages). The purchasing process has 5 major "stages" and there are a number of "offices". I have a raw dataset from which I've created 2 Pivot Tables (one for $$ and another for "purchase packages"), each with offices on the X axis and stages on the Y axis for both pivot tables. I've linked both tables to a single "office" data slicer and the pivot tables respond perfectly to individual and multi-selections from the slicer. Listing only the selected offices (as well as Grand Total) and the corresponding $ and packages throughout the tables. I also wanted to portray these data simultaneously on a chart with consistent formatting ($ in green and packages in blue for this multi-Y axis line table). I also always wanted to portray each of the potential stages across the X axis. Since I want to maintain the chart formatting (colors, etc), I am generating a "standard" table which shows the grand total ($ and "packages") based on each of the 5 POTENTIAL stages. I say potential because any one office may not have all 5 stages in their raw data, so a data slicer selection for Office A may only contain stages 1,3 and 5 for example. In fact, the 4th stage is not currently present in any record for the Region. So my standard table lists each of the potential stages 1,2,3,4,5 as referenced in column F (rows 23-28: Shown in red in attached images) and I use VLOOKUP to find the Grand Totals for any current slicer selections and also return the appropriate column of data based on finding the current column number for a given stage with MATCH, referring back to my list of the names of potential stages (F23-28, red). Everything works fine if I select one or any number of the first 6 offices, but starting at the 7th office ("KAI" - there are 13 total), the remaining offices selection return zeros (in the standard table) for both $ and packages, even though the pivot tables continue to portray the correct results themselves. Even stranger is that if I select multiple offices (including any combination of office 7-13 with or without office 1-6) the result works fine. Just singular selections in office 6-13 fail in the standard table (and therefore chart). Ugh! Crazy. Anyone have any ideas?All is good in the world.jpg

    Formula looking for Grand Total and the Planning Stage (F23) in the packages table (which spans I4-O18), the Planning stage name being in Row 4.
    =IF(ISNA(VLOOKUP("Grand Total",$I$4:$O$18,MATCH($F$23,$I$4:$O$4,0))),0,VLOOKUP("Grand Total",$I$4:$O$18,MATCH($F$23,$I$4:$O$4,0),FALSE))

    Working selection from Slicer.jpg
    NOT Working selection from Slicer.jpg

    I would appreciate any feedback.
    Last edited by mjacobse; 04-04-2019 at 12:37 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pivot Table & Chart not responding consistently with Data Slicer

    Have you tried evaluating the formula to see which part is failing?

    Alt + m, then v

    You would probably be better off with a GETPIVOTDATA formula, but they're not something that I'm familiar with, so I'm going to offer an up to date equivalent to your exisiting formula.

    =IFERROR(INDEX($J$5:$O$18,MATCH("Grand Total",$I$5:$I$18,0),MATCH($F$23,$J$4:$O$4,0)),0)

  3. #3
    Registered User
    Join Date
    04-17-2017
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Pivot Table & Chart not responding consistently with Data Slicer

    I did try breaking things out separately and results were true but not in composite formula - your fix seems to work - THANK YOU.

  4. #4
    Registered User
    Join Date
    04-17-2017
    Location
    USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Pivot Table & Chart not responding consistently with Data Slicer

    Very much appreciated.

+ 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. Stepping through pivot table w slicer data using vba not working
    By rvaldivia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2018, 11:04 AM
  2. Replies: 4
    Last Post: 07-23-2018, 09:45 AM
  3. Replies: 7
    Last Post: 05-18-2017, 07:58 PM
  4. [SOLVED] Excel pivot table not responding
    By Deesta in forum Excel General
    Replies: 26
    Last Post: 01-14-2016, 10:17 AM
  5. Replies: 2
    Last Post: 07-30-2014, 05:50 AM
  6. Why can't I have a slicer in my pivot chart
    By ACrossley1 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 02-14-2014, 10:38 AM
  7. [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

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