+ Reply to Thread
Results 1 to 3 of 3

"Relational Databases in Excel" - Pivot Tables

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    "Relational Databases in Excel" - Pivot Tables

    Hi!

    Does anyone have experience using "Relational Databases" in Excel? It might only be available in Excel 2013 but I'm not sure. Anyway, it is a feature of pivot tables where you can create a data model and collect data from multiple tables in your pivot table using foreign keys.

    I'm having trouble with it. I have two tables containing all my company's employees in each of our database systems (ADP and a homegrown database using SQL Server). I have a field in my first table (ADP) that contains unique identifiers (UID's) for each record (employee - no duplicates), and my second table (homegrown database) contains the same list of employees, but many of them have multiple accounts in our homegrown database, thus the UID's are duplicated in this table. I am trying to create a pivot table, based on the ADP table, showing each employee from ADP and all their matching accounts (call this field user_id) in the homegrown system based on the UID field. When I try to do this, the pivot table just shows me each UID in column A, and then shows me every single user_id before showing the next UID. I've created a relationship between the two so I'm really not sure what I'm missing.

    Any help is appreciated! I've attached a sample. Example - Cell A40 '3120500264' should only show three user_id's - 4989, 3726, 4566.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: "Relational Databases in Excel" - Pivot Tables

    I haven't got time to look at this at the moment (and it isn't something with which I am familiar) but I think it might need the relationship setting up on the data tab.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: "Relational Databases in Excel" - Pivot Tables

    Quote Originally Posted by tony h View Post
    I haven't got time to look at this at the moment (and it isn't something with which I am familiar) but I think it might need the relationship setting up on the data tab.
    tony h - I have relationships set up based on 'emplid_value', but that hasn't solved it. It does seem to work correctly when I set 'user_id' to both Rows and Values (count of), but then I end up with an extra column showing the count. I can work with this, but it's not ideal. Let me know if you figure it out!

+ 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. Captions in Pivot tables in Excel 2010 do not "stick"
    By ExcelVBAguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 08:59 AM
  2. Replies: 2
    Last Post: 01-26-2011, 06:45 AM
  3. [SOLVED] how do I create a relational "Goals List" using Excel?
    By worldfamousInNZ in forum Excel General
    Replies: 0
    Last Post: 08-03-2006, 06:40 PM
  4. Replies: 3
    Last Post: 04-24-2006, 01:35 PM
  5. [SOLVED] How do I disable "Get Pivot Data" when working from pivot tables?
    By Frustrated excel 2003 user in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2005, 08:10 PM
  6. [SOLVED] How do I "show pages" in pivot tables in Excel 2002
    By simon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2005, 06:05 PM
  7. Excel 2003 Pivot tables - how to "show pages"
    By RosH in forum Excel General
    Replies: 1
    Last Post: 08-09-2005, 09:07 AM

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