<?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: Distinct Count Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617723#M139864</link>
    <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486430" data-lia-user-login="Jsummers" class="lia-mention lia-mention-user"&gt;Jsummers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;Audits with NCs = CALCULATE(DISTINCTCOUNT('SQL Ad Hoc'[AssessmentID]),'SQL Ad Hoc'[NCs?]=1))&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 11:27:59 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2024-01-05T11:27:59Z</dc:date>
    <item>
      <title>Distinct Count Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617579#M139861</link>
      <description>&lt;P&gt;Hi, hoping someone can help, I think it is probably pretty simple, but with my lack of knowledge, I am just banging my head against a brick wall!&lt;/P&gt;&lt;P&gt;I have a table, one column is an assessment ID, there are multiple rows with the same assessment ID.&amp;nbsp; I have a second column called NCs, there is either a 1 or 0 in that column.&amp;nbsp; I want to create a measure to count the number of rows with 1 in for distinct assessment IDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have something like this, but it's not working!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Audits with NCs =&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;(&lt;/SPAN&gt;&lt;SPAN&gt;'SQL Ad Hoc'&lt;/SPAN&gt;&lt;SPAN&gt;[AssessmentID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'SQL Ad Hoc'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'SQL Ad Hoc'&lt;/SPAN&gt;&lt;SPAN&gt;[NCs?]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'SQL Ad Hoc'&lt;/SPAN&gt;&lt;SPAN&gt;[NCs?]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Many thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Julia&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jan 2024 10:27:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617579#M139861</guid>
      <dc:creator>Jsummers</dc:creator>
      <dc:date>2024-01-05T10:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617723#M139864</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486430" data-lia-user-login="Jsummers" class="lia-mention lia-mention-user"&gt;Jsummers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;Audits with NCs = CALCULATE(DISTINCTCOUNT('SQL Ad Hoc'[AssessmentID]),'SQL Ad Hoc'[NCs?]=1))&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 11:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617723#M139864</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-05T11:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617727#M139865</link>
      <description>&lt;P&gt;Can you clarify the desired result please? I don't think this is clear "I want to create a measure to count the number of rows with 1 in for distinct assessment IDs."&lt;/P&gt;
&lt;P&gt;Do you want a distinct count of AssessmentID (with the table filtered for NC = 1)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;do you want a count of NC = 1 rows for each AssessmentID?&lt;/P&gt;
&lt;P&gt;or something else?&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;If you provide sample data and show the desired result you will get a better answer.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 11:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617727#M139865</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2024-01-05T11:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617734#M139866</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the desired outcome&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 11:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617734#M139866</guid>
      <dc:creator>Jsummers</dc:creator>
      <dc:date>2024-01-05T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617742#M139867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;this appears to have worked, I will double check the results &amp;amp; then accept as the solution, many thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 11:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Help/m-p/3617742#M139867</guid>
      <dc:creator>Jsummers</dc:creator>
      <dc:date>2024-01-05T11:40:20Z</dc:date>
    </item>
  </channel>
</rss>

