<?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/487982#M1146613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set DateFormat = 'MM/DD/YYYY';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Whatever your input date format is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(EndDate -Today(1) &amp;lt;=5 and EndDate -Today(1) &amp;gt;0, 'Y','N') as EndDateFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM .... ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 08:33:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-08-13T08:33:15Z</dc:date>
    <item>
      <title>Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487981#M1146612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to compare whether the end date is within next 5 days from the current date ,where end date is a column having date entries.Incase the end date is within forth coming 5 days i would want to display 'Y',else 'N'.Can anyone let me know how this could be accomplished?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487981#M1146612</guid>
      <dc:creator />
      <dc:date>2013-08-13T08:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487982#M1146613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set DateFormat = 'MM/DD/YYYY';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Whatever your input date format is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(EndDate -Today(1) &amp;lt;=5 and EndDate -Today(1) &amp;gt;0, 'Y','N') as EndDateFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM .... ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487982#M1146613</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-13T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487983#M1146614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But,I do not want to make any changes to the script I want it to be done in the front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487983#M1146614</guid>
      <dc:creator />
      <dc:date>2013-08-13T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487984#M1146615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same logic in a table chart expression, when your dimension granularity is your end date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(EndDate -Today(1) &amp;lt;=5 and EndDate -Today(1) &amp;gt;0, 'Y','N')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487984#M1146615</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-13T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487985#M1146616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in front end--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then prperties of pivot/straight--&amp;gt;number tab--&amp;gt; select radio button of&amp;nbsp; Date --&amp;gt; then write format of date which you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487985#M1146616</guid>
      <dc:creator />
      <dc:date>2013-08-13T08:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487986#M1146617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and thus I am not familiar with today() function .Can you please explain when and where is it used. So that I am aware of the results that would be expected (I specifically want to understand the result of today(1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487986#M1146617</guid>
      <dc:creator />
      <dc:date>2013-08-13T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487987#M1146618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the HELP file (e.g. by pressing F1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor472"&gt;&lt;/A&gt;&lt;A name="today"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;today(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[timer_mode]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P&gt;Returns the current date from the system clock. The &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; may have the following values:&lt;/P&gt;&lt;P&gt;0 Date at script run&lt;BR /&gt;1 Date at function call&lt;BR /&gt;2 Date when the document was opened&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Default &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; is 2. The &lt;SPAN class="Italic"&gt;timer_mode = 1&lt;/SPAN&gt; should be used with caution, since it polls the operating system every second and hence could slow down the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using today(1) in the front end is not a good idea, I should have changed the timer mode to e.g. 2 when copying the expression from the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 09:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/487987#M1146618</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-13T09:03:03Z</dc:date>
    </item>
  </channel>
</rss>

