+ Reply to Thread
Results 1 to 4 of 4

Pivot Table Data Source/Field Settings

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    Boston, MA
    MS-Off Ver
    365
    Posts
    55

    Pivot Table Data Source/Field Settings

    I have ~20 pivot tables in a workbook (let's say workbook A) that I am creating a copy of in workbook B along with the source sheet. But the data source remains the sheet from workbook A. I can manually change the data source to workbook B but the problem arises with the fields.

    The pivot tables have row entries 0-150 and (blank) but some of these rows don't have data. They can have data in the future but don't as of now. When I change the data source the blank ones disappear. How do i stop it from happening? I need them all because the cells have dependents. I can't change it to refer to the pivot table dynamically, the file wasn't made by me and there are far too many to change.

    So the question is, is there a better way to copy the pivot table over to workbook B from A or is there a way to change the source and retain all rows?

    (Using Excel 2016 if it matters)

  2. #2
    Forum Expert sandy666's Avatar
    Join Date
    02-05-2015
    Location
    Any Country
    MS-Off Ver
    farerwell
    Posts
    8,749

    Re: Pivot Table Data Source/Field Settings

    one way
    workbook 0 = source
    workbook A - get data from workbook 0 via PowerQuery (as connection) and create as many PTs as you want
    workbook B - get ..... as in workbook A

    you can use workbook A as source of course without workbook 0
    sandy
    How to create an editor for Power Query with Notepad++ (tutorial)
    How to create timeline project with vertical today marker (2010, 2013, 2016 etc...) (examples)
    Tips for Excellent Spreadsheets

    What makes learning so hard is the amount of knowledge you have to unlearn
    Why is my program not doing what I expect?
    Because you set the wrong expectations. Rewire your brain

  3. #3
    Registered User
    Join Date
    07-17-2017
    Location
    Boston, MA
    MS-Off Ver
    365
    Posts
    55

    Re: Pivot Table Data Source/Field Settings

    I have code that modifies source, I don't want 2 files open. The whole point of copying data from A to B was to consolidate 4 A's (with several PTs each) into one file.

    I did some mucking around and here is the latest update:
    Point PT in workbook B to source in workbook A: contains all 150 rows.
    Make exact copy of source from A to B and point PT in workbook B to that: doesn't contain 150 rows. This completely stumps me. I have no clue.
    Recreate PT in workbook A using workbook A as source: Doesn't contain all 150 rows.

  4. #4
    Forum Expert sandy666's Avatar
    Join Date
    02-05-2015
    Location
    Any Country
    MS-Off Ver
    farerwell
    Posts
    8,749

    Re: Pivot Table Data Source/Field Settings

    with PQ you don't need open all files (PQ works with files closed)
    from B get source A via Power Query then create on B Pivots

+ 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. Pivot table - Multiple field value settings for 1 field
    By katrina.pak in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-11-2015, 04:07 PM
  2. Pivot Table VBA - Data Field - Original (source) field name
    By hbgpausa0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2008, 10:25 AM
  3. Pivot Table Field Settings Help
    By mattylance in forum Excel General
    Replies: 0
    Last Post: 11-14-2006, 06:04 PM
  4. How do I view Pivot Table source data file and field names?
    By chocolate2346 in forum Excel General
    Replies: 4
    Last Post: 09-14-2005, 02:06 PM
  5. Pivot Table Field Settings
    By Pivot Novice in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 09-06-2005, 03:05 PM
  6. [SOLVED] Pivot table field settings
    By Siew-Ming in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2005, 04:05 PM
  7. Pivot Table Field Settings
    By Michael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 06: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