<?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: Find the count based on date condition. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38495#M6488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you have a timestamp which cannot be directly equated to a date field...( you can use search string, but why not fix this in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD lastUpdatedDate as TimeStamp,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(lastUpdatedDate)) as lastUpdatedDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;lastUpdatedDate = {"$(=Date(Today()-1))"}&amp;gt;} id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can use a search string like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;lastUpdatedDate&amp;nbsp; = {"=Floor(lastUpdatedDate) = Today()"}&amp;gt;}id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, again, I would suggest to use the first method over the second one because there is some more evaluation required for the second one, where as first one is very straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2018 16:35:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-16T16:35:53Z</dc:date>
    <item>
      <title>Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38494#M6487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;lastUpdatedDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Count(id)&lt;/P&gt;&lt;P&gt;14/02/2018&amp;nbsp; 02:12:00 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;14/02/2018&amp;nbsp; 02:37:00 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&lt;/P&gt;&lt;P&gt;13/02/2018&amp;nbsp; 12:45:00 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44&lt;/P&gt;&lt;P&gt;13/02/2018&amp;nbsp; 03:54:00 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the count only for 14th of Feb but i get the count of 14th and 13th as well. I used the below script to do this. But not getting the count of 83 only for 14th.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;lastUpdatedDate = {"=$(=Date(Today()-1))"}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve the count only for 14th Feb??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38494#M6487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-16T13:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38495#M6488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you have a timestamp which cannot be directly equated to a date field...( you can use search string, but why not fix this in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD lastUpdatedDate as TimeStamp,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(lastUpdatedDate)) as lastUpdatedDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;lastUpdatedDate = {"$(=Date(Today()-1))"}&amp;gt;} id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can use a search string like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;lastUpdatedDate&amp;nbsp; = {"=Floor(lastUpdatedDate) = Today()"}&amp;gt;}id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, again, I would suggest to use the first method over the second one because there is some more evaluation required for the second one, where as first one is very straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38495#M6488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-16T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38496#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38496#M6489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38497#M6490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also i need to add an and condition for the syntax &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Count({&amp;lt;lastUpdatedDate = {"$(=Date(Today()-1))"}&amp;gt;} id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;onlinePrice &amp;gt;=0 then id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried in many ways but my syntax is not getting correct. Could you please help me&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38497#M6490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-20T09:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38498#M6491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;lastUpdatedDate = {"$(=Date(Today()-1))"}&lt;SPAN style="color: #ff0000;"&gt;, onlinePrice = {"&amp;gt;=0"}&lt;/SPAN&gt;&amp;gt;} id)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38498#M6491</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-20T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find the count based on date condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38499#M6492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 10:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-count-based-on-date-condition/m-p/38499#M6492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-20T10:22:23Z</dc:date>
    </item>
  </channel>
</rss>

