<?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 Countrows with multiple conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1504262#M29133</link>
    <description>&lt;P&gt;I have a measure that counts the number of items based on the Origin and Acceptance Datetime:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalACCEPtoRFIDINACCEPItems = CALCULATE(COUNTROWS('Scan Event DataQ'),FILTER('Scan Event DataQ','Scan Event DataQ'[OriginMailCentre]="Auckland"&amp;amp;&amp;amp;'Scan Event DataQ'[ACCEPTANCE DATETIME]&amp;lt;&amp;gt;BLANK()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need to modify it to include items from additional Origins and their Acceptance Datetimes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Christchurch then [CHM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Manawatu then [MTM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Auckland then [AKM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense. Appreciate any help, thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 08:59:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-19T08:59:34Z</dc:date>
    <item>
      <title>Countrows with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1504262#M29133</link>
      <description>&lt;P&gt;I have a measure that counts the number of items based on the Origin and Acceptance Datetime:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalACCEPtoRFIDINACCEPItems = CALCULATE(COUNTROWS('Scan Event DataQ'),FILTER('Scan Event DataQ','Scan Event DataQ'[OriginMailCentre]="Auckland"&amp;amp;&amp;amp;'Scan Event DataQ'[ACCEPTANCE DATETIME]&amp;lt;&amp;gt;BLANK()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need to modify it to include items from additional Origins and their Acceptance Datetimes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Christchurch then [CHM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Manawatu then [MTM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if [OriginMailCentre]=Auckland then [AKM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense. Appreciate any help, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 08:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1504262#M29133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-19T08:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1504367#M29139</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; , add &lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;amp; Switch ( True () ,&lt;BR /&gt;[OriginMailCentre]="Christchurch" &amp;amp;&amp;amp; [CHM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1 ,&lt;BR /&gt;[OriginMailCentre]="Manawatu" &amp;amp;&amp;amp; [MTM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1 ,&lt;BR /&gt;[OriginMailCentre]="Auckland" &amp;amp;&amp;amp; [AKM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1 ,0&lt;BR /&gt;) =1&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 09:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1504367#M29139</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-19T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505309#M29165</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, you might want to try amending your measure this way,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalACCEPtoRFIDINACCEPItems =
CALCULATE (
    COUNTROWS ( 'Scan Event DataQ' ),
    FILTER (
        'Scan Event DataQ',
        'Scan Event DataQ'[OriginMailCentre] = "Auckland"
            &amp;amp;&amp;amp; 'Scan Event DataQ'[ACCEPTANCE DATETIME] &amp;lt;&amp;gt; BLANK ()
            || 'Scan Event DataQ'[OriginMailCentre]
            IN { "Christchurch", "Manawatu", "Auckland" }
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Nov 2020 15:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505309#M29165</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-11-19T15:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505667#M29186</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&amp;nbsp;I get syntax error (the syntax for ',' is incorrect) when adding your measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalACCEPtoRFIDINACCEPItems = CALCULATE(COUNTROWS('Scan Event DataQ'),FILTER('Scan Event DataQ',[ACCEPTANCE DATETIME]&amp;lt;&amp;gt;BLANK()&amp;amp;&amp;amp;Switch(True(),
[OriginMailCentre]="Christchurch" &amp;amp;&amp;amp; [CHM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1,
[OriginMailCentre]="Manawatu" &amp;amp;&amp;amp; [MTM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1,
[OriginMailCentre]="Auckland" &amp;amp;&amp;amp; [AKM RFID IN ACCEP DATETIME]&amp;lt;&amp;gt;BLANK,1,0
 )=1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505667#M29186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-19T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505669#M29187</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;thank you for your suggestion however your measure does not include the Acceptance Datetime columns i.e. [CHM RFID IN ACCEP DATETIME], [MTM RFID IN ACCEP DATETIME], [AKM RFID IN ACCEP DATETIME]&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-with-multiple-conditions/m-p/1505669#M29187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-19T18:34:37Z</dc:date>
    </item>
  </channel>
</rss>

