+ Reply to Thread
Results 1 to 6 of 6

Powerpivot, need connect fields in two table, which has duplicates

  1. #1
    Forum Contributor
    Join Date
    08-26-2009
    Location
    Iceland
    MS-Off Ver
    Excel 365, Windows 10
    Posts
    110

    Powerpivot, need connect fields in two table, which has duplicates

    Hello,

    I am using excel 2013, and w7 enterprise

    I have two tables in powerpivot, and I need to link them.
    Many rows are equally but some are different.
    This is not big files, both around 300.000 lines and around 20 columns.
    These files are not identical.

    I am not keen to merge this two tables into one, unless I can do it automatically.
    Manually is too risky.

    I was thinking to link the files through social id or document number.

    The problem is, I have duplicates values. Is there only possible to link, one to many?

    In attached file you can see some demo.
    Attached Images Attached Images

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Powerpivot, need connect fields in two table, which has duplicates

    Looking at your sample, only difference is Data F to Data D

    While you don't have single column that makes record unique... if you concatenate Data A, B, C & E it looks like each record will be unique.

    You can do merge operation in PowerQuery and automate it.

    In my opinion, all data transformation and cleanup should be done in PowerQuery, prior to data being loaded to model.

    If you need help with process, upload sample workbook with both raw data.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    08-26-2009
    Location
    Iceland
    MS-Off Ver
    Excel 365, Windows 10
    Posts
    110

    Re: Powerpivot, need connect fields in two table, which has duplicates

    Hello CK76, this is just a sample. There are several columns which are different.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Powerpivot, need connect fields in two table, which has duplicates

    ... sample should accurately represent your actual data set.

    At any rate, you should do transformation and clean up in PowerQuery. That remains unchanged as you can't relate the columns.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Powerpivot, need connect fields in two table, which has duplicates

    One way is, in excel, create two tables SocialID and Names with unique social ids and names, import both these tables into the data model and link the social id and name fields of previously existing data tables with the newly imported social id and names tables on social id and names fields respectively. See if that approach resolves your issue.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Forum Contributor
    Join Date
    08-26-2009
    Location
    Iceland
    MS-Off Ver
    Excel 365, Windows 10
    Posts
    110

    Re: Powerpivot, need connect fields in two table, which has duplicates

    sktneer, this seems to work. Yes I think socialID is best connection.

    ck76, Im sorry if I were not accurate. I didn't want to post my data. Probably my example was not good enough.

    Thanks for the help.

+ 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. [SOLVED] PowerPivot: Unable to sum calculated fields.
    By countryfan_nt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2017, 11:24 AM
  2. Replies: 1
    Last Post: 03-11-2016, 07:34 AM
  3. Replies: 4
    Last Post: 07-23-2015, 03:35 PM
  4. Replies: 2
    Last Post: 06-02-2014, 09:34 AM
  5. Help with Dynamic Grouping to Subtotalling fields in PowerPivot Table
    By mikeTRON in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-12-2013, 01:10 PM
  6. Replies: 5
    Last Post: 06-26-2012, 09:02 AM
  7. How do I connect fields from two spreadsheets
    By The Good Deeds Team in forum Excel General
    Replies: 12
    Last Post: 02-18-2005, 10:06 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