<?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: update value in qvd file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428227#M429912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to change the value of flag&lt;/P&gt;&lt;P&gt;the old one change to 0 and new one 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Sep 2017 08:27:58 GMT</pubDate>
    <dc:creator>omid5ive</dc:creator>
    <dc:date>2017-09-16T08:27:58Z</dc:date>
    <item>
      <title>update value in qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428225#M429910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i need historical data from my data in database&lt;/P&gt;&lt;P&gt;i used incremental method for store main data in qvd file.&lt;/P&gt;&lt;P&gt;i need that when user change data in database and i reload my dashboard i want to set a flag on qvd file for each record. in first reload i want to set a 1 for flag field on record but when the data change i want to add new record to qvd file and set 0 on flag record for old record&lt;/P&gt;&lt;P&gt;how can i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 05:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428225#M429910</guid>
      <dc:creator>omid5ive</dc:creator>
      <dc:date>2017-09-16T05:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: update value in qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428226#M429911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the same record is updated the next week? what value do you want in the flag? still 1! &lt;/P&gt;&lt;P&gt;instead of adding a flag try to use an updateddate or / reloaded date field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 07:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428226#M429911</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-16T07:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: update value in qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428227#M429912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to change the value of flag&lt;/P&gt;&lt;P&gt;the old one change to 0 and new one 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 08:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428227#M429912</guid>
      <dc:creator>omid5ive</dc:creator>
      <dc:date>2017-09-16T08:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: update value in qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428228#M429913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get it; you want to keep the entire trail of record changes, but flag the current one (for an easy load).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that you cannot patch a QVD. You'll have to load-change-rewrite it in its entirety, just to change a single field value. If the table isn't that large, you can rewrite the entire table to keep things simple and efficient. Most incremental load strategies include some sort of rewriting the reference output QVD.&lt;/P&gt;&lt;P&gt;However, if performance is gonna be a problem (you don't mention table sizes), you could try it in another way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Split your historical records (records with flag = 0) off from your main QVD (records with flag = 1)&lt;/LI&gt;&lt;LI&gt;Upon the next incremental load, load the increment from your DB and only add the main QVD, except for the records that have a modified version in the increment. Save the "new" main QVD.&lt;/LI&gt;&lt;LI&gt;The rows from the "old" main QVD that got superseded, are written to a new QVD in the same location as the previously discarded rows. We create a new QVD because of performance reasons (no load-add-write of huge QVD tables)&lt;/LI&gt;&lt;LI&gt;If you ever need the history of all records, just load all QVDs with superseded rows. Or let another job first combine them into a centralised QVD, before using them in another document.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that with this technique, you don't need a Flag field. The location of a record determines whether it is current or not.&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>Sat, 16 Sep 2017 11:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428228#M429913</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-16T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: update value in qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428229#M429914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so basically you only want the latest record to be flagged? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1218492"&gt;Re: latest row per id&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 11:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/update-value-in-qvd-file/m-p/1428229#M429914</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-16T11:17:18Z</dc:date>
    </item>
  </channel>
</rss>

