<?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 issues while loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302097#M111756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is not with adding $(vDays)+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if i written the script in the below format i'm getting exact result what i want i.e from 22 to 28th date.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt;'21/08/2011'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;But if i use below script i'm not able to get the result what i want.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt; Date('vMaxDate' - $(vDays),'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;the script is nothing but it says like this first it gets the max of date and stores in one variable vMaxDate from this i'm substracting with 7 through the variable vDays then the result will be 21-08-2011. From here i'm loading the data which are greater than this date.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;for your reference i'm attching my qvw file.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 06:34:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-15T06:34:50Z</dc:date>
    <item>
      <title>Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302093#M111752</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;I've a datetime format field in my qvd file i.e CaptureDateTime. It's data looks like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CaptureDateTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2011-08-28 22:33:55.3333&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2011-08-27 23:13:45.3333&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2011-08-26 14:33:55.3333&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......Soon&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i'm catching max of this date and storing in variable with help of peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i'm written code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG&gt;CaptureDateTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table.qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where &lt;/STRONG&gt;&lt;STRONG&gt;CaptureDateTime &amp;gt; Date('vMaxDate' - $(vDays),'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i.e vDays value is 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when i load above script i should get the dates of &lt;STRONG&gt;CaptureDateTime &lt;/STRONG&gt;from 2011-08-22 to 2011-08-28 only but i'm getting the o/p from 21 to 28 date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i overcome this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302093#M111752</guid>
      <dc:creator />
      <dc:date>2011-12-14T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302094#M111753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jacq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where CaptureDateTime &amp;gt; Date('vMaxDate' - $(vDays),'DD/MM/YYYY')+1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sokkorn Cheav&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 01:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302094#M111753</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2011-12-15T01:24:50Z</dc:date>
    </item>
    <item>
      <title>Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302095#M111754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i tried this previosly i'm getting exact result but how it is possible to get the exact result. We are keeping where condition like greater than 21 date it should come from 22. But if we keep greater than 22 then the result is from 22 to 28.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this also it is working but how it is possible can you explain me on this clearly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where CaptureDateTime &amp;gt; Date('vMaxDate' - ($(vDays)-1),'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 05:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302095#M111754</guid>
      <dc:creator />
      <dc:date>2011-12-15T05:15:25Z</dc:date>
    </item>
    <item>
      <title>Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302096#M111755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Jacq&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt; Date('vMaxDate' - $(vDays)+1,'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt; Date(addmonths(('vMaxDate' - $(vDays)+1,'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;may it helps you&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;thanks &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;rohit&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 05:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302096#M111755</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-12-15T05:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302097#M111756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is not with adding $(vDays)+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if i written the script in the below format i'm getting exact result what i want i.e from 22 to 28th date.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt;'21/08/2011'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;But if i use below script i'm not able to get the result what i want.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where CaptureDateTime &amp;gt; Date('vMaxDate' - $(vDays),'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;the script is nothing but it says like this first it gets the max of date and stores in one variable vMaxDate from this i'm substracting with 7 through the variable vDays then the result will be 21-08-2011. From here i'm loading the data which are greater than this date.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;for your reference i'm attching my qvw file.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 06:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302097#M111756</guid>
      <dc:creator />
      <dc:date>2011-12-15T06:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302098#M111757</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 Uploaded&amp;nbsp; one file . First reload&amp;nbsp; after check it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Perumal.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 07:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302098#M111757</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2011-12-15T07:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302099#M111758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perumal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also doing same thing. I want reason why we need to add one there. B'coz everytime &lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;vDays value will be changed.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 09:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302099#M111758</guid>
      <dc:creator />
      <dc:date>2011-12-15T09:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302100#M111759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this one&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;Where CaptureDateTime &amp;gt; Date(('vMaxDate' - $(vDays))+1,'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Where CaptureDateTime &amp;gt; Date(addmonths(('vMaxDate' - $(vDays))+1,'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;please let me know&lt;/P&gt;&lt;P&gt;it is working or not&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 11:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302100#M111759</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-12-15T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues while loading</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302101#M111760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving the result. But my question is why we need to add one again there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues-while-loading/m-p/302101#M111760</guid>
      <dc:creator />
      <dc:date>2011-12-15T12:39:31Z</dc:date>
    </item>
  </channel>
</rss>

