<?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 count the number of applications in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490308#M133602</link>
    <description>&lt;P&gt;i have the following data&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;order&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;stauts&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;submited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;accepted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;submited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;resumited&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;accepted&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to count the number of orders that got accepted without being reaplied so in this case it should give &lt;STRONG&gt;one&lt;/STRONG&gt; order&amp;nbsp;&lt;BR /&gt;i wrote the following dax but it is NOT helping&lt;/P&gt;&lt;PRE&gt;AcceptedOrdersWithoutResubmit = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER(
        'Table',
        'Table'[stauts] = "accepted" &amp;amp;&amp;amp;
        NOT (
            CALCULATE(
                COUNTROWS('Table'),
                FILTER(
                    'Table',
                    'Table'[order] = EARLIER('Table'[order]) &amp;amp;&amp;amp;
                    'Table'[stauts] = "resumited"
                )
            ) &amp;gt; 0
        )
    )
)&lt;/PRE&gt;&lt;P&gt;please help and thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 03:37:36 GMT</pubDate>
    <dc:creator>mina97</dc:creator>
    <dc:date>2023-10-23T03:37:36Z</dc:date>
    <item>
      <title>count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490308#M133602</link>
      <description>&lt;P&gt;i have the following data&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;order&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;stauts&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;submited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;accepted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;submited&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;resumited&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;217&lt;/TD&gt;&lt;TD&gt;accepted&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to count the number of orders that got accepted without being reaplied so in this case it should give &lt;STRONG&gt;one&lt;/STRONG&gt; order&amp;nbsp;&lt;BR /&gt;i wrote the following dax but it is NOT helping&lt;/P&gt;&lt;PRE&gt;AcceptedOrdersWithoutResubmit = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER(
        'Table',
        'Table'[stauts] = "accepted" &amp;amp;&amp;amp;
        NOT (
            CALCULATE(
                COUNTROWS('Table'),
                FILTER(
                    'Table',
                    'Table'[order] = EARLIER('Table'[order]) &amp;amp;&amp;amp;
                    'Table'[stauts] = "resumited"
                )
            ) &amp;gt; 0
        )
    )
)&lt;/PRE&gt;&lt;P&gt;please help and thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 03:37:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490308#M133602</guid>
      <dc:creator>mina97</dc:creator>
      <dc:date>2023-10-23T03:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490318#M133605</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612491" data-lia-user-login="mina97" class="lia-mention lia-mention-user"&gt;mina97&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below just adjust your table aand column name&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;final =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'practice'&lt;/SPAN&gt;&lt;SPAN&gt;[order]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&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;'practice'&lt;/SPAN&gt;&lt;SPAN&gt;[order]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;practice&lt;/SPAN&gt;&lt;SPAN&gt;[status]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"resumited"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to&lt;STRONG&gt;&amp;nbsp;give kudos&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Oct 2023 03:46:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490318#M133605</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-23T03:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490327#M133608</link>
      <description>&lt;P&gt;wrong it gived zero &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 03:55:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3490327#M133608</guid>
      <dc:creator>mina97</dc:creator>
      <dc:date>2023-10-23T03:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492672#M133755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612491" data-lia-user-login="mina97" class="lia-mention lia-mention-user"&gt;mina97&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The following DAX might work for you:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AcceptedOrdersWithoutResubmit =
COUNTROWS(
    FILTER(
        'Table',
        'Table'[status] = "accepted" &amp;amp;&amp;amp;
        NOT(
            CALCULATE(
                COUNTROWS('Table'),
                FILTER('Table', 'Table'[status] = "resumited"),
                ALLEXCEPT('Table', 'Table'[order])
            ) &amp;gt; 0
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;The final output is shown in the following figure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dino Tao&lt;/P&gt;&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&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.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 02:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492672#M133755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-24T02:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492770#M133761</link>
      <description>&lt;P&gt;hey can you make it count the unique numbers order&amp;nbsp;&lt;/P&gt;&lt;P&gt;because i have other status and i do not want it to count them fore xample&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;Sumbit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;Review&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;216&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;the dax counted this as 4 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 03:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492770#M133761</guid>
      <dc:creator>mina97</dc:creator>
      <dc:date>2023-10-24T03:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492772#M133762</link>
      <description>&lt;P&gt;it should be 1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 03:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492772#M133762</guid>
      <dc:creator>mina97</dc:creator>
      <dc:date>2023-10-24T03:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of applications</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492880#M133765</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612491" data-lia-user-login="mina97" class="lia-mention lia-mention-user"&gt;mina97&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The following DAX might work for you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UniqueOrdersCount = COUNTROWS(VALUES('Table(2)'[order]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final output is shown in the following figure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dino Tao&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>Tue, 24 Oct 2023 05:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-the-number-of-applications/m-p/3492880#M133765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-24T05:17:25Z</dc:date>
    </item>
  </channel>
</rss>

