<?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 with multiple conditions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925858#M647895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to utilize a count that has multiple conditions attached to it. The conditions are composed like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The Expiration date &amp;lt;&amp;gt; 0 or null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Today's date must be greater than or equal to the Expiration date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both of these are fulfilled, then it should count the field named RTC_TITLE.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is what I have so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;CERTIFICATION_EXPIRATION_DATE= {"&amp;lt;&amp;gt;0"}, vToday &amp;gt;= "CERTIFICATION_EXPIRATION_DATE"&amp;gt;} RTC_TITLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting an error from this though. What am I doing incorrectly that would throw an error? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 19:25:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-17T19:25:29Z</dc:date>
    <item>
      <title>Count with multiple conditions?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925858#M647895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to utilize a count that has multiple conditions attached to it. The conditions are composed like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The Expiration date &amp;lt;&amp;gt; 0 or null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Today's date must be greater than or equal to the Expiration date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both of these are fulfilled, then it should count the field named RTC_TITLE.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is what I have so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;CERTIFICATION_EXPIRATION_DATE= {"&amp;lt;&amp;gt;0"}, vToday &amp;gt;= "CERTIFICATION_EXPIRATION_DATE"&amp;gt;} RTC_TITLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting an error from this though. What am I doing incorrectly that would throw an error? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925858#M647895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T19:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count with multiple conditions?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925859#M647896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;CERTIFICATION_EXPIRATION_DATE -= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;{''}&lt;/SPAN&gt;, CERTIFICATION_EXPIRATION_DATE -= {0} , CERTIFICATION_EXPIRATION_DATE = {"&amp;lt;=$(=(today()))"}&amp;gt;} RTC_TITLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filtering Null value my be tricky sometimes and the above syntax can actually be simplified further by including all&amp;nbsp; (*) and then excluding the ones you don't need:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;CERTIFICATION_EXPIRATION_DATE = {*} - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;{'',0,"&amp;lt;=$(=(today()))"}&lt;/SPAN&gt;&amp;gt;} RTC_TITLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nakul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925859#M647896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T21:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count with multiple conditions?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925860#M647897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nakul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both of these and they work perfectly. Thank you so much for your quick response and assistance on this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925860#M647897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T21:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count with multiple conditions?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925861#M647898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did have another question. I'm trying to add in a mathematical expression as another condition and I'm sure it's just my parentheses, but would this be correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to do it if the number is between 1 and 30 it's going to count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((CERTIFICATION_EXPIRATION_DATE - vToday) = {"&amp;lt;=$(=(30()))"}), ((CERTIFICATION_EXPIRATION_DATE - vToday) = {"&amp;gt;=$(=(1()))"})&amp;gt;} RTC_TITLE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 22:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-multiple-conditions/m-p/925861#M647898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T22:46:43Z</dc:date>
    </item>
  </channel>
</rss>

