<?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 Count records and partition by a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3221224#M117731</link>
    <description>&lt;P&gt;This solution worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR SelectedDates = ALLSELECTED (table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS (table),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REMOVEFILTERS(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VALUES(ftable[Date]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SelectedDates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 03:10:02 GMT</pubDate>
    <dc:creator>databot_kd</dc:creator>
    <dc:date>2023-05-05T03:10:02Z</dc:date>
    <item>
      <title>How to Count records and partition by a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3210709#M117084</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a count partitioned by date and area as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently using a formula to get the count selected:&lt;BR /&gt;CountSelected = CALCULATE(Count(table[rows]), ALLSELECTED(table))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using ALLEXCEPT function which somewhat works but that ignores my slicer selection unless im using it wrong.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3210709#M117084</guid>
      <dc:creator>databot_kd</dc:creator>
      <dc:date>2023-04-28T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records and partition by a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3210880#M117098</link>
      <description>&lt;P&gt;HELL OPLEASE TRY CALCULATE(Countrows(table),ALLSELECTED(table))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 09:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3210880#M117098</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-04-28T09:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records and partition by a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3217047#M117471</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="548112" data-lia-user-login="databot_kd" class="lia-mention lia-mention-user"&gt;databot_kd&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please try this measure.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountSelected = 
CALCULATE(
    COUNTROWS('Table'),
    ALLEXCEPT('Table','Table'[Date],'Table'[Area]),
    VALUES('Table'[Room])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 05:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3217047#M117471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T05:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records and partition by a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3221224#M117731</link>
      <description>&lt;P&gt;This solution worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR SelectedDates = ALLSELECTED (table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS (table),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REMOVEFILTERS(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VALUES(ftable[Date]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SelectedDates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 03:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-records-and-partition-by-a-column/m-p/3221224#M117731</guid>
      <dc:creator>databot_kd</dc:creator>
      <dc:date>2023-05-05T03:10:02Z</dc:date>
    </item>
  </channel>
</rss>

