<?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: load data between months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003085#M340881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks for reply!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want load data between Date(MonthStart(Today())) and Date(Today()-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Date(Today()) &amp;lt;=5th day of particular month then i want to load data from monthstart(previousmonth) and Date(Today()-1)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand my requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2015 19:42:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-30T19:42:53Z</dc:date>
    <item>
      <title>data load from monthStart and CurrentDate -1</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003083#M340879</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;I am loading data for months and breaking the data into each monthly qvd with following script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vStartDate=Date(MonthStart(Today()),'YYYYMMDD');&amp;nbsp;&amp;nbsp; /*StartDate for loading data*/&lt;/P&gt;&lt;P&gt;let vEndDate=Date(Today()-1,'YYYYMMDD');&amp;nbsp; /* End date will is CurrentDate -1*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMonthStart = MonthStart(vStartDate);&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp; Picks MonthStart date of loadDate*/&lt;/P&gt;&lt;P&gt;let vMonthEnd = MonthEnd(vEndDate);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp; Picks Monthend of EndLoadDate*/&lt;/P&gt;&lt;P&gt;do while vStartDate&amp;lt;=vEndDate&amp;nbsp;&amp;nbsp; /*&amp;nbsp;&amp;nbsp; loop starts until Startdate&amp;nbsp; and Enddate Matches */&lt;/P&gt;&lt;P&gt;let vNewMonthEnd =MonthEnd(vStartDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * from&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&amp;nbsp; BETWEEN '$(vStartDate)' AND '$(vNewMonthEnd)';&lt;/P&gt;&lt;P&gt;let file = Monthname(vStartDate);&lt;/P&gt;&lt;P&gt;TRACE file = $(file);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;let vStartDate = Date(MonthEnd(vStartDate)+1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If VstartDate is 02/01/2016&lt;/P&gt;&lt;P&gt;i need to pull data for last month full data to CurrentDate -1.&lt;/P&gt;&lt;P&gt;Another condition is if currentDate is less than 5th of any month ,then it should pull data for last month full data&lt;/P&gt;&lt;P&gt;to CurrentDate-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 11:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003083#M340879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003084#M340880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something must be missing in your Load Script fragment... The purpose of the LOOP statement ... could you please explain. There is also something missing after the FROM in the SELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 15:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003084#M340880</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-12-30T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003085#M340881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks for reply!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want load data between Date(MonthStart(Today())) and Date(Today()-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Date(Today()) &amp;lt;=5th day of particular month then i want to load data from monthstart(previousmonth) and Date(Today()-1)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand my requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 19:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003085#M340881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003086#M340882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you require front end selections or what like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003086#M340882</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-31T04:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003087#M340883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No it should be in the script .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003087#M340883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-31T04:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003088#M340884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am little bit curious about your variable defination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vStartDate=Date(MonthStart(Today()),'YYYYMMDD');&amp;nbsp;&amp;nbsp; /*StartDate for loading data*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vEndDate=Date(Today()-1,'YYYYMMDD');&amp;nbsp; /* End date will is CurrentDate -1*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your above variable defination what if your today is monthstart&lt;/P&gt;&lt;P&gt;will ever your vstartDate and vEndDate satisfied this condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vStartDate&amp;lt;=vEndDate&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003088#M340884</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-12-31T04:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003089#M340885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8548"&gt;Calendar with period flags&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;There you can see 30 day period count . you can include that logic in your Calendar if your data running real time data means you can use Today()&amp;nbsp; or else go with your max(Date) field .&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look into this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps ,&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003089#M340885</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-31T04:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003090#M340886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignore the above the question My exact requirement is&lt;/P&gt;&lt;P&gt;I want to load data for one month.&lt;/P&gt;&lt;P&gt;StartDate should be MonthStart(Today) and EndDate is Today()-1.&lt;/P&gt;&lt;P&gt;but if date(Today()) is lessthan 5th of particular month ,then it should load data from Previous full month&amp;nbsp; data and Today()-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003090#M340886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-31T04:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003091#M340887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this variable defination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTestDate=if(Day(Today())&amp;lt;=5,Date(Monthstart(AddMonths(Today(),-1)),'YYYY-MM-DD'),Date(MonthStart(Today()),'YYYY-MM-DD'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003091#M340887</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-12-31T05:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: load data between months</title>
      <link>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003092#M340888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;i did similar to you .&lt;/P&gt;&lt;P&gt;if Date(Today())&amp;lt;=Date(MonthStart(Today())+4) then&lt;/P&gt;&lt;P&gt;let vStartDate = Date(MonthStart(MonthStart(Today())-1),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;let vEndDate =Date(Today()-1,'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from where 'vStartDate' between 'vEndDate'&lt;/P&gt;&lt;P&gt;table;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;let vStartDate = Date(MonthStart(Today()),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vEndDate =Date(Today()-1,'YYYYMMDD');&lt;/P&gt;&lt;P&gt;select * form table where 'vStartDate' between 'vEndDate'&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is working. Thanks for your time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-load-from-monthStart-and-CurrentDate-1/m-p/1003092#M340888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-31T05:45:25Z</dc:date>
    </item>
  </channel>
</rss>

