+ Reply to Thread
Results 1 to 3 of 3

How to let pivot chart ignore errors when the source is dynamic

  1. #1
    Registered User
    Join Date
    11-07-2019
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    15

    How to let pivot chart ignore errors when the source is dynamic

    Hello,
    I have a daily report and a pivot table/chart that is displaying stuff from a source tab that is dynamic.
    Every day the amount of rows jumps randomly +1...-1000. I want to expand the Pivot Source Data in advance to 99999 rows to accommodate the future expansion
    without re-mapping the source data every morning.
    My pivot has a source range - how to tweak it to ignore the empty values from the unoccupied cells in the dynamic source tab?
    There are also formulas that are converting dates to weeknum and if they are empty i get zeroes and/or ######## (if formatted as short date) or "-1" if formatted as general.

    I tried adding Label Filter to exclude (blank), but it's only a half of the problem - ###/-1 are still there.
    Thanks
    pivot.jpg
    Attached Files Attached Files

  2. #2
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,277

    Re: How to let pivot chart ignore errors when the source is dynamic

    Why make things difficult ?
    Select your range and make it an XL Table ( Insert - Table)
    Then base your Pivot on this table, thus your chart
    The PT will adapt automatically each time rows are added ( see here for how to)
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

  3. #3
    Registered User
    Join Date
    11-07-2019
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    15

    Re: How to let pivot chart ignore errors when the source is dynamic

    Quote Originally Posted by Pepe Le Mokko View Post
    Why make things difficult ?
    Select your range and make it an XL Table ( Insert - Table)
    Then base your Pivot on this table, thus your chart
    The PT will adapt automatically each time rows are added ( see here for how to)
    That truly helps BUT I didn't mention that my workflow involves copying a range from an Access database daily and pasting it to the spreadsheet (that feeds a couple pivot charts and tables).
    Above solution is brilliant, but works only if the range expands every time. In the case of a smaller range, the old data in the [Table1] will remain. I'll explain: the "last week's" range - 1000 rows, "this week's" range has 900 rows, keeping the "last week's" 100 rows in the [Table1] and "infecting" the pivot with old data.
    Would you be able to point me towards the solution, please?

+ 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