• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Suppress zero rows on pivot table with slicer|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Suppress zero rows on pivot table with slicer|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Suppress zero rows on pivot table w…
sp_PrintTopic sp_TopicIcon
Suppress zero rows on pivot table with slicer
Avatar
Philippa Garland
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 28, 2020
sp_UserOfflineSmall Offline
1
September 2, 2020 - 1:39 am
sp_Permalink sp_Print

Hi fellow MOTHers!  I have a dashboard showing revenue by product and a couple of slicers attached to filter for product and customer.  I only want to show data for those product with >0 revenue so I of course I can filter the underlying pivot table for non 0 values, but as soon as you apply a slicer and then clear it my non 0 filter also disappears.  Does anyone know of a way of permanently suppressing 0's in a pivot table without using a filter?

 

Thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
September 2, 2020 - 10:21 am
sp_Permalink sp_Print

Hi Philippa,

It's not clear what field your Slicer is for, but by default a PivotTable will only show items that have values in the source data. If it is returning zeros then it suggests that you have rows in your source data with zero revenue values against them. If so, I would be removing them from my source data with Power Query before loading the data into Excel for analysing in a PivotTable.

Mynda

Avatar
Philippa Garland
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 28, 2020
sp_UserOfflineSmall Offline
3
September 2, 2020 - 7:25 pm
sp_Permalink sp_Print

Hi Mynda,

Sorry if I wasn't clear.  For each product there is data for pipeline, revenue by quarter and total revenue.  I have a chart that shows total revenue by product and this will include all the products that have no revenue yet as it will be in say Q4.  Other charts on the dashboard include pipeline and revenue split by country and a slicer for the product.  So if I choose a product that has no YTD revenue this will be reflected on the YTD chart but show future revenue on another which is fine, but when I remove the filter from the slicer I want the chart that shows YTD revenue for all Products not to show those with $0 as it makes the chart look messy.  I can't remove rows with no YTD revenue as the data for pipe and future quarter revenue is required.  Is there a way to achieve this?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
September 3, 2020 - 10:10 am
sp_Permalink sp_Print

Hi Philippa,

Create separate PivotTables for each chart so that the chart you don't want zero values displaying doesn't include pipeline data. You can then connect the Product Slicer to all of the PivotTables you want it to filter (right-click the Slicer > Report Connections).

I hope that helps. If not, please supply your file so we can be more specific with our answers.

Mynda

Avatar
Philippa Garland
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 28, 2020
sp_UserOfflineSmall Offline
5
September 3, 2020 - 10:54 pm
sp_Permalink sp_Print

Hi Mynda,

I have mocked up an example, I inherited the data and dashboard so please ignore the way it is laid out and the inconsistencies!  On the Dashboard tab I would like to be able to not show any 0 values for the Revenue by Client and RBU Product Revenue charts.  For example with filters cleared on the Products slicer the Revenue by Client chart should not contain CompanyF, CompanyM or CompanyN as they have 0 revenue, and the RBU Product Revenue chart should not have Product A or Product 2 for the US.

Is this possible?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
September 4, 2020 - 10:52 am
sp_Permalink sp_Print

Hi Philippa,

Thanks for sharing your file. I can see that the problem is caused by the wrong layout for the source data. i.e. the data is already partially pivoted which has forced you to create a calculated field for the YTD Revenue. Your layout should be in a tabular format. 

In the file attached I've used Power Query to unpivot the data and you can see the output on the Tabular Data sheet. I then recreated the two PivotTables and Pivot Charts with a Slicer and you'll see there aren't any zero values in either of the charts.

I hope that points you in the right direction for the future.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Philippa Garland
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 28, 2020
sp_UserOfflineSmall Offline
7
September 10, 2020 - 9:28 pm
sp_Permalink sp_Print

thank you so much Mynda, this makes sense now.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Brian Pham
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
stuart burge
Bruce Tang Nian
Scot C
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Forum Stats:
Groups: 3
Forums: 24
Topics: 6223
Posts: 27295

 

Member Stats:
Guest Posters: 49
Members: 31920
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.