+ Reply to Thread
Results 1 to 16 of 16

Pivot Realtionship!!

  1. #1
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Pivot Realtionship!!

    Hello Friends!!!
    I have two different data sources from where i extract two different pivot tables and then merge those two manually. I do it every week and tired of doing it manually.... What i want is that i want to make a relationship on these two Pivot tables or may be the two "DATA SOURCES" and display the result in single Pivot table....

    The first source contains name, age, DOB and the second source contains the same name, and other headings...
    Can this be done??
    Thanks for you time...

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Pivot Relationships!!

    Merging Pivot Tables is not possible, you need to merge data sources..

    You can do that either by using PowerPivot/Data Model (Available to only certain versions of Excel) to build relationships between multiple data sources or use Vlookup if you have a common key in both data sources, which I suppose you have; "Name" and then build a Pivot Table from that data.

    You can post a sample of your data aswell for further clarification..

    Hope it helps!
    Last edited by NeedForExcel; 05-26-2015 at 01:03 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    Yes i would like to do it by Power pivot or may be by merging data sources... I have common key in both of the data sources... how can we do that?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pivot Relationships!!

    Since both source data having the similar structure you can use Multiple Consolidation ranges options while creating Pivot Table.
    Attached Images Attached Images


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Pivot Relationships!!

    Quote Originally Posted by :) Sixthsense :) View Post
    Since both source data having the similar structure you can use Multiple Consolidation ranges options while creating Pivot Table.
    WOW! This feature is almost forgotten.. Like I did right now.. Its a great feature..

    @Meus - You might need to take a look at this to access it..

    https://support.office.com/en-NZ/art...0-26f4d9f21ad6 - If using Mac

    https://support.office.com/en-nz/art...1-e9fc8adeeeb5 - For Windows

    Quote Originally Posted by meus View Post
    Yes i would like to do it by Power pivot or may be by merging data sources... I have common key in both of the data sources... how can we do that?
    You can either do it as SixthSense mentioned above, or by using simple Vlookups.. If you need help with the function kindly post sample data to understand the structure better..
    Last edited by NeedForExcel; 05-26-2015 at 01:19 AM.

  6. #6
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    Thank you Dosts!!

  7. #7
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    An error occurred...
    i tried to relate two tables having one common key "Client" but the following error occured...
    aaaaaaaaa.JPG

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pivot Relationships!!

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Pivot Relationships!!

    If you use Power Pivot, you can add both tables to the data model and establish a relationship that works similar to a Vlookup.

    Or, you can download Power Query, a free add-in from Microsoft, with which you can retrieve and transform (join, merge, format, clean up) data from different data sources into one query. You could use Power Query to remove the duplicates in one of the data sources, then join the two tables and load the result into the data model, from where you can access it with Power Pivot.

    cheers, teylyn

  10. #10
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    I have attached the scrap workbook...
    In this file, i try to relate the two tables but i am not able to do so...
    Thanks
    Attached Files Attached Files

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pivot Relationships!!

    Please show the expected result

  12. #12
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    Here is it in the attached file the desired result as well...
    Attached Files Attached Files

  13. #13
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Relationships!!

    ??????????????????????????????

  14. #14
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pivot Realtionship!!

    Actually normal pivot table with the source range of table2 is enough in this case.

    You just add a column in Table2 for arriving the Hours from Table1. You can arrive it by using sumif() function.

    Refer the attached file for details.
    Attached Files Attached Files

  15. #15
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Pivot Realtionship!!

    No, But that is not the solution... that is just the Scrap Workbook.
    In my original workbook, the situation is too complex...
    I havve to manually input the data so wanted to relate tables in pivot
    Thanks any way

  16. #16
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pivot Realtionship!!

    Since both of your data don't have a constant structure my suggested method won't work for you...

    Please check the teylyn suggestion on Post #9 and see whether it solves your expectation.

+ 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. Replies: 4
    Last Post: 06-19-2014, 12:59 PM
  2. Replies: 2
    Last Post: 02-20-2013, 08:27 AM
  3. Power Pivot with multiple pivot charts using different pivot data
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-10-2013, 10:18 AM
  4. count values in one column based on their realtionship with anoth.
    By shopaholic in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2005, 09:20 PM
  5. [SOLVED] How does the term 'pivot' apply to Excel's Pivot tables and Pivot.
    By stvermont in forum Excel General
    Replies: 1
    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