<?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: Help with simple append load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012698#M640246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script, you could do a test for the end of the month (if we assume that your script runs 7 days a week), and store the resident table a second time to a different file. Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;STORE InTransitInventory INTO [IntransitInventory.qvd] (qvd); // Regular daily store&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;IF Floor(Today()) = Floor(MonthEnd(Today())) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; LET vFileTag = date(Today(), 'YYYYMMDD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; STORE InstransitInventory INTO [IntransitInventory_$(vFileTag).QVD] (qvd); // Special store&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 14:50:28 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-02-03T14:50:28Z</dc:date>
    <item>
      <title>Help with simple append load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012696#M640244</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 have a qvd file that is updated daily that show in-transit inventory.&lt;/P&gt;&lt;P&gt;Now I would like to save a snapshot of the in-transit inventory every last day of a month so that I can use this to show monthly trends going forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basicly what I have done is to create a field called&amp;nbsp; CheckMonthEnd with this logic: If(Date(Now())=MonthEnd(Date(Now())),1,0) as CheckMonthEnd. CheckMonthEnd will have a value 1 or 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do now is to save the file with a date appended to the file name if CheckMonthEnd=1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvd. Hope somebody could point me in the right direction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Freddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012696#M640244</guid>
      <dc:creator />
      <dc:date>2016-01-29T13:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple append load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012697#M640245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think that you only need to advise the content of the field MaxCheckMonthEnd to the variable?&lt;/P&gt;&lt;P&gt;If so, please change your line 80 to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCheckMonthEnd = PEEK('MaxCheckMonthEnd', 0, 'MaxMonth');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012697#M640245</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2016-02-03T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple append load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012698#M640246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script, you could do a test for the end of the month (if we assume that your script runs 7 days a week), and store the resident table a second time to a different file. Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;STORE InTransitInventory INTO [IntransitInventory.qvd] (qvd); // Regular daily store&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;IF Floor(Today()) = Floor(MonthEnd(Today())) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; LET vFileTag = date(Today(), 'YYYYMMDD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; STORE InstransitInventory INTO [IntransitInventory_$(vFileTag).QVD] (qvd); // Special store&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012698#M640246</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-03T14:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple append load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012699#M640247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I implemented following solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vSaveDate = date(today(), ‘YYYYMMDD’);&lt;/P&gt;&lt;P&gt;let vPeriod = MonthName(Now());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCheckMonthEnd = If(Date(floor(Now()))=Date(Floor(MonthEnd(Now()))),1,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE InTransit INTO \\InTransit_Daily_$(vSaveDate).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; $(vCheckMonthEnd) = 1 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE InTransit INTO \\InTransit_Monthly_$(vPeriod).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 12:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-append-load/m-p/1012699#M640247</guid>
      <dc:creator />
      <dc:date>2016-02-10T12:11:30Z</dc:date>
    </item>
  </channel>
</rss>

