Results 1 to 6 of 6

Pivot Table Referencing Two Data Tables Returns Incorrect Data

Threaded View

eNinjaInTraining Pivot Table Referencing Two... 10-16-2017, 02:25 PM
63falcondude Re: Pivot Table Referencing... 10-16-2017, 02:37 PM
eNinjaInTraining Re: Pivot Table Referencing... 10-16-2017, 03:54 PM
sandy666 Re: Pivot Table Referencing... 10-16-2017, 04:15 PM
eNinjaInTraining Re: Pivot Table Referencing... 10-18-2017, 10:11 AM
sandy666 Re: Pivot Table Referencing... 10-18-2017, 10:26 AM
  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Kansas City, MO
    MS-Off Ver
    MS365
    Posts
    80

    Question Pivot Table Referencing Two Data Tables Returns Incorrect Data

    I’m trying to compare conflicting sets of tax output data to determine calculation differences between programs. I have put the outputs from the first program into one table and the outputs from another in a second table:

    Table 1 columns: City Name 1, Amount 1
    Table 2 columns: City Name 2, Amount 2

    I am then trying to compare the two tables via a pivot table listing the tax jurisdiction and its calculated amount in one table to its calculated amount in another table. I am wanting to see something like this in the pivot:

    Row: Sum of Amount 1: Sum of Amount 2:
    City A $1,950.59 $1,948.72

    I would then create a Max-Min column to determine respective differences outside of the pivot:

    Row: Sum of Amount 1: Sum of Amount 2: Max-Min:
    City A $1,950.59 $1,948.72 =max(h2:i2)-min(h2:i2)

    However, I am having a problem with my “Sum of Amount 2” column. I created a pivot table that added both output tables to my data model, and attempted the following arrangement:

    Filters: N/A
    Columns: Values
    Rows: City Name 1
    Values: Sum of Amount 1, Sum of Amount 2

    Excel prompted me to add relationships b/w the tables, so I did, using the City Names 1&2 as the primary/foreign key (though I was still prompted to add relationships). My pivot table returned the “Sum of Amount 1” values correctly, but my “Sum of Amount 2” values were all identical, simply the aggregated sum of the “amount 2” table column. How do I change this “Sum of Amount 2” column in my pivot to instead show the table 2 amount that matches the respective city name in table 1? I've not found any online articles that seem to point me in the right direction.

    Note: Program #2 calculates more jurisdiction data than Program #1, so more cities appear in table 2 than table 1. I am not concerned with these extra cities in this situation.

    Any help would be greatly appreciated, as this information is necessary for work! Please see included example file for reference (sensitive data scrubbed).
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pivot table displaying incorrect Column data
    By Mile029 in forum Excel General
    Replies: 11
    Last Post: 09-11-2018, 02:03 PM
  2. Replies: 19
    Last Post: 04-04-2016, 02:58 PM
  3. [SOLVED] Using Data in Pivot Table for refernce point returns #NAME?
    By JasonNeedsHelp in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-24-2015, 12:54 PM
  4. Replies: 0
    Last Post: 10-01-2014, 05:55 PM
  5. [SOLVED] Incorrect data in Pivot table
    By Reedberg in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-16-2013, 09:55 AM
  6. Replies: 1
    Last Post: 12-31-2010, 03:31 AM
  7. Referencing data from pivot tables
    By Dan27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2010, 01:36 PM

Tags for this Thread

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