<?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: Unique values in each table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4668395#M178824</link>
    <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;Please let us know if your issue is solved. If it is, consider marking the answers that helped&amp;nbsp;&lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt;, so others with similar queries can find them easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 12:27:36 GMT</pubDate>
    <dc:creator>v-hashadapu</dc:creator>
    <dc:date>2025-04-25T12:27:36Z</dc:date>
    <item>
      <title>Unique values in each table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660134#M178445</link>
      <description>&lt;P&gt;I am trying to find unique values in each tables. So for example get unique id's in table A and do the same for table B. Now I want to make sure when I count these ID's not to count them twice since&amp;nbsp; same ids can be in each table. I know what I need to use base table for this code but cant sedem to understand how to resolve this. Can anyone assist please&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DEFINE 

VAR A = VALUES('Table A'[ID])
VAR B = VALUES('Table B'[ID])
VAR C = UNION(A,B)
VAR D = DISTINCTCOUNT(C[ID])

EVALUATE 
D&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 20 Apr 2025 23:03:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660134#M178445</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-04-20T23:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unique values in each table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660145#M178446</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please check if this accomodate your need.&lt;/P&gt;
&lt;P&gt;i made a simple dataset.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;based on above dataset, the distinct count should be 11.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i assumed you want to do this in measure, so create a new measure with following DAX.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this will help.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 23:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660145#M178446</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-04-20T23:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unique values in each table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660149#M178448</link>
      <description>&lt;P&gt;This works but how does the outer DISTINCT know that we are talkinjg about ID column? Is it because it is only one column?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 23:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660149#M178448</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-04-20T23:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unique values in each table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660154#M178450</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i might be misunderstood but you can target the value you want to calculate the distinct value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;otherwise, please share your sample dataset and your expected outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 00:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4660154#M178450</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-04-21T00:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unique values in each table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4668395#M178824</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;Please let us know if your issue is solved. If it is, consider marking the answers that helped&amp;nbsp;&lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt;, so others with similar queries can find them easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:27:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-values-in-each-table/m-p/4668395#M178824</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-04-25T12:27:36Z</dc:date>
    </item>
  </channel>
</rss>

