Forum Discussion

Mgg's avatar
Mgg
Icon for Helper I rankHelper I
4 years ago

index issue using existing PBI dataset

Hi All,

I'm working in a new report and dataset with several sources. One of that is an existing PBI dataset (I'm the owner of it).

Creating a relation with 2 tables:

- Geography (source in new dataset)

- ZD (source in existing dataset)

pop up the following error message: In colum "country" in table "Geography" thare's a duplicated value. It's not possible for column used as primary key.

In Geography table I added in power Query the Index column but still not work....

 

Any ideas?

 

3 Replies

  • Mgg , where is the join, if the join is on the country column (1-M) then it will keep on giving error.

     

    Better to delete duplicate country if that is join column

    • Mgg's avatar
      Mgg
      Icon for Helper I rankHelper I

      The join is in the country column and I caanot remove the duplicate name.

      What I could do is change the join from 1-M to M-M... is it possible?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Mgg ,

    How did you set the cardinality? If the cardinality be set as One to many (1:*), and the column in One table should have only one instance of a particular value. Otherwise, you will get the above error message. And If a data refresh operation attempts to load duplicate values into a "one" side column, the entire data refresh will fail... You can refer the following links to create and manage the relationships for the tables in your model...

    Model relationships in Power BI Desktop

    Create and manage relationships in Power BI Desktop

    Best Regards