Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Relationship error when splitting column into rows

Hello, I am new to Power BI and learning as I go (mostly from this forum!). I have a two tables that are related. The first is opportunities (Salesforce)   Id             Name           Amount 800...
  • MFelix's avatar
    MFelix
    7 years ago

    Hi Anonymous ,

     

    Looking at your mockup data and putting it on a PBIX file I got no error I created a one (Opportunities) to many (Proposals) relationship between both tables.

     

    But reading your post again I detected that you wrote:

    "Proposal - Column 'Id' in Table 'Proposal' contains a duplicate value 'a001U0000064hRXQAY' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table."

     

    Believe that your issue is in the way you setup your relationship, you need to add a relation that links the Opportunity ID (Opportunity table) with Opportunity ID (Proposals Table) be aware that the one side is on the opportunity side and not on the proposal as you refer.

     

    Check the PBIX file attach with your mockupdata.

     

    Regards,

    MFelix