+ Reply to Thread
Results 1 to 7 of 7

Multi values pivot fields and how to remove all zero value rows?

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Multi values pivot fields and how to remove all zero value rows?

    Hi

    Is it possible to remove zero values from pivot results when there's more than one values pivot field being used? I'm aware of the filter function but it's limited to one field I think so not sure how to tackle this?

    Simple example attached where the pivot is showing all rows but the desired outcome is a far smaller data set when I've manually pasted the pivot outputs and deleted the blank value rows.

    I'm wondering if there are other dynamic array solutions now with 365 so a pivot may not be appropriate but it's nice and easy and somthing people are familiar with so easier to pass on the workbook

    Thanks

  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,913

    Re: Multi values pivot fields and how to remove all zero value rows?

    Does your real data only ever have one of the value fields populated in each row of the source data like your sample?

    If it works for you you could use a regular autofilter on the worksheet instead of the pivot table and filter that way.
    Rory

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Multi values pivot fields and how to remove all zero value rows?

    No the real data may have multiple value fields populated for each row of source data

  4. #4
    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,913

    Re: Multi values pivot fields and how to remove all zero value rows?

    You could just use Power Query to unpivot the value fields then build a pivot from that - see attached example.

  5. #5
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Multi values pivot fields and how to remove all zero value rows?

    Great that will work. Sorry you couldn't just briefly outline the creation steps could you?

  6. #6
    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,913

    Re: Multi values pivot fields and how to remove all zero value rows?

    Click somewhere in the table. On the Data tab, choose From Table/Range. That will load the data into PQ. Select all the non-value fields, right click at the top of one of them and choose Unpivot other columns. Then close and choose to load to connection only. You can then create a pivot table (choose the external data option) linked to that query and arrange it as in the sample workbook.

  7. #7
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Multi values pivot fields and how to remove all zero value rows?

    Amazing, thankyou!

+ 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. Macro to remove Pivot Value Fields
    By Siops in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-13-2022, 03:49 AM
  2. [SOLVED] Pivot Table - Show to separate fields of data in Values (as rows not columns)
    By Harribone in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 02-19-2019, 01:32 PM
  3. Remove Pivot Table fields with blank rows
    By Ramtrap in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-14-2017, 02:38 PM
  4. VBA code to run Multi value fields selection in Pivot table
    By Trung in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2014, 12:11 AM
  5. Remove Row Fields from Pivot Table
    By meherd in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-19-2012, 08:56 AM
  6. Add and Remove the Fields in an existent Pivot Table through VBA
    By RagonichaFulva in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2012, 10:15 AM
  7. Replies: 1
    Last Post: 04-25-2011, 01:17 PM

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