Forum Discussion

Lulaz's avatar
Lulaz
Regular Visitor
9 years ago
Solved

Cannot create relationship between two columns.

Hi,

 

I have two Excel tables, one with the master data and one with translations for rule violations.

 

In Excel 1, I have a colume that lists the error causeing the load violation in each individual report uploaded to a repository. These might be repeated throughout the report as one upload might have an error 'WMAC03_IM_CR_MSEG_LIFNR' occuring 25 times in the file. A separate report might have that error 62 times and so on.

 

I then have Excel 2 listing the 'English' translation of these errors. eg. 'WMAC03_IM_CR_MSEG_LIFNR' is translated to 'Assign the correct Vendor number to this cell.' in both files I have RULE_NAME as the error code listed.

 

In my dashboard, I want BI to show the 'English' Translation if it sees a certain error listed.

 

I have tried to link these two files but I get 'You Can't create a Relationship between these two columns bacause one of the columns must have Unique values'. I have double / tripple checked, removed duplcates from the excel and ran a quirie in BI to remove duplicates from the RULE_NAME feild in Excel 2 and none are there. So the Excel 2 is made of uniquie values in Colume 1. There is also no blanks or Nulls I can see.

 

Any Ideas how i can link the two feilds?

 

Thanks

  • Hm, that's a bit strange.

    Then trim and clean the column (s in both tables) as well - before removing duplicates. You find these commands under the lowercase.

14 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    could you have the same rules but in different cases?  i am assuming you did the remove duplicates in Power Query?  I think power query is case sensitive, however i could be wrong.. but its just a thought.

    • Lulaz's avatar
      Lulaz
      Regular Visitor

      Yes, good thought, but takeing a look through, some do occur in lower cases, but are still unique.

       

      The first few Characters in the string though are not unique, eg, QTIC06_CR_KONA_BOART + QTIC06_CR_KONA_KBETR + QTIC06_CR_KONA_KBRUE. Is there a limit on the lookup string value? So when judging if something is unique, its only looking at first 5 or 10 characters?

      • vanessafvg's avatar
        vanessafvg
        Community Champion

        no i wouldn't think so.  have you done a group by on the table with a count to double check there no duplicates?