Forum Discussion

Maykel's avatar
Maykel
Frequent Visitor
8 years ago
Solved

Trying to Create a One to Many Relationship from Many to Many Data

Hello!

 

I've been using this site for help on Power BI and now I have a challenge I'm working through. I have 2 sets of data, 1-Scrapped by Item # and 2-Planned Qty by Item #.

 

So to do the work around, I created an Item Master Table which i used to bridge between report 1 (Scrapped Qty) and 2 (Planned Qty) by Item #.  Now I can display all the details by Item # but both reports also have other pieces of information that I would also like to link. For example, dates of key enteries...crop season...basically each report has a bit of the same info thats why its a many to many issue.

 

My question is how do I still pull in dates, key info, and other columns from report 1 & 2 if my Item Master (workaround) doesn't work?

 

Hope that's enough information to start.

 

Thanks,

Maykel

  • Hi,

     

    Yes, you must create a Table for each Item.  Then you create a relatiosnhip from the Many to the One side.

9 Replies

  • Hi,

     

    Please share the following:

     

    1. Link from where i can download your file; and
    2. Business question
    3. Expected result
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Maykel,

     

    I don't think it will be possible to use one dim table to link multiple M:M relationship tables.
    You need to create multiple dim table to mapping these tables, then you can use a primary key(date or id) as the main relationship to link these tables.

     

    Regards,

    Xiaoxin Sheng