<?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: Append Data to An Existing QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818784#M668142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;// One time action; comment out the next three lines after you've added the KEY field to the QVDA table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDA:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt; as KEY From $(vMyPath)QVDA.qvd(qvd);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;STORE QVDA INTO &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vMyPath)QVDA.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDA:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * From $(vMyPath)QVDA.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDB:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONCATENATE(QVDA)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as KEY&lt;/SPAN&gt; From $(vMyPath)QVDB.qvd(qvd)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT EXISTS(KEY, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE QVDA INTO &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vMyPath)QVDA.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 13:03:26 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-11-12T13:03:26Z</dc:date>
    <item>
      <title>Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818783#M668141</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’m having an awful lot of trouble to do something that on paper seems very simple. I wish to append the data from one QVD to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD (A) runs daily and only ever contains 1 days worth of data (its SQL source is truncated daily). I wish to append this data daily to a new QVD (B) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I only ever want to append the data to B from A that doesn’t already exist in B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can get this working QVD B will allow me to trend my data as it’ll store data by the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I’ve got the following but I don’t think it’s appending correctly, and I also need the NOT EXISTS statement which im not sure how to apply as I cant do a simple test on the Primary Key (I need to test the entire row of data to check if it already exists).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVDA:&lt;/P&gt;&lt;P&gt;LOAD * From $(vMyPath)QVDA.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVDB:&lt;/P&gt;&lt;P&gt;CONCATENATE(QVDA)&lt;/P&gt;&lt;P&gt;LOAD * From $(vMyPath)QVDB.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone offer any advice/help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818783#M668141</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-11-12T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818784#M668142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;// One time action; comment out the next three lines after you've added the KEY field to the QVDA table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDA:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt; as KEY From $(vMyPath)QVDA.qvd(qvd);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;STORE QVDA INTO &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vMyPath)QVDA.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDA:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * From $(vMyPath)QVDA.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QVDB:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONCATENATE(QVDA)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as KEY&lt;/SPAN&gt; From $(vMyPath)QVDB.qvd(qvd)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT EXISTS(KEY, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;autonumberhash256( Field1, ... , FieldX) &lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE QVDA INTO &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vMyPath)QVDA.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818784#M668142</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-12T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818785#M668143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea how i test each row of data to see if it already exists?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818785#M668143</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-11-12T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818786#M668144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my post above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818786#M668144</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-12T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818787#M668145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cheers - it works although its doubled up my numbers for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll double check the code for typo's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818787#M668145</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-11-12T13:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818788#M668146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The doubling is probably the result of not dropping the QVDA table the first time after the first KEY creating load statement. The result is that the data from the QVDA.qvd file is loaded twice then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818788#M668146</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-12T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818789#M668147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert you're a star mate - works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;numbers are correct now that i drop the initial table - test tomorrow when the main dataset runs!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818789#M668147</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-11-12T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818790#M668148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep in mind that you only need to create the KEY field in the QVDA once. After the first run you need to comment out (or remove) that first load statement. After that the QVDB load statement creates the KEY field for the new records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818790#M668148</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-12T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Append Data to An Existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818791#M668149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep - done that. i guess as the KEY's stored in the QVD after the initial load/store?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will test tomorrow. i have another QVD that i wish to apply this logic too also so will do that now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its nice to get away from SQL/data warehouse and use the power of QV!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-Data-to-An-Existing-QVD/m-p/818791#M668149</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-11-12T14:55:20Z</dc:date>
    </item>
  </channel>
</rss>

