<?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: How to find distinct count of an id in first table which is not present in the second table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3996898#M155385</link>
    <description>&lt;P&gt;The type of relationship between the table matters. What is the cardinality and direction of filter propagation? &amp;nbsp;A screen should of the model view is normally easiest&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 21:18:33 GMT</pubDate>
    <dc:creator>MattAllington</dc:creator>
    <dc:date>2024-06-17T21:18:33Z</dc:date>
    <item>
      <title>How to find distinct count of an id in first table which is not present in the second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3995291#M155181</link>
      <description>&lt;P&gt;consider 2 tables &lt;STRONG&gt;orders&lt;/STRONG&gt; and&lt;STRONG&gt; sales&lt;/STRONG&gt; having conection with each other and below are the table details&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;consider table 1 : &lt;STRONG&gt;orders&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;below are fields of orders table&lt;/P&gt;&lt;P&gt;which contains&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;order date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;consider table 2 : &lt;STRONG&gt;sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;below are fields of sales table:&lt;/P&gt;&lt;P&gt;idsales&lt;/P&gt;&lt;P&gt;quantity&lt;/P&gt;&lt;P&gt;ship date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now find the distinct count of "id" in the &lt;STRONG&gt;orders&lt;/STRONG&gt; table that is not present in the &lt;STRONG&gt;sales&lt;/STRONG&gt; table using dax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note:&lt;/P&gt;&lt;P&gt;is the below formula correct&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;distinct count &lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; table =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(orders[id]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(orders[id]&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(sales[id]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="217" data-lia-user-login="MattAllington" class="lia-mention lia-mention-user"&gt;MattAllington&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 05:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3995291#M155181</guid>
      <dc:creator>Akshaymanjunath</dc:creator>
      <dc:date>2024-06-17T05:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to find distinct count of an id in first table which is not present in the second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3995458#M155189</link>
      <description>&lt;P&gt;I would try something like the below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;distinct count not in table = COUNTROWS(EXCEPT(VALUES(orders[id]), VALUES(sales[id])))
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:39:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3995458#M155189</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2024-06-17T06:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find distinct count of an id in first table which is not present in the second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3996898#M155385</link>
      <description>&lt;P&gt;The type of relationship between the table matters. What is the cardinality and direction of filter propagation? &amp;nbsp;A screen should of the model view is normally easiest&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 21:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3996898#M155385</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-06-17T21:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to find distinct count of an id in first table which is not present in the second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3998466#M155613</link>
      <description>&lt;P&gt;That's fine, but I think it might be better to change VALUES to ALL, so as to avoid the effects of some extraneous filtering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;distinct count not in table = COUNTROWS(EXCEPT(ALL(orders[id]), ALL(sales[id])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:37:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-distinct-count-of-an-id-in-first-table-which-is-not/m-p/3998466#M155613</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-18T14:37:53Z</dc:date>
    </item>
  </channel>
</rss>

