<?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: COUNT in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNT/m-p/3146483#M112569</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="532343" data-lia-user-login="askoflor" class="lia-mention lia-mention-user"&gt;askoflor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample to have a test.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 1 = SUM('Table'[Value1])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = SUM('Table'[Value2])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 1 - Measure 2 = [Measure 1] - [Measure 2]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count Positive = COUNTAX(FILTER(VALUES('Table'[Category]),[Measure 1 - Measure 2] &amp;gt;0),[Category])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 07:10:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-22T07:10:41Z</dc:date>
    <item>
      <title>COUNT</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNT/m-p/3142339#M112245</link>
      <description>&lt;P&gt;Hello, I want to count the number of positive lines of the measure [measure1] -[measure2]&lt;/P&gt;&lt;P&gt;thank&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:29:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNT/m-p/3142339#M112245</guid>
      <dc:creator>askoflor</dc:creator>
      <dc:date>2023-03-20T12:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNT/m-p/3146483#M112569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="532343" data-lia-user-login="askoflor" class="lia-mention lia-mention-user"&gt;askoflor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample to have a test.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 1 = SUM('Table'[Value1])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = SUM('Table'[Value2])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 1 - Measure 2 = [Measure 1] - [Measure 2]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count Positive = COUNTAX(FILTER(VALUES('Table'[Category]),[Measure 1 - Measure 2] &amp;gt;0),[Category])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 07:10:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNT/m-p/3146483#M112569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-22T07:10:41Z</dc:date>
    </item>
  </channel>
</rss>

