<?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 Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667586#M242773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want sum for the date selected, without set it should work:&lt;/P&gt;&lt;P&gt;=SUM(amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: If you want that using set, may be your date format causing the issue. See attached qvw where I used :&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Rec_date={'=$(=Date(to_date))'}&amp;gt;}amount)&amp;nbsp;&amp;nbsp; to give it proper format and date#() in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 06:21:17 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-07-14T06:21:17Z</dc:date>
    <item>
      <title>Date Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667585#M242772</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;I have a date field in database (Rec_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Head&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Rec_date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bank ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30-Jun-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bank ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;31-Jan-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bank ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;31-Aug-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bank ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30-Jun-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have list box which allow to select Head and a calender in Sheet through which user inputs the date in a variable name to_date&lt;/P&gt;&lt;P&gt;I want to show a sum of amount in text box of only amount of date that user select i am using the following expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;suppose user select 30-Jun-2014 from calender then value of to_date become the same&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;Rec_date={&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;=$(to_date)"}&amp;gt;}amount) which shows data of date &amp;gt;= (Greater then equal) to to_date&lt;/P&gt;&lt;P&gt;this is&amp;nbsp; working fine shows sum(1200+7000+1500)=9700&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;Rec_date={&amp;lt;=$(to_date)"}&amp;gt;}amount) which shows data of date &amp;lt;= (Less then equal) to to_date&lt;/P&gt;&lt;P&gt;this is also working fine shows sum(2500+1500+7000)=11000&lt;/P&gt;&lt;P&gt;but problem arrive when I want to use the equal to condition&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;Rec_date={=$(to_date)"}&amp;gt;}amount) which should shows data of date = (Equal to) to to_date but it not show any record &lt;/P&gt;&lt;P&gt;I am wondering why? result should be 7000+1500=8500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 06:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667585#M242772</guid>
      <dc:creator />
      <dc:date>2014-07-14T06:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667586#M242773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want sum for the date selected, without set it should work:&lt;/P&gt;&lt;P&gt;=SUM(amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: If you want that using set, may be your date format causing the issue. See attached qvw where I used :&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Rec_date={'=$(=Date(to_date))'}&amp;gt;}amount)&amp;nbsp;&amp;nbsp; to give it proper format and date#() in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 06:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667586#M242773</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-14T06:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667587#M242774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check if the Rec_date is in correct format. Use below script to convert it into date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(Rec_date)) as Rec_date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 06:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667587#M242774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T06:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667588#M242775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;"&gt;SUM({$&amp;lt;Rec_date={$(to_date)}&amp;gt;}amount) &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;if it doesn't work try this other:&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;SUM({$&amp;lt;Rec_date={$(=Today())}&amp;gt;}amount) &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;if neither this works then verify that dates have the same format.&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;Let me know&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 06:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/667588#M242775</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-14T06:40:04Z</dc:date>
    </item>
  </channel>
</rss>

