Forum Discussion

stkarthik's avatar
stkarthik
New Member
9 years ago
Solved

Relationships

Hi  Iam trying to create relation between two table with Company Name as the Primary Key , even though my Company table has unqie records Power Bi through up an error saying You can't create a relationship between these two columns because one of the columns must have unique values"

 

can someone pls point out my mistake ,  here are table i am having an issue with

https://1drv.ms/x/s!AoFOemM4aW7PtccTFex-8sA1WnEujA

 

 

  • Baskar's avatar
    Baskar
    9 years ago

    Look the duplicate record in companies table 

     

     

     

     

6 Replies

  • Baskar's avatar
    Baskar
    Resident Rockstar

    Check is there aby blank value in Comapny Name column . 

     

    if yes that is the problem. if not am sure u have duplicate in your comapny name column 100 %

    • stkarthik's avatar
      stkarthik
      New Member

      BaskarI have created a Pviot Table to count the occernace of a vaule and there are only unquie values in my loookup table , with no blank spaces , You can look at the attached link , I am not able figure out where iam going wrong

      • Baskar's avatar
        Baskar
        Resident Rockstar

         

         

        Look this machi , u have dupilcate in country