+ Reply to Thread
Results 1 to 7 of 7

Exclude zero values from chart

  1. #1
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Question Exclude zero values from chart

    Hi guys/gurls I have attached an example to help. What i am trying to achieve is not have space for departments with zero value as it takes up space and from chart it doesnt seem that clear what department it is refering. If anyone could help me on this it would be much appreciated.

    I would also like this chart to be replicated on varous others costs with same format e.g. fuel if there is a vba or macro that i can be helped with.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Exclude zero values from chart

    The simplest way to remove categories, rather than series, is to use Autofilter.

    If you filter your data and exclude those with a zero value in Q3:Q14 your chart will exclude,

    September
    December
    February
    May
    June
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Re: Exclude zero values from chart

    Hi Andy i see your point but I can only filter 1 row at a time on condition if row not equal to zero.. department 1, 3, 8,9 11,12,13,14,15 are zero too..

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Exclude zero values from chart

    If you want both categories and series excluded then you need to build the reporting data using pivot table. This will also require a change in the data layout.

    Both rows and columns have been filtered for values less than zero.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Re: Exclude zero values from chart

    Andy thanks for guiding in the right directon but is there a VBA or Macro that i can use and plus i have hardly used pivot tables and how to link charts to pivot tables using 2 filter i wouldnt have clue.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Exclude zero values from chart

    Once you create your PT the ribbon has a button to create the chart.

    You filter the row data by selecting the cell labeled Row Labels.
    Use the built-in filter button to pick Filter Values.
    Pick Less than and enter zero.

    Repeat for Column

    The chart will automatically update.

    I can not see the need for code as it is all built-in and relatively straight forward.

  7. #7
    Valued Forum Contributor tek9step's Avatar
    Join Date
    05-27-2009
    Location
    London, England
    MS-Off Ver
    MS 365
    Posts
    395

    Re: Exclude zero values from chart

    Hi Andy thanks for the help I shall give it a go !!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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