<?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: Date selection and Count expression not evaluating properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788264#M278754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proper syntax is&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Doc_Date = {"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"}, ID = {"&amp;gt;=$(vMaxID)"}&amp;gt;}&amp;nbsp; EQUNR_S)&lt;/P&gt;&lt;P&gt;Searches in set analysis go in double quotes. They might work with single quotes but it's a bug (single quotes should only be used for string literals) and taking advantage of it is not advisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, then the likely reason is what the vStartDate, vEndDate and vMaxID variables are actually expanding to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the numbers you posted a sample of the data, or how the table with this expression looks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 12:43:56 GMT</pubDate>
    <dc:creator>kuba_michalik</dc:creator>
    <dc:date>2014-11-07T12:43:56Z</dc:date>
    <item>
      <title>Date selection and Count expression not evaluating properly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788261#M278751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in chart: Count({&amp;lt;Doc_Date = {'&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)'}&amp;gt;} {&amp;lt; ID = {"&amp;gt;=$(vMaxID)"}&amp;gt;} EQUNR_S)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selected Start Date 01.04.2014 and End Date 31.04.2014 but it's not evaluating properly also records are not filtered properly.&lt;/P&gt;&lt;P&gt;Count is coming wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="490"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Act_Typ&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;EQUNR_S&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Doc_Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17603&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3827&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01.02.2011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;T&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17603&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;29198&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;15.04.2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17603&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;29194&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;15.04.2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17603&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;29196&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;15.04.2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 11:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788261#M278751</guid>
      <dc:creator />
      <dc:date>2014-11-07T11:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection and Count expression not evaluating properly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788262#M278752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sysntax is not correct ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Count({&amp;lt;Doc_Date = {'&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)'}&amp;gt;}, ID = {'&amp;gt;=$(vMaxID)'}&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;}&lt;/SPAN&gt; EQUNR_S)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 11:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788262#M278752</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-07T11:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection and Count expression not evaluating properly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788263#M278753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think synstax is right. Expression not evaluating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 12:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788263#M278753</guid>
      <dc:creator />
      <dc:date>2014-11-07T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date selection and Count expression not evaluating properly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788264#M278754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proper syntax is&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Doc_Date = {"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"}, ID = {"&amp;gt;=$(vMaxID)"}&amp;gt;}&amp;nbsp; EQUNR_S)&lt;/P&gt;&lt;P&gt;Searches in set analysis go in double quotes. They might work with single quotes but it's a bug (single quotes should only be used for string literals) and taking advantage of it is not advisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, then the likely reason is what the vStartDate, vEndDate and vMaxID variables are actually expanding to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the numbers you posted a sample of the data, or how the table with this expression looks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 12:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-selection-and-Count-expression-not-evaluating-properly/m-p/788264#M278754</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-11-07T12:43:56Z</dc:date>
    </item>
  </channel>
</rss>

