<?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 IF Statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3164667#M113765</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I don't understand your expected result. The next month hasn't come, how do we know which products will have orders in the next month? And for the example "&lt;SPAN&gt;If no distriubtion for this product, then count this order in April", do you mean one product has not been purchased by a customer in the last 6 months? If it will be purchased by a customer in the next month, how do you want to display the expected result? In the current matrix visual or in another visual? If in another visual, how should it be like?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 02:24:28 GMT</pubDate>
    <dc:creator>v-jingzhang</dc:creator>
    <dc:date>2023-03-31T02:24:28Z</dc:date>
    <item>
      <title>Count IF Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3161701#M113573</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on building a sales distribution gap report.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've built a matrix where I can see where customers have not purchased specific products and counted the orders on products they have purchased in the last 6 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to track new orders which will be coming in next month - where there is currently no distriubtion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example:&amp;nbsp; If no distriubtion for this product, then count this order in April.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, it would be great to also track the new orders through conditional formatting (in a different color).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be so appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Christina&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3161701#M113573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-29T19:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count IF Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3164667#M113765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I don't understand your expected result. The next month hasn't come, how do we know which products will have orders in the next month? And for the example "&lt;SPAN&gt;If no distriubtion for this product, then count this order in April", do you mean one product has not been purchased by a customer in the last 6 months? If it will be purchased by a customer in the next month, how do you want to display the expected result? In the current matrix visual or in another visual? If in another visual, how should it be like?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 02:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3164667#M113765</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2023-03-31T02:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count IF Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3165922#M113856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254615" data-lia-user-login="v-jingzhang" class="lia-mention lia-mention-user"&gt;v-jingzhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response!&amp;nbsp; Makes sense - Let's use the example of this month.&lt;/P&gt;&lt;P&gt;In the table below I have my products, Customers, "Yes or No" of customers who had distribution between Oct and Feb, count of sales orders the customer had between Oct and Feb for a specific product, and count of sales orders the customer had this month for a specific product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, we can see some customers that had ordered in the last 5 months, didn't order this month for specific products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales Order Count Oct22-Feb23 Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Order Count Oct22-Feb23 = 
 CALCULATE(COUNT('POSTED DOCUMENTS'[Document No]),DATESBETWEEN('POSTED DOCUMENTS'[Posting Date], DATE(2022,1,10),DATE(2023,28,2)))+0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;March Sales Order Count measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;March Sales Order Count = 
 CALCULATE(COUNT('POSTED DOCUMENTS'[Document No]),DATESBETWEEN('POSTED DOCUMENTS'[Posting Date], DATE(2023,1,3),DATE(2023,31,3)))+0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll see some customers didn't order this month, but they did have an order over the course of the past 5 months.&amp;nbsp; And we also see in this data that there were not any distribution gaps filled.&amp;nbsp; Every sale in March also had a sale in the last 5 months.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To link back to the matrix - I'm looking to create a measure where if a customer were to have an order in March, but never ordered between Oct thru Feb - that the Matrix would highlight the new sales order since we are filling a distribution gap.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I also want to be able to track the March sales orders that come in where we didn't have an order between the Oct - Feb time frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christina&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:09:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-IF-Statement/m-p/3165922#M113856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-31T13:09:50Z</dc:date>
    </item>
  </channel>
</rss>

