+ Reply to Thread
Results 1 to 5 of 5

Pivot misses a row

  1. #1
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    215

    Pivot misses a row

    I have a data table (160 Rows * 28 Columns) which I want to condense by using a pivot table.
    All works well at first until I had to edit one item of the data set in the column containing the items used by the pivot to sum the data. When I refreshed the pivot, the edited item and the data it referencing was missing.
    The attached workbook shows a selection from the data table including the edited row (tc in ColK). But here the pivot table has not missed out tc.
    Seeing this I went back to the full data set and ran another identical pivot to the original and again tc was missing.
    What is happening here? I have presumed it is something to do with editing tc but does that mean that I will have to set up a new data table, and pivot that anew?
    John
    Attached Files Attached Files

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

    Re: Pivot misses a row

    I'm not sure that a sample workbook that doesn't display the problem really helps us to help you.

    In your real workbook, is it a regular pivot table, or does it use the data model?
    Rory

  3. #3
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    215

    Re: Pivot misses a row

    Rory again it's you! Thank you so much for your interest.
    I don't understand your question, as I don't know about data models. As far as I know it is a regular pivot. I achieve it by inserting a new pivot table, specifying where it will stand and then adding the various rows and columns I need. The data is a query from a well known accounting package. When the query is updated I update the pivot table by the following code.
    Please Login or Register  to view this content.
    NameStr is "PivotTable" & TableNo
    I have had similar problems in the past after times when I have added or removed rows or cols from the datarange you are asked to provide when constructing a pivot table.
    The pivot does not recognize the change and usually has to be replaced by a new one. This solution did not work though this time.
    I will copy the whole of the data range into a new workbook and create a pivottable there. I f the problem shows up when I edit after making the pivot I will attach it and risk the wrath of the forum powers.
    John

  4. #4
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    215

    Re: Pivot misses a row

    I have just copied the data, made a pivottable then amended one of the code letters and refreshed the pivottable. The amended code letter was picked up.
    Don't spend any more time on this. I will completely redo the data and the pivot without the edit. If I am still in trouble I'll come back again.
    John

  5. #5
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    215

    Re: Pivot misses a row

    A new pivottable allowed me to continue. Strangely it also allowed editing of the "code" column of the data table. I've put it down to experience.
    John

+ 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. Need help with Streaks hits/Misses
    By ZDAV in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2020, 11:53 AM
  2. if filter criterara misses sub needs to exit
    By hudson andrew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2017, 11:01 AM
  3. Chart Zooming Misses Code
    By ant1905 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2012, 09:59 AM
  4. Excel 2007 : Publish as PDF misses shapes
    By davegugg in forum Excel General
    Replies: 9
    Last Post: 10-28-2010, 09:10 PM
  5. How to improve sort - misses some
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2010, 01:04 PM
  6. The Autofilter misses some numbers
    By DaleH in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2006, 07:50 AM
  7. lookup misses the first entry in table
    By Spunky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2005, 05:06 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