<?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: Please help to build DAX to count a category with an exception for the certain period. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2907744#M94917</link>
    <description>&lt;P&gt;Try this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUMX(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES('CRM Data (2)'[PD Completed]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COUNTROWS('CRM Data (2)')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 20:47:19 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-11-15T20:47:19Z</dc:date>
    <item>
      <title>Please help to build DAX to count a category with an exception for the certain period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2907463#M94907</link>
      <description>&lt;P&gt;I have different Order Types per Period:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;1. Entry&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. Revision&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;3. CleanUp&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;4. Quote Entry&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;5. Quote Revision&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is to count how many Entry and Revision per period. I have rows 1 to 12 for the period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was only able to count all but I'm struggling on how to apply EXCEPT type 3 to 5. Please help me build the complete DAX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&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;'CRM Data (2)'[PD Completed]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CRM Data (2)'&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;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Nov 2022 18:31:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2907463#M94907</guid>
      <dc:creator>RJMonteza</dc:creator>
      <dc:date>2022-11-15T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to build DAX to count a category with an exception for the certain period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2907744#M94917</link>
      <description>&lt;P&gt;Try this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUMX(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES('CRM Data (2)'[PD Completed]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COUNTROWS('CRM Data (2)')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 20:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2907744#M94917</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-15T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to build DAX to count a category with an exception for the certain period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2909264#M95020</link>
      <description>&lt;P&gt;Thank you! That's what I'm looking for. I thought I need to put an "Except" before this&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}, that's where my previous formula isn't working. So it can be as simple as that. Awesome!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 11:18:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2909264#M95020</guid>
      <dc:creator>RJMonteza</dc:creator>
      <dc:date>2022-11-16T11:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to build DAX to count a category with an exception for the certain period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2909457#M95038</link>
      <description>&lt;P&gt;the except is actually a NOT logic, the code below shall also work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUMX(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES('CRM Data (2)'[PD Completed]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COUNTROWS('CRM Data (2)')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; NOT 'CRM Data (2)'[Order Types] IN {"&lt;SPAN&gt;CleanUp&lt;/SPAN&gt;", "&lt;SPAN&gt;Quote Entry&lt;/SPAN&gt;", "&lt;SPAN&gt;Quote Revision&lt;/SPAN&gt;"}&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In cases when the list you want to exclude is the longer half, you can try this way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 12:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-build-DAX-to-count-a-category-with-an-exception/m-p/2909457#M95038</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-16T12:25:03Z</dc:date>
    </item>
  </channel>
</rss>

