+ Reply to Thread
Results 1 to 4 of 4

Power pivot creating many to many relationship among tables

  1. #1
    Registered User
    Join Date
    06-06-2023
    Location
    Tokyo
    MS-Off Ver
    2016
    Posts
    8

    Power pivot creating many to many relationship among tables

    Hi, I am using Excel power pivot option to create linking pivot tables. I want to establish a many-to-many relationship between the 3 tables. But the problem is that all of these tables contain duplicated Id, Record id, and date columns. For better understanding, I am sharing a sample Excel file. I will be grateful if anyone suggests me a better way to create a relationship correctly among these tables. Thanks.
    Attached Files Attached Files
    Last edited by Hasnat124; 07-25-2023 at 11:31 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Power pivot creating many to many relationship among tables

    I am not sure what you want an an outcome, however I hope that the following will help.
    1. Produce tables of distinct values of Id, Record id, and date
    2. Produce relationships between each of the new tables and the three original tables
    3. In the pivot table use the fields produced from the three new tables in the Rows area
    I put Sum of Total cost (TK) Sum of Total price (Tk) Sum of Fertilizer price (Tk) in the Values area just for illustration that this will allow relationships between the three tables.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    06-06-2023
    Location
    Tokyo
    MS-Off Ver
    2016
    Posts
    8

    Re: Power pivot creating many to many relationship among tables

    Dear JeteMc

    Thank you for your response. I am newly working with power pivot. I am searching for something exactly like this. From this above-mentioned data set, I want to create a summary pivot table with some basic calculations by joining sub-tables. As you showed in the example Excel file, I think I have to create unique ids, dates, and record IDs to make relationships among these tables. Your way of connecting tables seems to be easy for me and I will try it in my original dataset. Thanks again.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Power pivot creating many to many relationship among tables

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Power Pivot Relationship not Working?
    By ptmuldoon in forum Office 365
    Replies: 0
    Last Post: 03-17-2023, 03:23 PM
  2. Power Pivot is not detecting relationship
    By lastnn30 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 11-21-2021, 10:09 PM
  3. Power Pivot doesn´t create relationship
    By bacosta99 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-27-2021, 02:26 PM
  4. Replies: 1
    Last Post: 07-21-2020, 07:51 PM
  5. Power pivot relationship for date not working
    By AliAB in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 07-22-2017, 05:07 PM
  6. Replies: 0
    Last Post: 02-16-2016, 05:34 AM
  7. [SOLVED] What am doing wrong? Creating a relationship between two tables.
    By BrownBoy in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-18-2014, 11:52 AM

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