Pivot Table - Hiding Rows Based on Column Value

%3CLINGO-SUB%20id%3D%22lingo-sub-1066061%22%20slang%3D%22en-US%22%3EPivot%20Table%20-%20Hiding%20Rows%20Based%20on%20Column%20Value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1066061%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%26nbsp%3B%20Seeking%20guidance%20on%20how%20I%20can%20hide%20rows%20in%20a%20pivot%20table%20if%20the%20value%20in%20a%20certain%20column%20is%20zero.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOverview%3A%20I%20have%20a%20data%20dump%20from%20an%20accounting%20database%20with%20%26gt%3B%20100k%20sales%20transactions.%26nbsp%3B%20Each%20transaction%20is%20categorized%20by%20one%20of%20five%20products%20sold%20(product%20A%2C%20B%2C%20etc.).%26nbsp%3B%20I%20am%20making%20a%20table%20to%20show%20the%20buyer%20by%20rows%20then%20columns%20with%20the%20sales%20volume%20for%20each%20of%20the%20five%20products%2C%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Product%20A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Product%20B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BProduct%20C%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Betc%2C%3C%2FP%3E%3CP%3ECustomer%201%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%241000%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%243000%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24500%3C%2FP%3E%3CP%3ECustomer%202%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%240%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2450000%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2410000%3C%2FP%3E%3CP%3ECustomer%203%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2410000%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%24200%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%240%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20example%2C%20I%20would%20like%20to%20hide%20Customer%203%20since%20they%20have%20a%20zero%20in%20Product%20C.%26nbsp%3B%20Any%20thoughts%20on%20how%20to%20set-up%20the%20table%20to%20accomplish%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emucrick%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1066061%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1066350%22%20slang%3D%22en-US%22%3ERe%3A%20Pivot%20Table%20-%20Hiding%20Rows%20Based%20on%20Column%20Value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1066350%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F339653%22%20target%3D%22_blank%22%3E%40mucrick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20dirty%20solution%20would%20be%20to%20select%20the%20cell%20immediately%20to%20the%20rightmost%20header%20of%20the%20Pivot%20Table%20(PT)%2C%20and%20then%20put%20a%20filter%20on%20that%20cell.%20This%20will%20insert%20filter%20buttons%20on%20each%20of%20the%20column%20headers%20inside%20the%20PT.%20Then%20you%20can%20filter%20out%20any%20value%2C%20e.g.%20blanks%2C%20zero's%2C%20amounts%20below%2C%20above%20or%20within%20boundaries.%20Whatever.%20The%20attached%20worksheet%20has%20a%20simplified%20example%20where%20the%20filter%20was%20put%20on%20L13.%20Just%20coloured%20it%20as%20an%20indicator.%20Now%20you%20can%20press%20the%20filter%20for%20product%20E%20and%20e.g.%20uncheck%20(Blanks).%20Hope%20this%20works%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello!  Seeking guidance on how I can hide rows in a pivot table if the value in a certain column is zero.

 

Overview: I have a data dump from an accounting database with > 100k sales transactions.  Each transaction is categorized by one of five products sold (product A, B, etc.).  I am making a table to show the buyer by rows then columns with the sales volume for each of the five products, as follows:

 

                                              Product A              Product B           Product C           etc,

Customer 1                                 $1000                   $3000              $500

Customer 2                                  $0                         $50000           $10000

Customer 3                                 $10000                 $200                 $0

 

In this example, I would like to hide Customer 3 since they have a zero in Product C.  Any thoughts on how to set-up the table to accomplish this?

 

Thank you,

 

mucrick

 

 

4 Replies

@mucrick 

A dirty solution would be to select the cell immediately to the rightmost header of the Pivot Table (PT), and then put a filter on that cell. This will insert filter buttons on each of the column headers inside the PT. Then you can filter out any value, e.g. blanks, zero's, amounts below, above or within boundaries. Whatever. The attached worksheet has a simplified example where the filter was put on L13. Just coloured it as an indicator. Now you can press the filter for product E and e.g. uncheck (Blanks). Hope this works for you.

Hello @Riny_van_Eekelen , I was trying to figure this out for an hour and your solution worked perfectly! Unfortunately it doesn't apply to the associated pivot chart, do you know if its possible or not? Thanks in advance!

@Paul_Hiroshi Can't really tell. Never tried that. Better to open a new conversation with your specific problem and add some more specific information.

Thanks for the quick reply ! I'll open a new thread, thanks a lot