<?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 How to Count in DAx in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4284816#M170064</link>
    <description>&lt;P&gt;I have a table with MonthNum and patients. I want to count patient per month using month number.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 00:10:51 GMT</pubDate>
    <dc:creator>Tadadada</dc:creator>
    <dc:date>2024-11-15T00:10:51Z</dc:date>
    <item>
      <title>How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4284816#M170064</link>
      <description>&lt;P&gt;I have a table with MonthNum and patients. I want to count patient per month using month number.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 00:10:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4284816#M170064</guid>
      <dc:creator>Tadadada</dc:creator>
      <dc:date>2024-11-15T00:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4284887#M170071</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="848553" data-lia-user-login="Tadadada" class="lia-mention lia-mention-user"&gt;Tadadada&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just plot a visual with monthnumber column and a measure like:&lt;/P&gt;
&lt;P&gt;count = DISTINCTCOUNT(tablename[patient])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 01:30:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4284887#M170071</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-15T01:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4285168#M170086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="848553" data-lia-user-login="Tadadada" class="lia-mention lia-mention-user"&gt;Tadadada&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To count patients per month based on the MONTHNUM column, use this DAX formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Patient Count = COUNTROWS(FILTER(TableName, TableName[MonthNum] = SELECTEDVALUE(TableName[MonthNum])))&lt;/LI-CODE&gt;&lt;P&gt;Replace TABLENAME with your actual table name.&lt;/P&gt;&lt;P&gt;This formula counts rows where the MONTHNUM matches the current month context in your visual, giving you a monthly patient count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;BR /&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;: &lt;A href="https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS" target="_blank"&gt;https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 04:43:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4285168#M170086</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-15T04:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4285306#M170092</link>
      <description>&lt;P&gt;Helo&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="848553" data-lia-user-login="Tadadada" class="lia-mention lia-mention-user"&gt;Tadadada&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a measure for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PatientsPerMonth =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNT('YourTable'[patients]),&lt;BR /&gt;ALLEXCEPT('YourTable', 'YourTable'[MonthNum])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mark this as solution if this helps or give a thumbs up.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 05:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4285306#M170092</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2024-11-15T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4286558#M170129</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Poojara,&lt;BR /&gt;This solution is just what I needed. Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 19:37:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4286558#M170129</guid>
      <dc:creator>Tadadada</dc:creator>
      <dc:date>2024-11-15T19:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count in DAx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4286560#M170130</link>
      <description>&lt;P&gt;&lt;SPAN&gt;divyed,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 19:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-in-DAx/m-p/4286560#M170130</guid>
      <dc:creator>Tadadada</dc:creator>
      <dc:date>2024-11-15T19:37:45Z</dc:date>
    </item>
  </channel>
</rss>

