<?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 between 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630923#M1093485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({&amp;lt;DATE_READ={"&amp;gt;=$(=datefield1) &amp;lt;= $(=datefield2)"}&amp;gt;} distinct SERIAL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({&amp;lt;DATE_READ={"&amp;gt;=$(='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;01/01/2010'&lt;/SPAN&gt;) &amp;lt;= $(='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;31/12/2012&lt;/SPAN&gt;)"}&amp;gt;} distinct SERIAL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hop ethis helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 08:51:37 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2014-05-13T08:51:37Z</dc:date>
    <item>
      <title>Count between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630922#M1093484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count the number of CATEGORY=EM calls we have between 2 dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to use set analysis to derive the dates, which I've put in separate columns in my chart for debug purposes.&amp;nbsp; These are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the latest date:&lt;/P&gt;&lt;P&gt;only({&amp;lt;METER_NO={'1','METER1','Black','BLACK','A4BLACK'}, READINGS_READING_DETAILS_Z_ASSOC_ROW={'1'}&amp;gt;}DATE_READ)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the 4th old reading:&lt;/P&gt;&lt;P&gt;only({&amp;lt;METER_NO={'1','METER1','Black','BLACK','A4BLACK'}, READINGS_READING_DETAILS_Z_ASSOC_ROW={'4'}&amp;gt;}DATE_READ)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where it becomes a little too complex for me.&amp;nbsp; I know this is a very dumbed down example of how to count between 2 dates, but I somehow need to stitch the 2 pieces of set analysis in.&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;"&gt;count({&amp;lt;DATE_READ={"$(= '&amp;gt;=' &amp;amp; '01/01/2010' &amp;amp; '&amp;lt;=' &amp;amp; '31/12/2012')"}&amp;gt;} distinct SERIAL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Any help would be gratefully received.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630922#M1093484</guid>
      <dc:creator />
      <dc:date>2014-05-13T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630923#M1093485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({&amp;lt;DATE_READ={"&amp;gt;=$(=datefield1) &amp;lt;= $(=datefield2)"}&amp;gt;} distinct SERIAL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({&amp;lt;DATE_READ={"&amp;gt;=$(='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;01/01/2010'&lt;/SPAN&gt;) &amp;lt;= $(='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;31/12/2012&lt;/SPAN&gt;)"}&amp;gt;} distinct SERIAL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hop ethis helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630923#M1093485</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-05-13T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630924#M1093486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean create variables for the 2 date selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630924#M1093486</guid>
      <dc:creator />
      <dc:date>2014-05-13T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630925#M1093487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;you can use getfieldselections() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-2-dates/m-p/630925#M1093487</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-05-13T08:58:39Z</dc:date>
    </item>
  </channel>
</rss>

