<?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 Re: One to Many Relation show unrelated rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550476#M72152</link>
    <description>&lt;P&gt;Hello johnt75,&lt;/P&gt;&lt;P&gt;the measure still do not show the wanted result. I want to show the information of table 2 as blank in this specific row, where table 1 has no relation to table 2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;Kind regards&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 13:48:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-31T13:48:53Z</dc:date>
    <item>
      <title>One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550168#M72127</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables with a one to many relation. After creating the relationship in the data model, I created a pivot table. There is a measure to count the rows of the many side. Now I want to add a measure, to show the rows from the one side of the relation were have no relation to the second table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be thankful for any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 11:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550168#M72127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550284#M72131</link>
      <description>&lt;P&gt;You could try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 1 only = COUNTROWS( EXCEPT( VALUES('Table 1'[Primary Key]), VALUES('Table 2'[ForeignKeyTable1])))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 May 2022 12:21:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550284#M72131</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-31T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550339#M72137</link>
      <description>&lt;P&gt;Hello johnt75, thank you for your reply.&lt;/P&gt;&lt;P&gt;But the result show alle the missing relations, not only the one missing row with empty table2 data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 12:42:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550339#M72137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T12:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550368#M72142</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 1 Only =
CALCULATE (
    SUMX ( 'Table 1', IF ( ISEMPTY ( RELATEDTABLE ( 'Table 2' ) ), 1, 0 ) ),
    ALLEXCEPT ( 'Table 1', 'Table 1'[Primary Key] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 May 2022 12:58:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550368#M72142</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-31T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550476#M72152</link>
      <description>&lt;P&gt;Hello johnt75,&lt;/P&gt;&lt;P&gt;the measure still do not show the wanted result. I want to show the information of table 2 as blank in this specific row, where table 1 has no relation to table 2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 13:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550476#M72152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550537#M72156</link>
      <description>&lt;P&gt;Ah, not sure if you can do that in a pivot table.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 14:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2550537#M72156</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-31T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2557165#M72638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count PrimaryKey2 = 
VAR res =
    VALUES ( 'Table 1'[PrimaryKey] )
VAR res_ =
    CALCULATE (
        COUNT ( 'Table 2'[PrimaryKey2] ),
        FILTER ( ALL ( 'Table 2' ), 'Table 2'[ForeignKeyTable1] IN res )
    )
RETURN
    IF ( ISBLANK ( res_ ), "", 1 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result looks like this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, attached the pbix file as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 08:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2557165#M72638</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-03T08:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2562898#M72955</link>
      <description>&lt;P&gt;Hello, the measure do not show the required result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;I want to show also columns of the many table in the pivot row filter. But the values of the many table should be blank if there is no matching data record in the many table.&lt;BR /&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 06:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2562898#M72955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-07T06:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Relation show unrelated rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2563438#M72991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try this Measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count PrimaryKey2 =
VAR res =
    CALCULATE (
        MAX ( 'Table 2'[PrimaryKey2] ), //If you would like to count, please replace MAX function with COUNT function
        FILTER (
            'Table 2',
            'Table 2'[ForeignKeyTable1] = MAX ( 'Table 1'[PrimaryKey] )
        )
    ) //Get matched PrimaryKey2
RETURN
    IF ( ISBLANK ( res ), "", res )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks like this. Is this what you expected?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:14:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-to-Many-Relation-show-unrelated-rows/m-p/2563438#M72991</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-07T09:14:06Z</dc:date>
    </item>
  </channel>
</rss>

