<?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: How to Load privious qvd? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842469#M296061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a ForEach vFile in FileList('\\server\qvdfile\space*.qvd construct and parse the date from the filename contained in vFile, then this should be simple enough. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinMonth = MonthStart(Today(), -2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ForEach vFile in FileList('\\server\qvdfiles\space*.qvd')&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vBaseFilename = Substring(vFile, '\', -1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vDate = Date#(Mid(vBaseFilename, 6, 6));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If vDate &amp;gt;= vMinMonth Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Space:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFile)] (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 13:18:00 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-06-29T13:18:00Z</dc:date>
    <item>
      <title>How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842467#M296059</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 5 qvds that 5 qvds contains the monthly data.my requirement is i want load the previous qvd's dynamically.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;space201502.qvd&lt;/P&gt;&lt;P&gt;space201503.qvd&lt;/P&gt;&lt;P&gt;space201504.qvd&lt;/P&gt;&lt;P&gt;space201505.qvd&lt;/P&gt;&lt;P&gt;space201506.qvd ----currentmonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for analysis purpose instead of loading all months data,i want load the only previous 2 months data i.e&lt;/P&gt;&lt;P&gt;space201504.qvd&lt;/P&gt;&lt;P&gt;space201505.qvd&lt;/P&gt;&lt;P&gt;and concatenate to space201506.qvd data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when july will come i want load &lt;/P&gt;&lt;P&gt;space201505.qvd&lt;/P&gt;&lt;P&gt;space201506.qvd&lt;/P&gt;&lt;P&gt;and concatenate to july data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when aug comes i want load &lt;/P&gt;&lt;P&gt;space201506.qvd&lt;/P&gt;&lt;P&gt;space201507.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and concatenate to aug data. like this...&lt;/P&gt;&lt;P&gt;how to achive this dynamically??&lt;/P&gt;&lt;P&gt;how to get the last2 previous qvd's name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842467#M296059</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2015-06-29T13:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842468#M296060</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;let vFile='space'&amp;amp;date(MonthStart(AddMonths(Today(),-1)),'YYYYMM');&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from $(vFile).qvd;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;let vFile='space'&amp;amp;date(MonthStart(AddMonths(Today(),-2)),'YYYYMM');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;concatenate(t1)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;load *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from $(vFile).qvd;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;let vFile='space'&amp;amp;date(MonthStart(Today()),'YYYYMM');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;concatenate(t1)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;load *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from $(vFile).qvd;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842468#M296060</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-06-29T13:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842469#M296061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a ForEach vFile in FileList('\\server\qvdfile\space*.qvd construct and parse the date from the filename contained in vFile, then this should be simple enough. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinMonth = MonthStart(Today(), -2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ForEach vFile in FileList('\\server\qvdfiles\space*.qvd')&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vBaseFilename = Substring(vFile, '\', -1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vDate = Date#(Mid(vBaseFilename, 6, 6));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If vDate &amp;gt;= vMinMonth Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Space:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFile)] (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842469#M296061</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-29T13:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842470#M296062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;H5 style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/H5&gt;&lt;P&gt;how to concatenate this months to current month qvd.can u please provide me clear script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842470#M296062</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2015-06-29T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842471#M296063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field names are the same, it will auto concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you load the current month first, then add a concatenate keyword with the existing table name to the load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If vDate &amp;gt;= vMinMonth Then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate(Data)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFile)] (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you load the current month last, add a concatenate to that load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842471#M296063</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-29T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842472#M296064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Each vFile in FileList ('\\gma\qv_storage_dev\USERS\99_Koteshwar\space\MONTHLY_QVDS\*.qvd')&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vBaseFilename = Substring(vFile,'\',-1);&lt;/P&gt;&lt;P&gt;i am getting script error here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let vBaseFilename = Substring(vFile,'\',-1); ---vFile script error here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842472#M296064</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2015-06-29T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842473#M296065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you don't have any qvd's in that directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following statement between &lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR EACH ...&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vBaseFileName...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TRACE &amp;gt;&amp;gt;&amp;gt; Current filename = '$(vFile)' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and run your script again. Then check the log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842473#M296065</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-29T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load privious qvd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842474#M296066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi koti, try using single quotes for the first parameter of substring:&lt;/P&gt;&lt;P&gt;Let vBaseFilename = Substring('$(vFile)','\',-1); ---vFile script error here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-privious-qvd/m-p/842474#M296066</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-29T14:20:46Z</dc:date>
    </item>
  </channel>
</rss>

