<?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: Save Data on Load &amp;Store under Load Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751070#M1026438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't be too difficult to do. Let's say that at the end of your script, you create one or more rows with todays aggregated data. What data you want to keep is up to you and cannot be deduced from your OP, but you should at least include a column with today's date in this table. Call the table with aggregated data ...&lt;EM&gt; AggregatedData&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next you do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF Not IsNull(filetime('HistoricalData.qvd')) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; CONCATENATE (AggregatedData) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD * FROM HistoricalData.QVD (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; WHERE DateStamp &amp;lt; today();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;STORE AggregatedData INTO HistoricalData.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 13:26:17 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-03-05T13:26:17Z</dc:date>
    <item>
      <title>Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751067#M1026433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to capture data expressions after a load? For example i have a order queue today of £45 and if i reload tomorrow it maybe £50 i would like a way to save the £45 under yesterday load date so i can see the trend of a moving total as once the work is done the value changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds strange but its really a capture value at point of time? with a save to script or variable are a write to excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. Brett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751067#M1026433</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-03-05T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751068#M1026434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like you can use incremental use where you would just add new data in and not replace the existing data. You can find a lot of discussions related to incremental load on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751068#M1026434</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-05T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751069#M1026436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can save your orders daily in a qvd file, flagged with the date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;today() as identifier,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then load that qvd every day, add the new records, and save it overwriting the old qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am actually describing here is a typical incremental load &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751069#M1026436</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-03-05T13:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751070#M1026438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't be too difficult to do. Let's say that at the end of your script, you create one or more rows with todays aggregated data. What data you want to keep is up to you and cannot be deduced from your OP, but you should at least include a column with today's date in this table. Call the table with aggregated data ...&lt;EM&gt; AggregatedData&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next you do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF Not IsNull(filetime('HistoricalData.qvd')) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; CONCATENATE (AggregatedData) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD * FROM HistoricalData.QVD (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; WHERE DateStamp &amp;lt; today();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;STORE AggregatedData INTO HistoricalData.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751070#M1026438</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-05T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751071#M1026440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keeps working, even if you run your Load script multiple times in a row. During development &amp;amp; testing for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751071#M1026440</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-05T13:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751072#M1026442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i save a variable into the incremental load? for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;[Logindate]-=''&amp;gt;}[UserCode]) which is variable $(vr22)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 14:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751072#M1026442</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-03-05T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751073#M1026444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;can i save a variable into the incremental load? for example&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;Count(DISTINCT{$&amp;lt;[Logindate]-=''&amp;gt;}[UserCode]) which is variable $(vr22)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 14:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751073#M1026444</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-03-05T14:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Save Data on Load &amp;Store under Load Date</title>
      <link>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751074#M1026447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can save the contents of such a variable (after the variable is set), but not the result after evaluation. The reload engine doesn't understand set analysis. That's a UI expression-only feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to work out some aggregation simulation in your script, that mimics what you do using expressions. It's all perfectly doable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-Data-on-Load-Store-under-Load-Date/m-p/751074#M1026447</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-05T16:02:34Z</dc:date>
    </item>
  </channel>
</rss>

