+ Reply to Thread
Results 1 to 3 of 3

Pivot table controlled by slicer from disconnected table

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Pivot table controlled by slicer from disconnected table

    Hi,
    I have a pivot table controlled by a slicer made from a disconted table, it works, as long as a vlue is selected, but if not values are slected the table is filtered down to no rows.

    Please Login or Register  to view this content.
    What I've been trying to do is add an if statemen so that if nothing is selected I get back the totals, I'd like the filtered totals but would settle for an overall total at the moment.
    I've tried
    Please Login or Register  to view this content.
    which gives the correct grand total for the selection, but isn't right, I've attached a workbook with both ,
    so when no slicer used I'd like 'A' and when there is pivot "B" .
    I have tried various combinations of if( isfitered etc , but nothing seems to work.

    Richard.
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Pivot table controlled by slicer from disconnected table

    You could use something like:

    =VAR selectedCat = IF(HASONEVALUE(Table1[Category]),VALUES(Table1[Category]),BLANK())
    VAR anser =
    CALCULATE([Asum],FILTER(ALL(Table2[Category]),Table2[Category]= selectedCat||ISBLANK(selectedCat)))
    RETURN anser
    Rory

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Re: Pivot table controlled by slicer from disconnected table

    Thanks, once again, I think I may have been some time coming up with an 'or' to solve it.

    Richard.

+ 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. Hello. I have two pivot table want one slicer control two pivot table.
    By VOYAGER22 in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 07-08-2021, 07:46 PM
  2. [SOLVED] Slicer to control table and pivot table
    By chriscla in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-04-2020, 03:02 PM
  3. Custom Sorting a Slicer for a table - not a pivot table
    By Melissalee71 in forum Excel General
    Replies: 1
    Last Post: 10-12-2018, 10:23 AM
  4. Replies: 7
    Last Post: 05-18-2017, 07:58 PM
  5. Replies: 8
    Last Post: 03-31-2017, 05:07 AM
  6. [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
  7. Pivot table filter controlled via vba
    By Chemistification in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2010, 05:34 AM

Tags for this Thread

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