Forum Discussion

admin11's avatar
admin11
Memorable Member
4 years ago
Solved

Link Table for Customer get error msg

Hi All

My AR table customer table unable to link with my SOURCE table. 

 

i using this expression to link :-

Customer = DISTINCT(UNION(ALL(AR[Customer/Vendor Code]), all(SALES[CUST_ID])) )

 

I get below error msg :-

Column '' in Table '' contains blank values 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.

 

 Can some one advise me how to clear the error msg ?

 

Sample PBI file :-

https://www.dropbox.com/s/8ggmos7cydb9wzu/PBT_V2021_115%20SOLVE%20ar%20CUSTOMER%20NOT%20LINK.pbix?dl=0

 

Paul

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi admin11 ,

     

    The reason for the error is that this column contains null values.

     

    Result after filtering out blank values

    Customer = DISTINCT(UNION(ALL(AR[Customer/Vendor Code]), filter(all(SALES[CUST_ID]),[CUST_ID]<>BLANK())) )

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

4 Replies

    • admin11's avatar
      admin11
      Memorable Member

      VahidDM 

      Thank you for  sharing.

      I have try your expression , it still have error.

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi admin11 ,

         

        The reason for the error is that this column contains null values.

         

        Result after filtering out blank values

        Customer = DISTINCT(UNION(ALL(AR[Customer/Vendor Code]), filter(all(SALES[CUST_ID]),[CUST_ID]<>BLANK())) )

         

        Best Regards,

        Stephen Tao

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.