<?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: DAX: Count based on Multiple criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3501068#M134243</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636377" data-lia-user-login="LABrowne" class="lia-mention lia-mention-user"&gt;LABrowne&lt;/a&gt;&amp;nbsp;please try below, you can tweak it to fit your needs&lt;/P&gt;&lt;P&gt;Active Order Count (Order Saturation &amp;gt; 100%) = COUNTX(VALUES(Order[OrderNumber]),IF([OrderSat] &amp;gt; 1 &amp;amp;&amp;amp; DATEDIFF ( [delivery date], [expiry date], DAY )&amp;gt;=0,1))&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 10:07:46 GMT</pubDate>
    <dc:creator>Walter_W2022</dc:creator>
    <dc:date>2023-10-27T10:07:46Z</dc:date>
    <item>
      <title>DAX: Count based on Multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3501028#M134240</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently working on a formula where I need to count the number of orders based on following criteria: (1) the order saturation is over 100% and (2) the order is between it's delivery date (seperate column) and expiry date (again another seperate column). So far I have the following formula meeting criteria (1) but need to include (2) into the formula, please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Active Order&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt; (Order Saturation &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;%) =&lt;/SPAN&gt; &lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Order&lt;/SPAN&gt;&lt;SPAN&gt;[OrderNumber]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[OrderSat]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help amending the formula to add an additional criteria to also only count orders between their delivery and expiry date would e much appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Oct 2023 09:39:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3501028#M134240</guid>
      <dc:creator>LABrowne</dc:creator>
      <dc:date>2023-10-27T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: Count based on Multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3501068#M134243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636377" data-lia-user-login="LABrowne" class="lia-mention lia-mention-user"&gt;LABrowne&lt;/a&gt;&amp;nbsp;please try below, you can tweak it to fit your needs&lt;/P&gt;&lt;P&gt;Active Order Count (Order Saturation &amp;gt; 100%) = COUNTX(VALUES(Order[OrderNumber]),IF([OrderSat] &amp;gt; 1 &amp;amp;&amp;amp; DATEDIFF ( [delivery date], [expiry date], DAY )&amp;gt;=0,1))&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 10:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3501068#M134243</guid>
      <dc:creator>Walter_W2022</dc:creator>
      <dc:date>2023-10-27T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: Count based on Multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3509680#M134666</link>
      <description>&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your assistance but it is only letting me select measures where as delivery date and expiry date are not measures, I'm not sure why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 13:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Count-based-on-Multiple-criteria/m-p/3509680#M134666</guid>
      <dc:creator>LABrowne</dc:creator>
      <dc:date>2023-11-01T13:32:18Z</dc:date>
    </item>
  </channel>
</rss>

