<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating relationship between two tables using null calculated columns SSAS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-relationship-between-two-tables-using-null-calculated/m-p/2866040#M92366</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a problem of recreating a solution that my previous colleage did and nobody has no idea what the solution really means.&lt;BR /&gt;There are two tables in tabular model: a dimension (D) and a fact table (F) which have the same source but each table contains different number of attributes. Each table contains a calculated column "Link" which has no expression:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These two tables has a relationship (Many to one, Both Directions) using these two calculated columns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How does it even work?&lt;/P&gt;&lt;P&gt;Even though I don't understand the logic, I tried to recreate this solution using another two tables, but I'm getting an error: Link&amp;nbsp;column contains a duplicate value null and this is not allowed&amp;nbsp;&lt;SPAN&gt;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.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can somebody please explain what is going on and why am I getting an error while trying to recreate almost the same thing that actually works?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 21:52:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-26T21:52:16Z</dc:date>
    <item>
      <title>Creating relationship between two tables using null calculated columns SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-relationship-between-two-tables-using-null-calculated/m-p/2866040#M92366</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a problem of recreating a solution that my previous colleage did and nobody has no idea what the solution really means.&lt;BR /&gt;There are two tables in tabular model: a dimension (D) and a fact table (F) which have the same source but each table contains different number of attributes. Each table contains a calculated column "Link" which has no expression:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These two tables has a relationship (Many to one, Both Directions) using these two calculated columns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How does it even work?&lt;/P&gt;&lt;P&gt;Even though I don't understand the logic, I tried to recreate this solution using another two tables, but I'm getting an error: Link&amp;nbsp;column contains a duplicate value null and this is not allowed&amp;nbsp;&lt;SPAN&gt;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.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can somebody please explain what is going on and why am I getting an error while trying to recreate almost the same thing that actually works?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 21:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-relationship-between-two-tables-using-null-calculated/m-p/2866040#M92366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-26T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating relationship between two tables using null calculated columns SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-relationship-between-two-tables-using-null-calculated/m-p/2866316#M92374</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the error message you encountered, you are encountering a problem about data modeling, you have created a many-to-one relationship for two tables in the data model, the link column in dimension table (D) is used as one end column, but the link' column contains duplicate null values, there are two solutions to this error:&lt;/P&gt;
&lt;P&gt;The first is to go to Power Query and use filtering to filter out rows in the link column that contain null values and reload them into Power BI&lt;/P&gt;
&lt;P&gt;The second is to reconstruct the relationship between the two tables and respecify the primary key associated between the two tables, because as far as I know, if the related primary key between the two tables also contains a null value, it does&lt;/P&gt;
&lt;P&gt;It has a certain impact and trouble on data screening and display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 01:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-relationship-between-two-tables-using-null-calculated/m-p/2866316#M92374</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-27T01:48:21Z</dc:date>
    </item>
  </channel>
</rss>

