<?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 needed in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3896900#M151874</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524210" data-lia-user-login="TonyAshton" class="lia-mention lia-mention-user"&gt;TonyAshton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following DAX formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count Sites =
CALCULATE (
    DISTINCTCOUNT ( 'Programs'[Site Name] ),
    'Programs'[Program Status] IN { "ACTIVE", "COMPLETED", "REGISTERATIONS CLOSED" }
)
&lt;/LI-CODE&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;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution &lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 01:41:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-07T01:41:46Z</dc:date>
    <item>
      <title>Distinct Count help needed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3891791#M151746</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am looking for some help on how to create a dax measure to return the distinct count of names from a column based on the multiple results from another column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column A: Site Name&lt;/P&gt;&lt;P&gt;Column B: Program Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column B has a number of different Program Status. I am only wanting the distinct count of Site Names if it has any of the following Program Stauts; "COMPLETED", "ACTIVE", "REGISTERATIONS CLOSED".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if anybody can help it would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 04:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3891791#M151746</guid>
      <dc:creator>TonyAshton</dc:creator>
      <dc:date>2024-05-05T04:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count help needed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3891888#M151751</link>
      <description>&lt;P&gt;I have now managed to get the distinct count of sites with an ACTIVE program status using the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Active Sites = CALCULATE(DISTINCTCOUNT('Programs' [Site Name]), 'Programs' [Program Status] = "ACTIVE")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;But struggling to work out the dax to included all of the three program status together&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 05:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3891888#M151751</guid>
      <dc:creator>TonyAshton</dc:creator>
      <dc:date>2024-05-05T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count help needed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3896900#M151874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524210" data-lia-user-login="TonyAshton" class="lia-mention lia-mention-user"&gt;TonyAshton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following DAX formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count Sites =
CALCULATE (
    DISTINCTCOUNT ( 'Programs'[Site Name] ),
    'Programs'[Program Status] IN { "ACTIVE", "COMPLETED", "REGISTERATIONS CLOSED" }
)
&lt;/LI-CODE&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;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution &lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 01:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-help-needed/m-p/3896900#M151874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-07T01:41:46Z</dc:date>
    </item>
  </channel>
</rss>

