Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Relationship issue when i have unique values

Hi Experts

 

Refer to table dimdata and hierarchy both tables have ItemID. I have unique values in Hierarchy table and multiples in dimdata...

 

When I try and create an 1 to * relationship its telling me I have multiple values in both tables.

 

https://www.dropbox.com/s/ilpja4jodpl2vei/SampleData_2.pbix?dl=0 

  • Anonymous 

    Yes, you remove duplicates in Power Query, create the relashionship.

     

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply 🙂


    WebsiteYouTube  LinkedIn

4 Replies

  • Anonymous 

    When you are creating a relationship as one-to-many, the one side of the relationship must have unique values. In your hierarchy table, there are duplicates 3a and 3b. Remove duplicates and it should work.

     

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply 🙂


    WebsiteYouTube  LinkedIn

    • Anonymous's avatar
      Anonymous
      Not applicable

      Many thanks for excellent feedback 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Just duplicate for 3a and 3b...all other item ids are good?

  • Anonymous 

    Yes, you remove duplicates in Power Query, create the relashionship.

     

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply 🙂


    WebsiteYouTube  LinkedIn